Is there a way to compare one column with another?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I compare numbers in one column to make sure that the numbers in
another column are the same for each row?
 
Hi Tammy,

Say your data is in columns A and E,
Input a helper column F
In F1 put =IF(A1=E1,"","Error")
Click on the fill handle and drag down as far as is needed.
It will return an Error when they aren't equal otherwise a blank.

You could also do it with conditional formatting.
Select all of your data in column E making sure E1 is the active cell
Go to Data>Conditional Formatting
And set Formula is =A1<>E1
Click on format button and set a color for the cell
from the patterns tab and OK out.

HTH
Martin
 
Thanks for your help, works Great!

Tammy

MartinW said:
Hi Tammy,

Say your data is in columns A and E,
Input a helper column F
In F1 put =IF(A1=E1,"","Error")
Click on the fill handle and drag down as far as is needed.
It will return an Error when they aren't equal otherwise a blank.

You could also do it with conditional formatting.
Select all of your data in column E making sure E1 is the active cell
Go to Data>Conditional Formatting
And set Formula is =A1<>E1
Click on format button and set a color for the cell
from the patterns tab and OK out.

HTH
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top