Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default If, Or function or macro to compare 3 columns of numbers

Good morning;

I am not sure if I should post here or Excel programming. I need a function
or macro that will compare A1..A..., B1..B..., C1...C... , to D1...D...,
This would be across rows. If any of the values matched, I.E. A1, B1, C1,
matched D1, then enter the value in in E1, Else enter "No Match" in E1. This
would need to compare the columns row by row for approximately 3,000 rows of
data.

Is it possible to use an If Or function for more than two comparisons
without going to a macro.
Thanks in advance
Phil

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default If, Or function or macro to compare 3 columns of numbers

Enter this on the first row then copy down

=IF(OR(A1=D1,B1=D1,C1=D1),D1,"No Match")

"AuthorizedUserPF" wrote:

Good morning;

I am not sure if I should post here or Excel programming. I need a function
or macro that will compare A1..A..., B1..B..., C1...C... , to D1...D...,
This would be across rows. If any of the values matched, I.E. A1, B1, C1,
matched D1, then enter the value in in E1, Else enter "No Match" in E1. This
would need to compare the columns row by row for approximately 3,000 rows of
data.

Is it possible to use an If Or function for more than two comparisons
without going to a macro.
Thanks in advance
Phil

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If, Or function or macro to compare 3 columns of numbers

One way:

Entered in E1 and copied down as needed:

=IF(COUNTIF(A1:C1,D1),D1,"no match")

--
Biff
Microsoft Excel MVP


"AuthorizedUserPF" wrote in
message ...
Good morning;

I am not sure if I should post here or Excel programming. I need a
function
or macro that will compare A1..A..., B1..B..., C1...C... , to D1...D...,
This would be across rows. If any of the values matched, I.E. A1, B1, C1,
matched D1, then enter the value in in E1, Else enter "No Match" in E1.
This
would need to compare the columns row by row for approximately 3,000 rows
of
data.

Is it possible to use an If Or function for more than two comparisons
without going to a macro.
Thanks in advance
Phil



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default If, Or function or macro to compare 3 columns of numbers

Thanks

akphidelt

That will work.

"AuthorizedUserPF" wrote:

Good morning;

I am not sure if I should post here or Excel programming. I need a function
or macro that will compare A1..A..., B1..B..., C1...C... , to D1...D...,
This would be across rows. If any of the values matched, I.E. A1, B1, C1,
matched D1, then enter the value in in E1, Else enter "No Match" in E1. This
would need to compare the columns row by row for approximately 3,000 rows of
data.

Is it possible to use an If Or function for more than two comparisons
without going to a macro.
Thanks in advance
Phil

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
Formula to compare numbers in 3 columns 3/23/08 Marie FP[_2_] Excel Discussion (Misc queries) 7 March 25th 08 04:13 AM
Formula to compare numbers in 3 columns Marie FP[_2_] Excel Discussion (Misc queries) 1 March 24th 08 01:50 AM
How do I compare tow columns of numbers? ken0860 Excel Discussion (Misc queries) 1 June 13th 06 09:18 PM
Compare text/numbers in different columns. Mike Excel Discussion (Misc queries) 1 February 7th 06 07:18 PM
How do I compare two Excel columns of numbers and see non-matches Tcom Excel Worksheet Functions 1 December 7th 05 09:22 PM


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