Close

Results 1 to 7 of 7
  1. #1
    DF PiMP Gazzr's Avatar
    Join Date
    Dec 2004
    Location
    Manchesta!
    Posts
    317
    Thanks
    2
    Thanked:        3
    Karma Level
    182

    Default Excel Conditional formatting with Formula

    I'm trying to conditional format a column of data based on whether the value in the cell appears in another column. After a bit of googling I have this working for numbers, but it does not like text.

    My actual data is text and numbers - the sheet is just to get the method correct. In the screenshots I would expect "as1234" in column E to be highlighted as "as1234" is present in column A.

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    Thanks in advance...

  2. #2
    DF Jedi flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,696
    Thanks
    11
    Thanked:        131
    Karma Level
    410

    Default Re: Excel Conditional formatting with Formula

    The conditional format will show if the result of your formula is 1 or above, in your text case it returns text which is false for the purpose of conditional formatting

  3. #3
    DF Rookie yarmash's Avatar
    Join Date
    Jul 2018
    Location
    Warwickshire
    Posts
    14
    Thanks
    11
    Thanked:        11
    Karma Level
    14

    Default Re: Excel Conditional formatting with Formula

    Not sure if this is exactly what you want but there is a 'duplicate values' rule within the conditional formatting function. Select both ranges you want to compare and then create a new duplicate value rule.

    [Only registered and activated users can see links. ]
    Last edited by yarmash; 2 Weeks Ago at 09:32 PM. Reason: Add image

  4. #4
    DF PlaYa chizh's Avatar
    Join Date
    Oct 2000
    Location
    Manchester
    Posts
    600
    Thanks
    30
    Thanked:        122
    Karma Level
    263

    Default Re: Excel Conditional formatting with Formula

    [Only registered and activated users can see links. ]

    Try (apply to col E)
    =COUNTIF($A:$A, $E1)
    in one column

    and apply to col A
    =COUNTIF($E:$E, $A1)
    to highlight duplicates in both columns as they are entered
    Last edited by chizh; 2 Weeks Ago at 10:45 PM.

  5. #5
    DF PiMP Gazzr's Avatar
    Join Date
    Dec 2004
    Location
    Manchesta!
    Posts
    317
    Thanks
    2
    Thanked:        3
    Karma Level
    182

    Default Re: Excel Conditional formatting with Formula

    Thanks for the quick responses. I'm not sure the highlighting of duplicates would work as I actually need to do a bit more than I first asked. I want to be able to apply the formula 3 times to get 3 colour formats. See new screenshot - same as original formula, but pointed at the 3 separate columns of data. My actual data will be just cells containing letters and numbers.
    [Only registered and activated users can see links. ]

  6. #6
    DF PlaYa chizh's Avatar
    Join Date
    Oct 2000
    Location
    Manchester
    Posts
    600
    Thanks
    30
    Thanked:        122
    Karma Level
    263

    Default Re: Excel Conditional formatting with Formula

    Not tested for duplicates in each column but appears to do what I think you're after. Blue column rules. If 65 is in both Amber and Blue, the resulting selection will only be blue. Might have to play around with the ordering of the rules

    3 different rules.
    Attached Files Attached Files

    3 Thanks given to chizh

    4me2 (4 Days Ago), akimba (1 Week Ago), Gazzr (1 Week Ago) 


  7. #7
    DF PiMP Gazzr's Avatar
    Join Date
    Dec 2004
    Location
    Manchesta!
    Posts
    317
    Thanks
    2
    Thanked:        3
    Karma Level
    182

    Default Re: Excel Conditional formatting with Formula

    Thanks - that does exactly what I wanted. Apologies for the delay in replying, I've been away.

Social Networking 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
  •