#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Equaliser
 
Posts: n/a
Default IF & VLOOKUP

This is the formula that I am using which works very well. =IF(E2=0,"
",(VLOOKUP(E2,Worcester,2,FALSE))). I have a range named WORCESTER for
looking up the answer that I need.
This is fine if the text in cell E2 DOES =Worcester. BUT, cell E2 will
sometimes =Portsmouth so I just edit my formula, which is not ideal. How can
I extend the formula so that it uses a different lookup range depending on
what is in cell E2?
Does this make sense?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GaryE
 
Posts: n/a
Default IF & VLOOKUP


If I understand your question. This should work:


=IF(E2="Worcester",(VLOOKUP(E2,Worcester,2,FALSE)) ,if(E2="Portsmouth",
VLOOKUP(E2,Portsmouth,2,FALSE)),"").

HTH,

Gary

Equaliser Wrote:
This is the formula that I am using which works very well. =IF(E2=0,"
",(VLOOKUP(E2,Worcester,2,FALSE))). I have a range named WORCESTER
for
looking up the answer that I need.
This is fine if the text in cell E2 DOES =Worcester. BUT, cell E2
will
sometimes =Portsmouth so I just edit my formula, which is not ideal.
How can
I extend the formula so that it uses a different lookup range depending
on
what is in cell E2?
Does this make sense?



--
GaryE
Posted from - http://www.officehelp.in

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 single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 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


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