Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP with a Named Range argument modernminstrel Excel Worksheet Functions 1 October 13th 08 04:11 PM
using a dynamic named range in a VLOOKUP Dave F Excel Discussion (Misc queries) 3 January 19th 07 08:38 PM
Vlookup in a named range tuph Excel Worksheet Functions 7 May 29th 06 02:23 AM
Vlookup in large named range KemS Excel Worksheet Functions 3 November 23rd 05 06:14 PM
VLookup with concatinated named range David Gibson Excel Worksheet Functions 1 May 26th 05 02:04 PM


All times are GMT +1. The time now is 06:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"