+ Reply to Thread
Results 1 to 14 of 14

Conditional formatting: not matching

  1. #1
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Question Conditional formatting: not matching

    If I would like cells with values that are not listed, with exception of empty cells, to turn red, how would I go about? For instance when I would like all cells with values that are not listed as criteria to turn red (not including empty cells)?

    Thanks in advance!

    EXAMPLE FORMATTING.xlsx

    http://i.snag.gy/oxPXh.jpg

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    you can use
    countif(E1:E7,A1)=0
    and
    A1<>""

    combine as an AND
    AND( A1<>"", COUNTIF($E$1:$E$7, A1)=0)
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Re: Conditional formatting: not matching

    That's truly awesome. Why the A1 part though? I've tried to change cell A1 out for other cells in the function, which didn't produce the same result.

    Why is only this 1 cell listed in the function?

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    only because i started in row 1
    you can change the row number
    BUT you also have to change the applies to range

    so if your range is the same row
    AND( A2<>"", COUNTIF($E$1:$E$7, A2)=0)
    But the range it applies to needs to change to A2:??

    conditional formatting will look in the cell that you told it to use as a range

    so if its A1 : B10

    then the formula would also have to have A1

    otherwise it will be looking in say A10 - if the range was A10:B20
    but use the formula and test cell A1 - and change Cell A10 if true

    so to do A10:B20
    the formula would need to be
    AND( A10 < >"", COUNTIF($E$1:$E$7, A10)=0)
    Last edited by etaf; 11-04-2014 at 05:18 PM.

  5. #5
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Re: Conditional formatting: not matching

    You're a king, thanks a million!

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    your welcome thanks for the rep

  7. #7
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Re: Conditional formatting: not matching

    One more question: how could I create a function, which counts the total number of values that are NOT listed and marked as red in the table (range A2;B14)?

    Thanks!

    EXAMPLE FORMATTING.xlsx

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    One more question: how could I create a function, which counts the total number of values that are NOT listed and marked as red in the table (range A2;B14)?
    I thought thats what we have
    Are do you just want the actual number ?

    I have added a column which counts the criteria and also wil count blanks in the range
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Re: Conditional formatting: not matching

    Yes, I am looking for the actual number. It is the same idea as the function you created for the conditional formattting. However, I can't use that same function to give me the total number of values.

    Basically, I would like Excel to add up all values that are marked as red, so that I know the total amount of values which are not listed as criteria (Wordpress, Microsoft, etc.).

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    cool - then thats what I have done
    to count the actual red cells - would need VBA - if the solution I provided does not work

    I also think we should be able to create a Array formula to count from the list - but i cant work that out at the moment

    is the attached OK

  11. #11
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Re: Conditional formatting: not matching

    You've counted the values that are listed as criteria (all Google related values), would it also be possible to count the values that are not listed as criteria (Wordpress, Microsoft, etc.)?

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    Dah!!!!

    Well you could add all the cells in a range using
    =ROWS(A1:B14) * COLUMNS(A1:B14)
    and then take that away -

    pretty messy
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-02-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Microsoft Office 2010
    Posts
    16

    Re: Conditional formatting: not matching

    Cool, thanks again for all your help, much appreciated!

  14. #14
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Conditional formatting: not matching

    someone else may come up with a better solution

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditional formatting: Strikethrough Matching values - but only once!
    By Lokkenreload in forum Excel General
    Replies: 7
    Last Post: 11-27-2013, 04:32 AM
  2. [SOLVED] Conditional formatting by matching text from a list
    By JAMES_G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2013, 11:26 AM
  3. Excel 2007 : matching cells with conditional formatting
    By strokedmaro in forum Excel General
    Replies: 2
    Last Post: 06-20-2010, 06:03 PM
  4. Conditional Formatting if Matching Set of Values
    By Niester Rabbit in forum Excel General
    Replies: 10
    Last Post: 06-08-2009, 02:55 AM
  5. matching values that are not in order with conditional formatting
    By TBA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2006, 11:10 PM

Tags for this Thread

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