Hi all,
Is there a way a string can be evaluated as a formula?
I'm building a formula by concatening several strings but can't find a way to evaluate the formula.
Do I need a macro or is there a simple way to eval it?
Thanks!
Hi all,
Is there a way a string can be evaluated as a formula?
I'm building a formula by concatening several strings but can't find a way to evaluate the formula.
Do I need a macro or is there a simple way to eval it?
Thanks!
Last edited by oldchippy; 04-27-2009 at 09:11 AM.
To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.
If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.
Doing this will ensure you get the result you need!
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Hi,
Try
=INDIRECT("A1")+INDIRECT("A2")
Another alternative (pending complexity) could be to use Evaluate in a Defined Name...
Consider:
A1: 10
B1: *
C1: 2
Select cell D1: Insert -> Name -> Define:
Name: EVAL
RefersTo: =EVALUATE(CONCATENATE(A1,B1,C1))
D1: =EVALUATE
result --> 20
If B1 (operator) altered from * to / then D1: =5 ... if A1, C1 values are altered the result will alter accordingly.
Entering =EVAL into D2 would perform a calc based on Concatenation of A2:C2
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks