![]() |
Generating Functions with "Concatenate"
I'm using Excel 2002 to generate commands using the Concatenate function to
lookup reference info in other cells. I can't get the text strings from Concatenate to be recognized as commands. I've tried "paste special" and selecting "formulas", but that didn't work. For example, I created a string ( =G3 ) with concatenate, but it is not recognized as a command. When I type the command in, it works, but appears the same as the concatenated text string. How can I make this into an executable command? Bill602 |
Generating Functions with "Concatenate"
Try it like this:
=INDIRECT("G3") Or, using cells to hold the individual components: A1 = G B1 = 3 =INDIRECT(A1&B1) -- Biff Microsoft Excel MVP "Bill602" wrote in message ... I'm using Excel 2002 to generate commands using the Concatenate function to lookup reference info in other cells. I can't get the text strings from Concatenate to be recognized as commands. I've tried "paste special" and selecting "formulas", but that didn't work. For example, I created a string ( =G3 ) with concatenate, but it is not recognized as a command. When I type the command in, it works, but appears the same as the concatenated text string. How can I make this into an executable command? Bill602 |
Generating Functions with "Concatenate"
You could set up this user-defined function:
Function eval(func As String) Application.Volatile eval = Evaluate(func) End Function and then you could use it as: =eval(A1) and if A1 contains a string that represents an Excel formula then it will be evaluated. Hope this helps. Pete On Aug 14, 7:08*pm, Bill602 wrote: I'm using Excel 2002 to generate commands using the Concatenate function to lookup reference info in other cells. *I can't get the text strings from Concatenate to be recognized as commands. *I've tried "paste special" and selecting "formulas", but that didn't work. For example, I created a string ( =G3 ) with concatenate, but it is not recognized as a command. *When I type the command in, it works, but appears the same as the concatenated text string. *How can I make this into an executable command? Bill602 |
All times are GMT +1. The time now is 09:53 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com