+ Reply to Thread
Results 1 to 4 of 4

Fill Colour Based on another cell's value

  1. #1
    Registered User
    Join Date
    11-05-2016
    Location
    UK
    MS-Off Ver
    Office 2010
    Posts
    2

    Fill Colour Based on another cell's value

    Hi

    I am aware you can have Excel change a cell's fill colour depending on it's value. But can you have a cell change it's colour depending on another cell's value.

    What I am trying to achieve is a football scores prediction / results table. In the first cell (A1) I predict how many goals the home team will score. The second (A2) with the total goals the away team will score. In (A3) and (A4) I will put the actual home and away goal totals after the game is over. When I update the third and fourth column after full time, I would like the first and second cell to change their fill colour on how close I was. So if i predict the home team to score 1 goal, and it is correct, I put a "1" in A3 and A1 gets filled green. If I predicted the home team to score to score 5 in A1, and I enter "1" in to A3, A1 fills red.

    Just to make it more complicated I wondered if my prediction (A1 and A2) was within 1 goal (so I predict 2 goals for the home team, and they score 1 or 3) the cell could fill orange?

    Basically I could do my predictions, at full time enter all of the actual results and columns 1 + 2 colour fill themselves on how close I was.

    Does this even make sense to anyone, and if so, is it even possible?!

    Help me smart people!

    Regards

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

    Re: Fill Colour Based on another cell's value

    Yep. that's entirely possible. see the CF in the file attached:

    =A2=C2
    applies to =$A$2:$B$7 for exact match and:

    =(OR(A2=C2-1,A2=C2+1))
    applies to same raneg for ± 1
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-05-2016
    Location
    UK
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: Fill Colour Based on another cell's value

    Well that is amazing.

    Thank you very much for your hard work!

    Kind regards

  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 2403
    Posts
    44,083

    Re: Fill Colour Based on another cell's value

    You're welcome.

+ 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. Fill cell colour based on another cells contents.
    By Jamesbil in forum Excel General
    Replies: 14
    Last Post: 04-25-2016, 03:41 PM
  2. Fill cell with colour based on a ranged value?
    By DannyWinning in forum Excel General
    Replies: 1
    Last Post: 01-14-2014, 10:53 AM
  3. Change fill colour based on text in a cell
    By Doogles10 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 07-01-2013, 03:30 PM
  4. Fill Colour of a cell based on another cell Fill Colour
    By ConorK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2012, 07:09 AM
  5. Fill cell colour based on value
    By bd528 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2010, 08:47 AM
  6. Changing cell fill colour based on date in cell - Multiple rows
    By ExcelNewb2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 07:30 AM
  7. Replies: 1
    Last Post: 05-06-2010, 03:09 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