+ Reply to Thread
Results 1 to 10 of 10

Showing a difference between values

  1. #1
    Registered User
    Join Date
    10-28-2008
    Location
    Chicago
    MS-Off Ver
    MS365 - 2211
    Posts
    99

    Question Showing a difference between values

    I have a spreadsheet with a lot of rows and there are three columns that can have a one of two values in it. These values are constantly changing from row to row, not just like a yes or no sort of thing. However 80% of the time they are the same values in all 3 columns, but I want some way of quickly identifying when there is a difference between column G, I, & K which are my three column names. So is there a way of conditionally formatting this to make a difference highlight in red or something like that?

    Matt

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Showing a difference between values

    Select all 3 columns and go to Format|Conditional Formatting and select Formula Is from 1st drop down...

    Enter formula: =COUNTIF($A1:$C1,A1)<>3

    where A1:C1 are top 3 cells in your selection and then click Format and choose colours...

    This will highlight all 3 cells in the row, if not all 3 are equal.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-28-2008
    Location
    Chicago
    MS-Off Ver
    MS365 - 2211
    Posts
    99

    Re: Showing a difference between values

    This is going to sound like a real newbie sort of question and because I am it is. So my columns are not consecutive, they skip, how do I enter the value that it is looking for as individual columns, not columns a:c, like a and c and e. I tried to find this in the help, but not sure on the phrasing of what I am looking for.

    Thanks,
    Matt

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Showing a difference between values

    Try then,

    =OR(A1<>C1,C1<>E1)

  5. #5
    Registered User
    Join Date
    10-28-2008
    Location
    Chicago
    MS-Off Ver
    MS365 - 2211
    Posts
    99

    Talking Re: Showing a difference between values

    Okay you are pretty helpful at this, now riddle me this. So say I am using columns A,C, and E. With this it appears we are assuming A is correct. When I put it in lets say I have the number 10 in A2, the number 10 in C2 and the number 10 in E2. Well I do not want this to do anything in my conditional formatting and the last function we tried was always formatting my Column A number as a base or something. Does this make any sense? I only want it to show the discrepencies between the three.

    Thanks for the help on this!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Showing a difference between values

    Try:

    =NOT(AND($A1=$C1,$C1=$E1))

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Showing a difference between values

    Going back to NBVC's original formula, putting a $ in front of the Cell ID will fix it
    Please Login or Register  to view this content.
    Hope that helps.
    Last edited by ChemistB; 09-14-2009 at 04:58 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Showing a difference between values

    Quote Originally Posted by ChemistB View Post
    The formula NBVC gave you will shade your cells if either A does not equal C or C does not equal E. This will only be true if at least 1 (any 1) of your cells doesn't equal the others. Your cells will not be shaded if all three values are the same. Isn't this what you are looking for?
    Except I should have made the column references absolute:

    =OR($A1<>$C1,$C1<>$E1)

  9. #9
    Registered User
    Join Date
    10-28-2008
    Location
    Chicago
    MS-Off Ver
    MS365 - 2211
    Posts
    99

    Re: Showing a difference between values

    Excellent that is what I was looking for!

    Now this is just a side thing that I don't really need to know, but just interested if there is a way. Is there a way to add the additional formatting to change the ones that are different in the series of three? I am not sure how that would work, because we would be implying that two of the cells are correct and only one is ever different. I may be just talking crazy talk here.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Showing a difference between values

    You would have to separately format each column...

    Select Column A and apply:

    =AND(A1<>C1,A1<>E1)

    Format

    Select Column C and apply

    =AND(C1<>A1,C1<>E1)

    Format

    Select column E and apply

    =AND(E1<>A1,E1<>C1)

    Format

    This will highlight the "odd" one out... or if all 3 different...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1