+ Reply to Thread
Results 1 to 8 of 8

How to make Conditional Formatting Ignore '+' & '-' values

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Post How to make Conditional Formatting Ignore '+' & '-' values

    Hi,

    I'm attempting to use conditional formatting to compare values, however i want '+' and '-' to be ignored.

    For example if two cells were the same my sheet will highlight the one of the cells yellow. However if one cell contained '3' & the other contained '3+/3-' conditional formatting recognizes
    '3+/3-' as a greater value than '3' so this rule would not be applied.

    So i want my conditional formatting rule to ignore + and - symbols next to numbers.

    I've attached an example sheet.

    Thanks,
    Liam
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    By using a formula approach to conditional formatting you could use the below:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See attached.

    You could use a formula based around =LEFT() to make it a bit shorter but if the figures could be greater than 1 digit then that could be less straightforward than the above.

    BSB
    Attached Files Attached Files

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    something like that: =OR(A2>=B2,A2<B2) ?

    or =A2=--MID(B2,1,1)
    Last edited by sandy666; 03-24-2017 at 09:44 AM. Reason: typo

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,934

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    Formula for CF:

    =SUBSTITUTE(SUBSTITUTE(B2,"-",""),"+","")-A2=0

  5. #5
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    The solutions brilliant although i didn't mention that column A can also contain '-' & '+' values.

    So, for example if column A contains 3+ and column B contains 3 the conditional formatting wont be applied

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    try =--MID(A2,1,1)=--MID(B2,1,1)

    of course you can use LEFT() but I like MID() function
    Last edited by sandy666; 03-24-2017 at 10:30 AM.

  7. #7
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    Thanks works a charm. Giving everyone rep. Appreciate it.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to make Conditional Formatting Ignore '+' & '-' values

    You are welcome

    If the basic problem is solved
    - mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,

    Thanks

+ 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. How to get conditional formatting to ignore #DIV/0 cells
    By juntjoo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2016, 09:49 PM
  2. [SOLVED] How to modify conditional formatting to ignore specific values
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-13-2015, 07:44 AM
  3. [SOLVED] Make conditional format ignore blank cells.
    By Graham Pall in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-22-2015, 09:15 AM
  4. [SOLVED] Ignore first row when using conditional formatting formula?
    By kilbey252 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-17-2015, 07:40 AM
  5. Ignore Duplicate Values In Conditional Formatting
    By mightyeskimo in forum Excel General
    Replies: 13
    Last Post: 09-18-2010, 01:28 PM
  6. how to make a graph ignore values I do not fill in?
    By Garashta in forum Excel General
    Replies: 1
    Last Post: 05-17-2010, 11:42 PM
  7. Make Chart ignore zero values
    By jevery in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-02-2009, 06:55 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