A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup, concatenated named range



 
 
Thread Tools Display Modes
  #1  
Old March 13th, 2010, 07:55 PM posted to microsoft.public.excel.worksheet.functions
Patti
external usenet poster
 
Posts: 231
Default vlookup, concatenated named range

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.
  #2  
Old March 13th, 2010, 08:06 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default vlookup, concatenated named range

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.

  #3  
Old March 13th, 2010, 08:11 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default vlookup, concatenated named range

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" wrote in message
...
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.



  #4  
Old March 13th, 2010, 09:05 PM posted to microsoft.public.excel.worksheet.functions
Patti
external usenet poster
 
Posts: 231
Default vlookup, concatenated named range

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.

  #5  
Old March 14th, 2010, 04:20 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default vlookup, concatenated named range

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"patti" wrote in message
...
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.