Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jenhow
 
Posts: n/a
Default Vlookup - no match

I have a range of data like this

A B
12 0.014
13 0.021
14 0.019
15 0.022

I have Vlookup value to return the value from column B if a cell matches
column A. I would like it to return another value (0.006) if the number that
is entered into the cell is not listed in column A.

I have tried a few different options, but can't seem it get it to work
properly.

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Vlookup - no match

Assuming C1 is the value you want to lookup, try this:

=IF(ISERROR(VLOOKUP(C1,$A$1:$B$4,2,FALSE)),.0006,V LOOKUP(C1,$A$1:$B$4,2,FALSE))

HTH,
Elkar


"jenhow" wrote:

I have a range of data like this

A B
12 0.014
13 0.021
14 0.019
15 0.022

I have Vlookup value to return the value from column B if a cell matches
column A. I would like it to return another value (0.006) if the number that
is entered into the cell is not listed in column A.

I have tried a few different options, but can't seem it get it to work
properly.

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PCLIVE
 
Posts: n/a
Default Vlookup - no match

One way:

=IF(COUNTIF(A1:A4,C1)<1,0.006,VLOOKUP(C1,A1:B4,2))

HTH,
Paul

"jenhow" wrote in message
...
I have a range of data like this

A B
12 0.014
13 0.021
14 0.019
15 0.022

I have Vlookup value to return the value from column B if a cell matches
column A. I would like it to return another value (0.006) if the number
that
is entered into the cell is not listed in column A.

I have tried a few different options, but can't seem it get it to work
properly.

Thanks.




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
Partial String Match Using VLOOKUP cdhmotes Excel Worksheet Functions 4 December 26th 05 10:26 PM
Tricky ... Pullout related rows that match a single word using Vlookup YJL Excel Discussion (Misc queries) 18 November 14th 05 08:22 AM
can vlookup be forced to make a case sensitive match? alan Excel Discussion (Misc queries) 1 September 22nd 05 12:59 PM
is there a way to search with vlookup to match more than 1 column puppy Excel Discussion (Misc queries) 7 June 30th 05 07:41 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


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