From: patti on 13 Mar 2010 13:55 My function: =VLOOKUP(G7,"Asset"&F7,1,FALSE) "Asset"&F7 is a concatenation for a named range. If i type in manually, it works. Concatenated, it does not. Why does this not work? Not sure how or if to use indirect or offset.
From: Mike H on 13 Mar 2010 14:06 Patti, Try this =VLOOKUP(G7,INDIRECT("Asset"&F7),1,FALSE) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "patti" wrote: > My function: > > =VLOOKUP(G7,"Asset"&F7,1,FALSE) > > "Asset"&F7 is a concatenation for a named range. If i type in manually, it > works. Concatenated, it does not. > > Why does this not work? Not sure how or if to use indirect or offset.
From: T. Valko on 13 Mar 2010 14:11 >Why does this not work? Let's assume F7 = 2009 "Asset"&F7 = "Asset2009". When you concatenate you're creating a *TEXT* string. Even though you may have a valid named range called Asset2009 these are not the same thing. INDIRECT will convert a TEXT representation of a reference into a valid reference that can be used as function arguments. =VLOOKUP(G7,INDIRECT("Asset"&F7),1,0) This will not work if the named range is a dynamic range defined with functions like OFFSET. -- Biff Microsoft Excel MVP "patti" <patti(a)discussions.microsoft.com> wrote in message news:F6FDE7CC-8714-42C4-BEBA-5C06307E7A75(a)microsoft.com... > My function: > > =VLOOKUP(G7,"Asset"&F7,1,FALSE) > > "Asset"&F7 is a concatenation for a named range. If i type in manually, it > works. Concatenated, it does not. > > Why does this not work? Not sure how or if to use indirect or offset.
From: patti on 13 Mar 2010 15:05 Thanks Mike and Biff. Zippy and educating answers. "patti" wrote: > My function: > > =VLOOKUP(G7,"Asset"&F7,1,FALSE) > > "Asset"&F7 is a concatenation for a named range. If i type in manually, it > works. Concatenated, it does not. > > Why does this not work? Not sure how or if to use indirect or offset.
From: T. Valko on 13 Mar 2010 22:20 You're welcome. Thanks for the feedback! -- Biff Microsoft Excel MVP "patti" <patti(a)discussions.microsoft.com> wrote in message news:301C4B4B-993B-453D-9A94-CA6FA40263C5(a)microsoft.com... > Thanks Mike and Biff. > Zippy and educating answers. > > "patti" wrote: > >> My function: >> >> =VLOOKUP(G7,"Asset"&F7,1,FALSE) >> >> "Asset"&F7 is a concatenation for a named range. If i type in manually, >> it >> works. Concatenated, it does not. >> >> Why does this not work? Not sure how or if to use indirect or offset.
|
Pages: 1 Prev: Highlight cells Next: "Send to mail recipient" is dimmed out on my tool bar |