Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to compare values and return exact matching value

I am trying to find a macro to compare a value in column 1 to a range
of values in column 2 and return the column 2 value to column 3 if
there is an exact match. I also do not want to return the column 2
value to column three more times than the value exists in column 2.

The application would be similar to MATCH except that I want the value
in the array in column 2, not it's relative position.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro to compare values and return exact matching value

=if(isnumber(Match(A1,$B$200,0)),index($B$1:$B$200 ,Match(A1,$B$200,0),1),"")

Drag fill the formula down column C.

--
Regards,
Tom Ogilvy

wrote in message
om...
I am trying to find a macro to compare a value in column 1 to a range
of values in column 2 and return the column 2 value to column 3 if
there is an exact match. I also do not want to return the column 2
value to column three more times than the value exists in column 2.

The application would be similar to MATCH except that I want the value
in the array in column 2, not it's relative position.

Any help would be appreciated.



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
compare data from different worksheets and return matching results spmu Excel Discussion (Misc queries) 1 July 11th 09 06:11 AM
OR Exact statement not working to compare values in two columns [email protected] Excel Worksheet Functions 4 October 30th 08 07:23 PM
Return across Row Numeric Values Matching EXACT Month & Year for Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 October 22nd 06 11:30 PM
Return Numeric Values Matching EXACT Date for Criteria Sam via OfficeKB.com Excel Worksheet Functions 4 October 20th 06 11:20 PM
Return all matching values [email protected] Excel Worksheet Functions 4 August 9th 06 04:02 AM


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