Compare 3 columns in excel

Freeman2022

New Member
Joined
Nov 3, 2021
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a list of numbers in column A listed as Customer numbers, also in columns C,D,E are customer numbers. What I'm trying to do is if Column A info is found in column C,D or E, then Column F is Contacted, if not then not contacted.

Thanks in advance

I'm using excel 365
 

Attachments

  • Customer Number.PNG
    Customer Number.PNG
    16.5 KB · Views: 6
90 is in Column A and Column C, but it shows not contacted.
Sure it does.
"90" appears in cell A2.
So in column F2 it shows "contacted"

Note that the formula in column F applies to column A of the same row (row 2).
So F2 applies to A2.

If you want it to work any other way, you need to explain it in more detail, as it is not clear to us.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Looks like it is working just fine to me.

Note that the formulas you are placing in column F are looking up the values in column A OF THE SAME ROW in the entire range in columns C-E.
If that is not what you want, then you need to explain in more detail.
Right, I indicated that the numbers might not be in the same row, if the info in column A is found on any row C-E it should be Contacted. Does that help?
 
Upvote 0
if the info in column A is found on any row C-E it should be Contacted.
But that is exactly what the formula is doing, if the value in A is found, then that row in col F is marked as contacted.
 
Upvote 0
But that is exactly what the formula is doing, if the value in A is found, then that row in col F is marked as contacted.
Oh ok yes, then I said it backwards, sorry about that, if the values in Column C-E are found anywhere in Column A, it should say contacted. If columns C-E does NOT contain a number in Column A, then it should say NOT Contacted.. Column F should be driven by C-E. So sorry about that
 

Attachments

  • Customer4.PNG
    Customer4.PNG
    27.8 KB · Views: 3
Upvote 0
Hi, is this ok for you ?

View attachment 70948
I am pretty sure that will not work for them, as that is only checking cell A2 and not all of column A.

I think they need a formula like this in F2:
Excel Formula:
=IF(COUNTIF(A:A,C2)+COUNTIF(A:A,D2)+COUNTIF(A:A,E2)>0,"contacted","not contacted")
 
Upvote 0
Solution
I am pretty sure that will not work for them, as that is only checking cell A2 and not all of column A.

I think they need a formula like this in F2:
Excel Formula:
=IF(COUNTIF(A:A,C2)+COUNTIF(A:A,D2)+COUNTIF(A:A,E2)>0,"contacted","not contacted")
PERFECT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This works....Thank YOU SO MUCHHHHHHHHHHHHHHHHHHHHHHHHHHHH
 
Upvote 0

Forum statistics

Threads
1,216,441
Messages
6,130,643
Members
449,585
Latest member
Nattarinee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top