+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Conditional Formatting

    Hi
    In one of my spreadsheets I have conditional formatting. The conditional formatting referes to the grade red for below, green for on target and blue for above target.
    However the grade are ranked as for example

    3a
    3b
    3c

    with 3a being the highest and 3c being the lowest grade, but when a students target grade is 3b and they are on a 3a for that test it shows up red as if they are performing below target when they are above.

    Is there anyway of correcting this so it will rank 3a being the highest grade and 3c being the lowest?

    If any suggestion please comment!
    Please see attachment to view the spreadsheet
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting

    where exactly is there en example of this?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Conditional Formatting

    If you click on the English Grades tab

    and you will see the first students target grade is 3b however if you scroll across to the 6th test you will see it shows 55% with means 3a which should highlight blue. This is the same with all levels 2,3,4 and 5 are all ranked 3a, 3b and 3c.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting

    Hi,

    Why not just swap the > and < signs around for the red and blue cond formats. That will work where grade numbers are the same.

    You don't however say whether say a grade 4 plus any letter should be higher or lower than a grade 3 any letter. Depending on the answer to this you may need to construct cfs which use both the grade number and grade letter in an AND condition in the cf formula.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    01-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Conditional Formatting

    swapping the signs around will only work with grades that are for example 4a when there target is 4b it will change it from red to blue and doing that will affect all the other grades above 4b for example 5a, 5b and 4a will show up red when it fact they are above target.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Formatting

    trouble is that 5c is greater than 5a! so you need to sort that out
    =LOOKUP(A1,{"2a","2b","2c","3a","3b","3c","4a","4b","4c","5a","5b","5c"},{3,2,1,6,5,4,9,8,7,12,11,10})
    but its easier to create 2 named ranges as its a bit shorter
    here is one way using lookup and named ranges for use in conditional format
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Conditional Formatting

    Thanks

    Il try it out properly tomorrow and get back on this post and let you know how it comes out!

    Regards

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting

    ...which is why I asked the Q whether say a grade 4 is higher or lower than a grade 3. As I say you'll need to use an AND test and deal with the numbers and letters independently.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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