Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenate an "actionable" formula
I need to create a VLOOKUP that uses a variable for the TABLE ARRAY element
in the formula. I can create the proper formula but it won't execute the lookup. It begins with an = sign but it acts like it is only text. How can I take: =concatenate("=VLOOKUP($B$11,Table" & b31 & ",3,FALSE")) and have the result perform the lookup? I've tried using an indirect(b31) but that isn't it either. Help! Thanks, Ken |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenate an "actionable" formula
Have you considered using a named range? It can be pre-defined or defined
with VBA. "KG Old Wolf" wrote: I need to create a VLOOKUP that uses a variable for the TABLE ARRAY element in the formula. I can create the proper formula but it won't execute the lookup. It begins with an = sign but it acts like it is only text. How can I take: =concatenate("=VLOOKUP($B$11,Table" & b31 & ",3,FALSE")) and have the result perform the lookup? I've tried using an indirect(b31) but that isn't it either. Help! Thanks, Ken |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenate an "actionable" formula
It looks like you could use something like:
Try: =VLOOKUP($B$11,indirect("Table"&b31),3,FALSE) KG Old Wolf wrote: I need to create a VLOOKUP that uses a variable for the TABLE ARRAY element in the formula. I can create the proper formula but it won't execute the lookup. It begins with an = sign but it acts like it is only text. How can I take: =concatenate("=VLOOKUP($B$11,Table" & b31 & ",3,FALSE")) and have the result perform the lookup? I've tried using an indirect(b31) but that isn't it either. Help! Thanks, Ken -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenate an "actionable" formula
you need the IDIRECT function and you don't need concatenate
so I think your aim is to replace this =VLOOKUP(B11, table4,3,false) 'A with a variable for table4 so breakign it down =VLOOKUP(B11,INDIRECT("table4"),3,false) should be the same as 'A above and then =VLOOKUP(B11,INDIRECT("table" & "4"),3,false) then =VLOOKUP(B11,INDIRECT("table" & B31),3,false) if B31 has the value 5, then the lookup would be table5 "KG Old Wolf" wrote: I need to create a VLOOKUP that uses a variable for the TABLE ARRAY element in the formula. I can create the proper formula but it won't execute the lookup. It begins with an = sign but it acts like it is only text. How can I take: =concatenate("=VLOOKUP($B$11,Table" & b31 & ",3,FALSE")) and have the result perform the lookup? I've tried using an indirect(b31) but that isn't it either. Help! Thanks, Ken |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
concatenate an "actionable" formula
sorry, typo. IDIRECT should of course be INDIRECT , which is typed
correctly in the formula that I gave. "Patrick Molloy" wrote: you need the IDIRECT function and you don't need concatenate so I think your aim is to replace this =VLOOKUP(B11, table4,3,false) 'A with a variable for table4 so breakign it down =VLOOKUP(B11,INDIRECT("table4"),3,false) should be the same as 'A above and then =VLOOKUP(B11,INDIRECT("table" & "4"),3,false) then =VLOOKUP(B11,INDIRECT("table" & B31),3,false) if B31 has the value 5, then the lookup would be table5 "KG Old Wolf" wrote: I need to create a VLOOKUP that uses a variable for the TABLE ARRAY element in the formula. I can create the proper formula but it won't execute the lookup. It begins with an = sign but it acts like it is only text. How can I take: =concatenate("=VLOOKUP($B$11,Table" & b31 & ",3,FALSE")) and have the result perform the lookup? I've tried using an indirect(b31) but that isn't it either. Help! Thanks, Ken |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... | Excel Programming |