+ Reply to Thread
Results 1 to 3 of 3

How do I colour fill cells in Column A based on values in Column B

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    Cambridge, Ontario
    MS-Off Ver
    16.0.11328.20420
    Posts
    2

    How do I colour fill cells in Column A based on values in Column B

    Basically i want to colour fill the cells in column A based on if the values in column B are less than, between, or greater than specific values.

    ie. if B2 is 90 i want to colour fill A2 to green based on B2 value being greater than 70.

    Can i apply a formula to a cell that will colour fill the adjacent cell based on if the value is:

    -greater than 70 = green
    -between 31-69 = yellow
    -less than 30 = red

    I'm ok with basic functions, but not so great with more complex stuff like this lol

    Thanks for your help!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How do I colour fill cells in Column A based on values in Column B

    I assume that you are familiar with conditional formatting.
    Select Column A and create three Conditional formats.

    1: Formulas as specified. However 30 and 70 remain uncoloured.
    Conditional format formula for Green =$B1>70

    Conditional format formula for Yellow =AND($B1>=31,$B1<=69)

    Conditional format formula for Red =$B1<30


    2. Better Formula.
    Conditional format formula for Green =$B1>70

    Conditional format formula for Yellow =AND($B1>=30,$B1<=70)

    Conditional format formula for Red =$B1<30


    3: Conditional Formatting

    click on the A at the top of excel to select all cells in Column A

    Select the home tab and then conditional formats

    Select New Rule

    Select Use Formula to determine formatting

    Enter the formulas into the formula box


    Select format

    Select Fill

    Select the colour you want.

    Press Ok until you get out of conditional formatting.
    Last edited by mehmetcik; 10-15-2019 at 02:06 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    10-15-2019
    Location
    Cambridge, Ontario
    MS-Off Ver
    16.0.11328.20420
    Posts
    2

    Re: How do I colour fill cells in Column A based on values in Column B

    Awesome....thank you!

+ 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] Change Shape Fill colour based on cells values.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-26-2020, 09:21 AM
  2. Replies: 6
    Last Post: 08-07-2018, 09:25 AM
  3. Replies: 2
    Last Post: 06-05-2018, 04:06 PM
  4. [SOLVED] How to fill an array with values in column C based on Column D date value of Today
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2016, 07:44 PM
  5. Fill Column B based on non-unique values in Column A
    By viksmehta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-21-2014, 07:39 AM
  6. Fill cells in one column based on specific words or letter from another column
    By dokkadokka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2013, 07:04 AM
  7. Need help getting column charts to change colour based on values
    By NPC1977 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-08-2012, 07:44 PM

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