+ Reply to Thread
Results 1 to 12 of 12

Changing colour of cells, but wait it is not that simple.

  1. #1
    Registered User
    Join Date
    10-24-2017
    Location
    Manchester England
    MS-Off Ver
    2010
    Posts
    2

    Changing colour of cells, but wait it is not that simple.

    Spreadsheet issue.jpg


    Hello everyone,

    So I have a issue that I need a lot of help solving, it might be me being really stupid, I can not think of the best way to do this, it can not be conditional formatting.

    I am a teacher and I am trying to help the whole school by showing them the lowest grade students should achieve. I have put this information into a tracking spreadsheet and every half term the teachers will indicate how much progress the students have made and how close they are to reaching their target. I made mine in a very simple way by just coloring the cells required.

    If you look at the uploaded image you can see the first student has a target of a 1-. Therefore all grades below 1- are pink, the -1 is blue and the rest of the row going up all the way up to 9 (not included in image) is green.

    You can see as the grades get higher the blue target cell is moved up for all the students in the class.

    My question is how do I get it so that the spreadsheet automatically colors in the cells based on the target seen in the first column.

    Please feel free to throw any help at me. I am thinking it can not be lots and lots of levels of conditional formatting.

    All your help is greatly received.

    Mike

  2. #2
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Changing colour of cells, but wait it is not that simple.

    It can be done with conditional formatting, however I cannot see how you know that the student has a target of -1.

    I am a teacher, too.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Changing colour of cells, but wait it is not that simple.

    Oh, hang on - is this one row per student?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Changing colour of cells, but wait it is not that simple.

    Three CF formulas:
    =(COLUMN()< MATCH($A2,$A$1:$N$1,0))
    =(COLUMN()=MATCH($A2,$A$1:$N$1,0))
    =(COLUMN()> MATCH($A2,$A$1:$N$1,0))

    I have assumed that it IS one row per student
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Changing colour of cells, but wait it is not that simple.

    I am confused: some of the target grades in column A do not have matches in row 1: there is no target grade of 1 or 2, for example. Where do these fit in with your grading grid? All of the grades possible will need to be represented along the top.

    Anyhow, you need three CF rules applied to the range $B$2:$N$10 (based on your sample):

    =COLUMN(B2) < MATCH($A2,$A$1:$N$1,0)
    =COLUMN(B2) = MATCH($A2,$A$1:$N$1,0)
    =COLUMN(B2) > MATCH($A2,$A$1:$N$1,0)

  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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Changing colour of cells, but wait it is not that simple.

    Snap, Glenn!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Changing colour of cells, but wait it is not that simple.

    Great minds... etc.

  8. #8
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Changing colour of cells, but wait it is not that simple.

    Fools, my love, fools ...

  9. #9
    Registered User
    Join Date
    10-24-2017
    Location
    Manchester England
    MS-Off Ver
    2010
    Posts
    2

    Re: Changing colour of cells, but wait it is not that simple.

    Absolutely saved my day!

    You are both my heroes!

    Also in regard to "How can you have a target of a -1?"

    It is odd isn't it, we are saying at our school that:

    -1 not a solid 1 GCSE grade
    1 a solid GCSE 1 grade
    1+ Could push up to a -2 grade

    We have gone from life without levels, to lots more levels.

    Anyway, I can not thank you both enough! Heroes I tell thee! Really appreciate it.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Changing colour of cells, but wait it is not that simple.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  11. #11
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,790

    Re: Changing colour of cells, but wait it is not that simple.

    You're welcome!

    An interesting concept - target grades that will never match GCSE outcomes - excellent!!!

  12. #12
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,873

    Re: Changing colour of cells, but wait it is not that simple.

    PS. If in coulumn with student grades you expect 2 (not 2=) as in the first screenshoit 4 last rows, formulas in conditional formatting could be changed in such way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    
    Best Regards,

    Kaper

+ 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. Changing Colour of Cells help
    By kdr2903 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2015, 11:09 AM
  2. Changing colour of named cells
    By c.davidson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2015, 04:14 AM
  3. Cells changing colour without reason
    By Mousiefuzz in forum Excel General
    Replies: 2
    Last Post: 10-02-2015, 08:37 AM
  4. Replies: 3
    Last Post: 02-13-2014, 06:31 AM
  5. Colour changing cells
    By ahav in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2011, 07:04 AM
  6. Changing a cell's colour basing on other cells' colour
    By rhua5436 in forum Excel General
    Replies: 11
    Last Post: 09-23-2010, 05:49 AM
  7. Changing font colour in some cells
    By Di W in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-12-2006, 02:10 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