Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Need to do an EXACT LOOKUP

I want to compare Column A from two worksheets, and copy Column B from the
second into Column B if they are exact. For cell A1, if I use
=LOOKUP(A1,'Report'!A$2:A$6500,'Report!B$2:B$6500) , I end up getting the
'closest fit', but I would rather have blanks if they do not exactly match.
If I use something like
=IF(EXACT(A1,'Report'!A$2:A$6500),'Report'!B$2:B$6 500,""), then the formula
gives me the last value in the array comparison, which is always blank.

I can probably combine the LOOKUP with an AND IF(EXACT) somehow that will
weed out the ones I don't want, but there has to be a simple formula or
function for this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Need to do an EXACT LOOKUP

Don't use LOOKUP, use VLOOKUP.
If you require an exact match, the 4th argument should be set to FALSE
Look in HELP for details

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"archsmooth" wrote in message ...
|I want to compare Column A from two worksheets, and copy Column B from the
| second into Column B if they are exact. For cell A1, if I use
| =LOOKUP(A1,'Report'!A$2:A$6500,'Report!B$2:B$6500) , I end up getting the
| 'closest fit', but I would rather have blanks if they do not exactly match.
| If I use something like
| =IF(EXACT(A1,'Report'!A$2:A$6500),'Report'!B$2:B$6 500,""), then the formula
| gives me the last value in the array comparison, which is always blank.
|
| I can probably combine the LOOKUP with an AND IF(EXACT) somehow that will
| weed out the ones I don't want, but there has to be a simple formula or
| function for this.


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
Lookup and Match with not exact numbers Jon Dow Excel Worksheet Functions 3 February 23rd 07 03:54 AM
Match - Exact - Lookup? Danny Excel Worksheet Functions 5 April 27th 06 10:04 PM
Lookup returns message box when an exact match is not found JFeeman Excel Worksheet Functions 3 February 11th 05 07:19 PM
LookUp - Exact only Desparate Excel Worksheet Functions 2 November 11th 04 09:52 AM
LookUp - Exact only Desparate Excel Worksheet Functions 1 November 11th 04 09:45 AM


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