Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP with a Named Range argument

I am using a VLOOKUP to refer to a table that is a Defined Name/Named Range.

When I use the Defined Name directly in the function the Function works
fine. Example: VLOOKUP(D8,NamedRange,2,False)

However, if instead I reference the Named Range as it appears as a value in
another cell, I get an #N/A error. Example: VLOOKUP(D8,C6,2,False) - where
the value in C6 is NamedRange.

It seems Excel is insisting on seeing the actual named range in the function
and does not accept the named range value as it's returned from a single
cell. Does anyone know of a workaround for this situation?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default VLOOKUP with a Named Range argument

Your formula of VLOOKUP(D8,C6,2,False) is looking at C6 as the named range,
not containing the named range. Basically, it is trying to match D8 to the
table of C6.
You should try:
=VLOOKUP(D8,INDIRECT(C6),2,FALSE)

Hope this helps.
--
John C


"modernminstrel" wrote:

I am using a VLOOKUP to refer to a table that is a Defined Name/Named Range.

When I use the Defined Name directly in the function the Function works
fine. Example: VLOOKUP(D8,NamedRange,2,False)

However, if instead I reference the Named Range as it appears as a value in
another cell, I get an #N/A error. Example: VLOOKUP(D8,C6,2,False) - where
the value in C6 is NamedRange.

It seems Excel is insisting on seeing the actual named range in the function
and does not accept the named range value as it's returned from a single
cell. Does anyone know of a workaround for this situation?

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
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 Error in Part of a Named Range Dallas64 Excel Worksheet Functions 6 April 18th 06 02:13 PM
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 11:10 PM.

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

About Us

"It's about Microsoft Excel"