Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
westie13
 
Posts: n/a
Default help with lookup please


hi guys, im sure this is a easy one
im using a lookup function. what i want to do is use and a cross
reference.
1a a 2 b
2 b
3a c
4 d
5a e
above is what im talking about. formular is =LOOKUP(D1,A1:A5,B1:B5)
and that works fine except if the figure i put in D1 isnt exactly the
same as in in A1:A5 ie type 3 instead of 3a the result will be the
previous line (b)
is there a way of doing a exact lookup or some way to return a false or
error if it cant find an exact result.

i hope that makes sence

Scott


--
westie13
------------------------------------------------------------------------
westie13's Profile: http://www.excelforum.com/member.php...o&userid=35490
View this thread: http://www.excelforum.com/showthread...hreadid=552635

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default help with lookup please

.. =LOOKUP(D1,A1:A5,B1:B5)

Try VLOOKUP with the 4th param set to zero (or FALSE) for an exact match:
=IF(D1="","",VLOOKUP(D1,{"1a","a";2,"b";"3a","c";4 ,"d";"5a","e"},2,0))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"westie13" wrote:

hi guys, im sure this is a easy one
im using a lookup function. what i want to do is use and a cross
reference.
1a a 2 b
2 b
3a c
4 d
5a e
above is what im talking about. formular is =LOOKUP(D1,A1:A5,B1:B5)
and that works fine except if the figure i put in D1 isnt exactly the
same as in in A1:A5 ie type 3 instead of 3a the result will be the
previous line (b)
is there a way of doing a exact lookup or some way to return a false or
error if it cant find an exact result.

i hope that makes sence

Scott


--
westie13
------------------------------------------------------------------------
westie13's Profile: http://www.excelforum.com/member.php...o&userid=35490
View this thread: http://www.excelforum.com/showthread...hreadid=552635


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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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