+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting - not equal to (newbie question)

  1. #1
    Registered User
    Join Date
    01-14-2015
    Location
    Arizona
    MS-Off Ver
    2010
    Posts
    3

    Conditional Formatting - not equal to (newbie question)

    Hello - What I’m attempting to do is apply conditional formatting to column B that basically states: If the values in column B are not 3, 5A, 5B or 6 then highlight the cell yellow. I’ve played around with a couple of different types of formulas with no success? Any suggestions on formulas? I’ve tried using a completed formulas(<>) as well as the conditional formatting dropdown in 2010 with no luck.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting - not equal to (newbie question)

    Select B1

    Conditional Formatting
    New Rule
    Use a formula to determine...

    =AND(B1<>3,B1<>"5A",B1<>"5B",B1<>6)

    Format as Yellow
    Use Format painter (paintbrush icon) to copy to other cells

    NOTE: You're comparing column B against numbers and text. You may need to put the 3 and 6 in inverted commas if they are text
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Conditional Formatting - not equal to (newbie question)

    Try this formula (assuming B1 is the first cell highlighted in the range):

    =AND(B1<>3,B1<>"5A",B1<>"5B",B1<>6)

    If the 3 and 6 are text values, they need to be enclosed in quotes, like 5A and 5B.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-14-2015
    Location
    Arizona
    MS-Off Ver
    2010
    Posts
    3

    Re: Conditional Formatting - not equal to (newbie question)

    Thanks, but for some reason it is not recognizing 5A and 5B and is conditionally formatting those values yellow. 3 and 6 seem to be working OK.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Conditional Formatting - not equal to (newbie question)

    Maybe you have some spaces in the cells that appear to contain only 5A or 5B - use =LEN(cell) in an empty cell to find out how many characters you have in the offending cell.

    Hope this helps.

    Pete

+ 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. Newbie Conditional Formatting uestion
    By pasqui83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2014, 05:13 PM
  2. Newbie VBA Macro question- Conditional Copy & Paste based on time
    By K63W in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2012, 05:56 PM
  3. Conditional Formatting - not equal to
    By lordtopcat in forum Excel General
    Replies: 1
    Last Post: 08-09-2011, 11:34 PM
  4. Conditional formatting - nothing does not equal zero
    By username132 in forum Excel General
    Replies: 4
    Last Post: 03-10-2008, 05:37 AM
  5. DOES NOT EQUAL - Conditional Formatting
    By SamuelT in forum Excel General
    Replies: 5
    Last Post: 02-09-2006, 10:09 AM

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