Yes. I am looking for a formula instead of a macro. Thanks.Hi ,
Isn't this the same question you have asked here ?
http://chandoo.org/forum/threads/need-formula.34226/
Narayan
Hi ,
tried. not succeed. In B2-B3-B4 it gives same answer.Give cell A1 a Name eg: Formula
Goto the Name Manager
Add a name
Name: Function
Refers to: =SUM(EVALUATE(SUBSTITUTE(Formula,"x","*")))
Exit the name manager
In cell B1 =Function
or see the attached file:
Enjoy
Hi ,tried. not succeed. In B2-B3-B4 it gives same answer.
Thanks. This is also useful for calculating LxBxH.Another example in Text calculation with description as in :
View attachment 42028
1] In A2:A4, enter measurement breakdown data
2] Goto Define Name >>
Name: TextCalcu
Refers to: =EVALUATE(SUBSTITUTE(SUBSTITUTE(INDIRECT("rc[-1]",0),"[","*ISTEXT(""["),"]","]"")"))
3] In B2, formula copy down :
=TextCalcu
4] See attached file
Regards
Bosco
Thanks. Now it works.Hi ,
The reason is that when you name a range , Excel makes it an absolute reference.
Go to the Name Manager , and edit the named range Formula , so that instead of referring to $A$1 , it refers to $A1.
Now , when you use this in cell B1 , the reference will be to the text in cell A1 , when you use the same in cell B2 , the reference will be to the text in cell A2 , and so on.
Narayan