+ Reply to Thread
Results 1 to 11 of 11

Trying to conditionally format columns based on dynamic cell values

  1. #1
    Registered User
    Join Date
    03-20-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    13

    Trying to conditionally format columns based on dynamic cell values

    Hi legends,
    So the school system that I am working in has a scale for student achievement that starts at the letter A (the lowest) and 10 being the highest.
    The specific progression scale is annoying as it doesn't follow the standard logic that you would think applies. Here is the full scale:
    A, B, C, D, 0.5, F, F.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 10

    What I am trying to get this spreadsheet to do is to conditionally format the numbers in the columns based on the students achievement score and their year level. To explain the scale more, 2.0 is the expected progression point for a student who has finished grade 2. 2.5 is the expected achievement level for a student who is half way through grade 2, 3.0 is the expected for grade 3 and so forth. The letters A,B,C and D refer to students whose level of achievement is below the expected result for any student who is in primary school and usually is representative of a student with a learning difficulty. F is the expected level of a student in their 'Foundation' year of school, and F.5 is half way through grade 1. 0.5 refers to a student who is half way through their 'Foundation' year of schooling, which is why the scale is messy. If you're confused by the explanation have a look in the sheet in the tab where I've outlined it in table form.

    I believe I've got the sheet doing what I want it to do for column E, however I haven't been able to find an easy way to copy the same conditional formatting into the other columns without having to individually alter the formulas. I also haven't applied the conditional formatting to the exceptions e.g. if a student is more than 12 months below where it involves an F. An example being a student who is in Foundation at the end of semester 1 and has an achievement level of D would make them 6 months behind the expected level (of 0.5) and would result in a red conditionally formatted cell. There are 2 semesters, and the semester 1 report will be 0.5 less than the end of year score e.g. grade 3 student at the expected level for semester 1 will show a score of 2.5.

    I hope all of that makes sense, and please ask any questions if there's anything I have failed to mention! Thanks heaps!
    Attached Files Attached Files
    Last edited by LukeMac2; 08-27-2023 at 05:51 PM.

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

    Re: Trying to conditionally format columns based on dynamic cell values

    Which version of Excel are you using? There is no version 11.
    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
    Registered User
    Join Date
    03-20-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    13

    Re: Trying to conditionally format columns based on dynamic cell values

    Sorry, I'm not sure why it came up with version 11 on my profile. I'm using 365

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

    Re: Trying to conditionally format columns based on dynamic cell values

    Because you put it there when you joined!

    Please go to your profile and update it.

    You will need to add a helper column and apply a whole number to each item in your scale (you are in good hands - I am a retired teacher and Head of Department, so I have a lot of experience in this sort of thing). Is this OK with you?

  5. #5
    Registered User
    Join Date
    03-20-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    13
    I think I've updated it
    I'll take any solution you can provide! Always good to learn from other educators!

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

    Re: Trying to conditionally format columns based on dynamic cell values

    Actually, on second look, I don't think you do. Give me a couple of minutes ...

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

    Re: Trying to conditionally format columns based on dynamic cell values

    Mmm. Tricky, this. It would be easier if the year level were recorded accurately.

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

    Re: Trying to conditionally format columns based on dynamic cell values

    OK - got it, I think.

    Add the lookup values to the table:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    D
    1
    Lookup
    2
    1
    3
    2
    4
    3
    5
    4
    6
    4.5
    7
    5
    8
    5.5
    9
    6
    10
    6.5
    11
    7
    12
    7.5
    13
    8
    14
    8.5
    15
    9
    16
    9.5
    17
    10
    18
    10.5
    19
    11
    20
    11.5
    21
    12
    22
    12.5
    23
    13
    24
    13.5
    25
    14
    26
    14.5
    27
    15
    Sheet: Scale

    Then five rules:

    =INDEX($D$2:$D$27,MATCH(N4,$A$2:$A$27,0))-INDEX($D$2:$D$27,MATCH($K4,$A$2:$A$27,0)-IF($M4=1,1,0))<=-1
    =INDEX($D$2:$D$27,MATCH(N4,$A$2:$A$27,0))-INDEX($D$2:$D$27,MATCH($K4,$A$2:$A$27,0)-IF($M4=1,1,0))=-0.5
    =INDEX($D$2:$D$27,MATCH(N4,$A$2:$A$27,0))-INDEX($D$2:$D$27,MATCH($K4,$A$2:$A$27,0)-IF($M4=1,1,0))=0
    =INDEX($D$2:$D$27,MATCH(N4,$A$2:$A$27,0))-INDEX($D$2:$D$27,MATCH($K4,$A$2:$A$27,0)-IF($M4=1,1,0))=0.5
    =INDEX($D$2:$D$27,MATCH(N4,$A$2:$A$27,0))-INDEX($D$2:$D$27,MATCH($K4,$A$2:$A$27,0)-IF($M4=1,1,0))>=1

    The Applies to ... range needs to cover all columns you need covering.

    There may be a slight issue with some of the lower grades - the values in D might need to be tweaked there, but you know your data better than I do!

    I've removed all rules you'd created from the Scale worksheet and set the rules up there as a demo (cells N4 to N13). This seems to produce the correct reults. Let me know. Select cell N4 and open the Conditional Formatting > Manage Rules dialog.
    Last edited by AliGW; 08-28-2023 at 02:31 AM. Reason: Workbook updated.

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

    Re: Trying to conditionally format columns based on dynamic cell values

    Just to add to the above, I don't understand student 3's colour coding (you have given yellow).

    The student is, as I understand it, in the first semester of Y1, so the target grade would be the grade for F.5, which is a 1, so how can a score of 0.5 be on target?

    That's the only one that doesn't work for me.

    If you need the CF formula rule explaining, please just shout.

  10. #10
    Registered User
    Join Date
    03-20-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    13

    Re: Trying to conditionally format columns based on dynamic cell values

    Dearest AliGW,
    You are an Excel wizard of the highest order! Thank you so much for your amazingly simple formulas that do EXACTLY what I want them to in a far less convoluted way that I could ever have hoped to achieve. I will be using the ideas from this thread for years to come and will hopefully make the understanding of data at my school exponentially easier with this visual representation of student achievement levels. I cannot thank you enough!

    To answer your question, I hadn't completely finished all the conditional formatting in column E, which is why it wouldn't have been formatting correctly.
    Yours in education,
    Luke

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

    Re: Trying to conditionally format columns based on dynamic cell values

    Ah, well there you go.

    Glad to have helped.

+ 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. [SOLVED] Conditionally Format A Single cell based on 2 columns of data
    By Tempestshade in forum Excel General
    Replies: 8
    Last Post: 11-07-2022, 02:22 PM
  2. Replies: 4
    Last Post: 09-24-2022, 02:47 AM
  3. Replies: 1
    Last Post: 01-04-2017, 06:00 PM
  4. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  5. conditionally format cell based on value in array
    By missbogota in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2016, 08:41 AM
  6. Replies: 1
    Last Post: 07-03-2014, 06:33 AM
  7. Conditionally Format Row Based on Leading Cell
    By 605Scorpion in forum Excel General
    Replies: 7
    Last Post: 06-12-2010, 08:26 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