Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BorisS
 
Posts: n/a
Default vlookup on non-contiguous ranges

I've tried to name to non-contiguous (but similarly laid out horizontally)
ranges one name, and then use that name in a VLOOKUP. Won't work. Is there
an equivalent of this idea that does work? I am trying to find something in
one of two places, and then reference a cell off of that find.
--
Boris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default vlookup on non-contiguous ranges

Hi Boris

Maybe if you name the ranges, range1 and range2 then use something like

=if(iserror(vlookup(value,range1,offset,0)),
if(iserror(vlookup(value,range2,offset,0)),"",
vlookup(value,range2,offset,0),
vlookup(value,range1,offset,0))

--
Regards

Roger Govier


"BorisS" wrote in message
...
I've tried to name to non-contiguous (but similarly laid out
horizontally)
ranges one name, and then use that name in a VLOOKUP. Won't work. Is
there
an equivalent of this idea that does work? I am trying to find
something in
one of two places, and then reference a cell off of that find.
--
Boris



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BorisS
 
Posts: n/a
Default vlookup on non-contiguous ranges

that's basically what I'd ended up doing in the interim of finding a
solution. Thanks for confirming that I was not missing a trick that would
have done it in one range name.
--
Boris


"Roger Govier" wrote:

Hi Boris

Maybe if you name the ranges, range1 and range2 then use something like

=if(iserror(vlookup(value,range1,offset,0)),
if(iserror(vlookup(value,range2,offset,0)),"",
vlookup(value,range2,offset,0),
vlookup(value,range1,offset,0))

--
Regards

Roger Govier


"BorisS" wrote in message
...
I've tried to name to non-contiguous (but similarly laid out
horizontally)
ranges one name, and then use that name in a VLOOKUP. Won't work. Is
there
an equivalent of this idea that does work? I am trying to find
something in
one of two places, and then reference a cell off of that find.
--
Boris




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
Deleting contents of cells in non contiguous ranges Richard Buttrey Excel Worksheet Functions 9 April 1st 06 11:46 PM
multiple ranges on Vlookup lpj Excel Discussion (Misc queries) 18 January 11th 06 05:40 PM
VLOOKUP Function using Data Ranges. Cal Excel Worksheet Functions 6 April 16th 05 03:26 PM
Vlookup with 2 ranges in one worksheet Eelco Wiertsema Excel Worksheet Functions 5 February 18th 05 07:57 PM
vlookup and named ranges chathag Excel Worksheet Functions 3 November 22nd 04 04:07 PM


All times are GMT +1. The time now is 11:01 AM.

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"