Writing a formula in a variable
formula1 = "CONCATENATE((MID(A1,4,3)),""_"",C1,""_"",((IF(MID (A1,7,1)
""A"",""Activity"",""List""))))"
Regards,
Tom Ogilvy
"Chris Dunigan" wrote in message
m...
Hi, hope someone out there can help me with this problem.
I have a simple formula:
=CONCATENATE((MID(A1,4,3)),"_",C1,"_",((IF(MID(A1, 7,1)
"A","Activity","List"))))
and i'd like that formula to be contained in a variable so that i can
use the formula on many worksheets within a workbook.
The problem that i'm coming across is to do with all the quotation
marks. Excel won't let me simply write:
formula1 = CONCATENATE((MID(A1,4,3)),"_",C1,"_",((IF(MID(A1,7 ,1)
"A","Activity","List"))))
Dows anyone have any suggestions about how to overcome this - maybe by
splitting the formula up into smaller components???
any helps greatly apprecieted.
chris
|