Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default using a dynamic named range in a VLOOKUP

I have the following IF-ISBLANK--IFERROR--VLOOKUP formula:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,'Categor y
Lookup'!$A$1:$B$983,2,FALSE),"New description to be categorized")) (I'm
using XL 2007, hence the IFERROR function...)

I want to replace the table array in the VLOOKUP with a dynamic named range.
I have a dynamic named range, LookupRange3, which uses the formula
=OFFSET($A$1,0,0,COUNTA($A:$A),1) in the Refers To field, which formula I
retrieved from http://www.ozgrid.com/Excel/DynamicRanges.htm

So now my formula looks like this:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,LookupRa nge3,2,FALSE),"New
description to be categorized"))

Unfortunately, this returns "New description to be categorized" rather than
the appropriate lookup value. Ideas?
--
Brevity is the soul of wit.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default using a dynamic named range in a VLOOKUP

That dynamic range is only 1 column wide, so the lookup will always error,
it should be

=OFFSET($A$1,0,0,COUNTA($A:$A),2)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Dave F" wrote in message
...
I have the following IF-ISBLANK--IFERROR--VLOOKUP formula:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,'Categor y
Lookup'!$A$1:$B$983,2,FALSE),"New description to be categorized")) (I'm
using XL 2007, hence the IFERROR function...)

I want to replace the table array in the VLOOKUP with a dynamic named
range.
I have a dynamic named range, LookupRange3, which uses the formula
=OFFSET($A$1,0,0,COUNTA($A:$A),1) in the Refers To field, which formula I
retrieved from http://www.ozgrid.com/Excel/DynamicRanges.htm

So now my formula looks like this:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,LookupRa nge3,2,FALSE),"New
description to be categorized"))

Unfortunately, this returns "New description to be categorized" rather
than
the appropriate lookup value. Ideas?
--
Brevity is the soul of wit.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default using a dynamic named range in a VLOOKUP

OK I feel like an idiot....turns out I did NOT have the Refers to Formula in
the named range. Once I put it in this worked perfectly.

Pls disregard.
--
Brevity is the soul of wit.


"Dave F" wrote:

I have the following IF-ISBLANK--IFERROR--VLOOKUP formula:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,'Categor y
Lookup'!$A$1:$B$983,2,FALSE),"New description to be categorized")) (I'm
using XL 2007, hence the IFERROR function...)

I want to replace the table array in the VLOOKUP with a dynamic named range.
I have a dynamic named range, LookupRange3, which uses the formula
=OFFSET($A$1,0,0,COUNTA($A:$A),1) in the Refers To field, which formula I
retrieved from http://www.ozgrid.com/Excel/DynamicRanges.htm

So now my formula looks like this:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,LookupRa nge3,2,FALSE),"New
description to be categorized"))

Unfortunately, this returns "New description to be categorized" rather than
the appropriate lookup value. Ideas?
--
Brevity is the soul of wit.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default using a dynamic named range in a VLOOKUP

Yes, thanks, I figured that out last night.
--
Brevity is the soul of wit.


"Bob Phillips" wrote:

That dynamic range is only 1 column wide, so the lookup will always error,
it should be

=OFFSET($A$1,0,0,COUNTA($A:$A),2)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Dave F" wrote in message
...
I have the following IF-ISBLANK--IFERROR--VLOOKUP formula:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,'Categor y
Lookup'!$A$1:$B$983,2,FALSE),"New description to be categorized")) (I'm
using XL 2007, hence the IFERROR function...)

I want to replace the table array in the VLOOKUP with a dynamic named
range.
I have a dynamic named range, LookupRange3, which uses the formula
=OFFSET($A$1,0,0,COUNTA($A:$A),1) in the Refers To field, which formula I
retrieved from http://www.ozgrid.com/Excel/DynamicRanges.htm

So now my formula looks like this:
=IF(ISBLANK(F218),"",IFERROR(VLOOKUP(F218,LookupRa nge3,2,FALSE),"New
description to be categorized"))

Unfortunately, this returns "New description to be categorized" rather
than
the appropriate lookup value. Ideas?
--
Brevity is the soul of wit.




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
Problem with Dynamic Named Range Philip Excel Worksheet Functions 1 December 7th 06 04:09 PM
Vlookup in a named range tuph Excel Worksheet Functions 7 May 29th 06 02:23 AM
How do you Identify text as a named range in excel DMDave Excel Discussion (Misc queries) 6 May 7th 06 11:48 PM
Multi-Column Dynamic Named Range...Is there an easier way? Ken Johnson Excel Worksheet Functions 6 April 23rd 06 01:54 AM
dynamic named range function MJB Excel Worksheet Functions 1 August 5th 05 05:56 AM


All times are GMT +1. The time now is 09:58 AM.

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"