+ Reply to Thread
Results 1 to 5 of 5

Excel Challenging Puzzle

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Leicester, England
    MS-Off Ver
    2013
    Posts
    3

    Excel Challenging Puzzle

    Hi everyone.

    I'm fairly experienced in Excel but I am facing a very annoying issue. I'm a teacher and I have an electronic mark book for keeping track of my students grades. What I want to achieve is the following:

    In column A, I have my students names
    In column B, I have their target grade
    In column C, D, E and F, I have their grades for assessments they've completed.

    I'd like columns C,D,E,F to change colour depending on whether or not they've met their target grade. RED - BELOW, AMBER - EQUAL, GREEN - ABOVE. I've managed to get half way there I think but for some reason my formula isn't always correct. It's failing where, for example, if a students target grade is 4B, but they get either a 4C (which is lower) or 4A (which is higher) ... the cells always show the wrong colour! I've spent hours tinkering with the formula and looking up different solutions but I'm running out of hair now!

    I've attached my spreadsheet with some mock data in to show where it's going wrong.

    If anyone can help me with my issue I'd be eternally grateful.

    Thanks for reading and I welcome any advice.
    Attached Files Attached Files
    Last edited by AaronL1990; 02-06-2015 at 08:00 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Excel Challenging Puzzle

    In D2 Cell


    =IF(C2="",0,IF(B2=C2,2,IF(CODE(RIGHT(UPPER(C2)))<CODE(RIGHT(UPPER(B2))),3,1)))


    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-06-2015
    Location
    Leicester, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Excel Challenging Puzzle

    Thank you for your reply! That's almost fixed it for me. It only works if the number stays the same. If we go from a 4B to a 5C then it should show 3 GREEN and not 1 RED.

    I appreciate any further help you can give!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Excel Challenging Puzzle

    Revised Formula


    In D2 Cell


    =IF(C2="",0,IF(B2=C2,2,IF(CODE(RIGHT(UPPER(C2)))<CODE(RIGHT(UPPER(B2))),3,IF(VALUE(LEFT(B2))<VALUE(LEFT(C2)),3,1))))


    Drag it down...

  5. #5
    Registered User
    Join Date
    02-06-2015
    Location
    Leicester, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Excel Challenging Puzzle

    Thank you very much! SOLVED

+ 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. Formatting puzzle on dinosaur Excel 2000
    By sb9957 in forum Excel General
    Replies: 0
    Last Post: 08-04-2010, 04:08 PM
  2. Excel addin - puzzle?
    By MattShoreson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2006, 11:29 AM
  3. Excel Puzzle
    By dwalesb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2006, 02:30 PM
  4. [SOLVED] t-distribution puzzle in Excel
    By [email protected] in forum Excel General
    Replies: 8
    Last Post: 11-11-2005, 06:30 AM
  5. [SOLVED] Excel Versions Puzzle
    By David Gee in forum Excel General
    Replies: 4
    Last Post: 01-05-2005, 07:06 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