由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - Excel Question
相关主题
how to use EXCEL to calculate two time series data一道没答上来的面试题-大虾们进来讲讲
请教一个概率问题【英文、长、慎入】投行前台投资部门薪水
[合集] One Probability interview questionTop Ten Books for a Financial Engineer (zz)
One interview question, tough[合集] 问一个 Black - Scholes Formula的问题
硬币题请教一个数学问题, 用什么办法比较股价的相似(或关联)
求助:Understand VIX急问BS-formula里interest rate 是指real 还是norminal?
[合集] Implied Volatility计算的麻烦Question on Formula for APR
请帮忙解释一下如何求implied distribution
相关话题的讨论汇总
话题: file话题: question话题: excel话题: name话题: xls
进入Quant版参与讨论
1 (共1页)
q****d
发帖数: 535
1
My current table links to another file using fomular "File_Name.XLS!K8".
I'd like to change the formular to "File_Name.XLS!$K$8".
Is there a macro or any functions I can use to replace the fomular for the
entire table, but not to go cell by cell? (Paste formular didn't apply for
some reason...)
Thanks!!
j**********e
发帖数: 1615
2
find and replace !k8 to !$k$8

【在 q****d 的大作中提到】
: My current table links to another file using fomular "File_Name.XLS!K8".
: I'd like to change the formular to "File_Name.XLS!$K$8".
: Is there a macro or any functions I can use to replace the fomular for the
: entire table, but not to go cell by cell? (Paste formular didn't apply for
: some reason...)
: Thanks!!

q****d
发帖数: 535
3

Yeah this's an option..Thank you!!
But my table has colums A to BE and each one links to a different colum in
the 2nd file. So I have to repeat the replace for each colum. Any tricks I
can do the replace for all colums at one time?

【在 j**********e 的大作中提到】
: find and replace !k8 to !$k$8
u****s
发帖数: 161
4
Do your cells all refer to row 8 or not?
q****d
发帖数: 535
5

No. they refer to distinct rows.

【在 u****s 的大作中提到】
: Do your cells all refer to row 8 or not?
u****s
发帖数: 161
6
Coding is required in this case. You could get away by replacing ! with !$
and 8 with $8 if all cells referece row 8. The following code converts
formulas in all selected cells to absolute reference. It doesn't work with
array or over-complicated formulas.
Sub MakeRefsAbs()
Dim oRange As Range
Dim i As Integer
'On Error Resume Next
Set oRange = Selection.SpecialCells(Type:=xlFormulas)
For i = 1 To oRange.Areas.Count

oRange.Areas(i).Formula = _
Application.ConvertForm
q****d
发帖数: 535
7

Haven't had a chance to test it out, but thanks a lot!

【在 u****s 的大作中提到】
: Coding is required in this case. You could get away by replacing ! with !$
: and 8 with $8 if all cells referece row 8. The following code converts
: formulas in all selected cells to absolute reference. It doesn't work with
: array or over-complicated formulas.
: Sub MakeRefsAbs()
: Dim oRange As Range
: Dim i As Integer
: 'On Error Resume Next
: Set oRange = Selection.SpecialCells(Type:=xlFormulas)
: For i = 1 To oRange.Areas.Count

1 (共1页)
进入Quant版参与讨论
相关主题
如何求implied distribution硬币题
求几本quant方面的书求助:Understand VIX
有人看过inside job么?[合集] Implied Volatility计算的麻烦
a question about the swaption pricing formula请帮忙解释一下
how to use EXCEL to calculate two time series data一道没答上来的面试题-大虾们进来讲讲
请教一个概率问题【英文、长、慎入】投行前台投资部门薪水
[合集] One Probability interview questionTop Ten Books for a Financial Engineer (zz)
One interview question, tough[合集] 问一个 Black - Scholes Formula的问题
相关话题的讨论汇总
话题: file话题: question话题: excel话题: name话题: xls