+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

  1. #1
    Registered User
    Join Date
    11-25-2018
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    3

    Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    I have an Excel spreadsheet with the grades of over 100 students. The children can get either a 1-, 1, 1+, 2-, 2, 2+, 3-, 3, 3+ etc. However the conditional formatting isn't working. It's not recognizing the numbers with a - or a + as a number. Is there any way to fix this? I've had to change the number and enter it manually in a new column for the conditional formatting to work. Ideally I want the conditional formatting to acknowledge that 1- and 1+ = 1 and so if their target was a 5 they'd be >2 below target so it would turn red.

    Thank you very much for any help

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    1- and 1+ is entered as text so using as a straight number maybe difficult
    you could use
    =VALUE(LEFT(a2,1))
    assuming the grades are in column A starting at row 2
    to change to a number
    then what are you doing ?

    otherwise attach a sample spreadsheet
    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-25-2018
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    3

    Re: Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    Thanks for the input etaf - I'll try using =VALUE(LEFT(a2,1))

    I've attached the spreadsheet to this post.
    Attached Files Attached Files
    Last edited by AliGW; 11-25-2018 at 10:16 AM.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    dont understand the spreadsheet - I would need some easy clarification on what cells you are using and output required
    it will take me quite some time to go through and understand all that spreadsheet , and most probably it is not necessary or needed to know all the detail to answer the question for the part you need

    can you give a simple sample and explain further what you are doing ?
    i dont see 1+ or 1- 1-, 1, 1+, 2-, 2, 2+, 3-, 3, 3+ . (Bl3 ???)
    Last edited by etaf; 11-25-2018 at 10:23 AM.

  5. #5
    Registered User
    Join Date
    11-25-2018
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    3

    Re: Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    Yes you're looking in the right column. Column BL is the column that I want to use conditional formatting to change each cell to red, pink, yellow or green depending on the grade. However, because the conditional formatting doesn't recognise '1+' as a number, the conditional formatting doesn't work. So I've had to make a new column, BM, to manually convert the 1+ to just a 1. Ideally what I would like to do is delete column BM and have the conditional formatting recognise that '1+' is still a 1. Similar to how a grade A+ is still an A grade.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.

    As mentioned above, a much simplified version of the spreadsheet for testing purposes would be appreciated.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Conditional Formatting: Excel not recognizing "1-" and "1+" as numbers.

    i have just used a simple sheet with 2 values and 2 conditional formatting colours to show how to do it
    hope that helps

    it does use the formula I suggested - But changed to use =

    =VALUE(LEFT(F6,1))= 1

    =VALUE(LEFT(F6,1))= 2
    etc
    and colour for each rule in conditional formatting

    so you can colour a 1+ and a 1- the same colour
    same for
    2+ and 2-
    is that what you need?
    Attached Files Attached Files

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  6. Replies: 2
    Last Post: 08-17-2012, 05:10 AM
  7. excel should "paste special" a "conditional formatting"
    By lozturk21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2005, 10:05 AM

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