Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Name Range Help
I have a situtation where I want to have a formula display in a cell
the name of a "named range" and use this in a lookup formula. If in cell A1 I have a formula that returns the name of a range called DP_1 how can I reference this in the formula. This does not work: =vlookup(A6,A1,4,false) (Cell A1 dispalys the named range DP_1) It works correctly if I use: =vlookup(A6,DP_1,4,false) I have 12 named ranges where writing an if statement gets too complex in a single cell. Hopefully someone will have an idea of how to reference a cell to mke this simpler. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Name Range Help
Try it this way...
=VLOOKUP(A6,INDIRECT(A1),4,false) Rick Rothstein (MVP - Excel) "Bo" wrote in message ... I have a situtation where I want to have a formula display in a cell the name of a "named range" and use this in a lookup formula. If in cell A1 I have a formula that returns the name of a range called DP_1 how can I reference this in the formula. This does not work: =vlookup(A6,A1,4,false) (Cell A1 dispalys the named range DP_1) It works correctly if I use: =vlookup(A6,DP_1,4,false) I have 12 named ranges where writing an if statement gets too complex in a single cell. Hopefully someone will have an idea of how to reference a cell to mke this simpler. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |