Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Edd
 
Posts: n/a
Default Using VLOOKUP for one option, if this option is not valid than sec

Outline:
5 columns A-E: A B C D E
Australia 0.0507 Australia 0.1242
Belgium 0.0254 #N/A Canada
0.2356
Canada 0.0256

First look in column D&E if Belgium is available than take corresponding
number (E). Second if not, look in column A&B if Belgium is available and
take corresponding number (B).

This is how far I got (only it doen't work (yet!):
=IF(((VLOOKUP(B3;$E$2:$F$355;2;FALSE))="#N/A");C3;(VLOOKUP(B3;$B$2:$C$1020;2)))

Please help
Edd
  #2   Report Post  
Niek Otten
 
Posts: n/a
Default

Hi Edd,

=IF(ISNA(VLOOKUP(B3;$E$2:$F$355;2;FALSE));VLOOKUP( B3;$B$2:$C$1020;2);VLOOKUP(B3;$E$2:$F$355;2;FALSE) )

Are you sure you don't need the FALSE in the second lookup?

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel




"Edd" wrote in message
...
Outline:
5 columns A-E: A B C D E
Australia 0.0507 Australia 0.1242
Belgium 0.0254 #N/A Canada
0.2356
Canada 0.0256

First look in column D&E if Belgium is available than take corresponding
number (E). Second if not, look in column A&B if Belgium is available and
take corresponding number (B).

This is how far I got (only it doen't work (yet!):
=IF(((VLOOKUP(B3;$E$2:$F$355;2;FALSE))="#N/A");C3;(VLOOKUP(B3;$B$2:$C$1020;2)))

Please help
Edd



  #3   Report Post  
Niek Otten
 
Posts: n/a
Default

BTW, If you use B3 to search in B2:C1020, you'll always have the same hit at
B3!

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Niek Otten" wrote in message
...
Hi Edd,

=IF(ISNA(VLOOKUP(B3;$E$2:$F$355;2;FALSE));VLOOKUP( B3;$B$2:$C$1020;2);VLOOKUP(B3;$E$2:$F$355;2;FALSE) )

Are you sure you don't need the FALSE in the second lookup?

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel




"Edd" wrote in message
...
Outline:
5 columns A-E: A B C D E
Australia 0.0507 Australia 0.1242
Belgium 0.0254 #N/A Canada
0.2356
Canada 0.0256

First look in column D&E if Belgium is available than take corresponding
number (E). Second if not, look in column A&B if Belgium is available and
take corresponding number (B).

This is how far I got (only it doen't work (yet!):
=IF(((VLOOKUP(B3;$E$2:$F$355;2;FALSE))="#N/A");C3;(VLOOKUP(B3;$B$2:$C$1020;2)))

Please help
Edd





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
Second option button disappears when I make another column Monique Excel Worksheet Functions 0 March 9th 05 09:57 PM
Filter option vishu Excel Discussion (Misc queries) 1 February 28th 05 01:36 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 08:52 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"