+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting Help! Cell color dependent on other cell values.

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    9

    Conditional Formatting Help! Cell color dependent on other cell values.

    Hello all,

    I am trying to set conditional formatting so that it is dependent on another cell. I want the color to change based on the percentage of what I need.

    CONTEXT
    I am creating an inventory forecasting sheet for apparel needs for a customer base. For example, I know for a fact that I have 1000 customers this month, and I also know that 18% of them are size Small.

    On the attached sample I have 25 units of Small, but my monthly need is 180. My deficit is 155. I have only 13.9% of what I need.

    I want my Surplus/Deficit column to change color based on the percentage of Monthly Needs. So the color of E7 would be dependent on D7.

    For example:
    Between values 0 and 0.25*D7, E7 will be red.
    Between values 0.25*D7 and 0.50*D7, E7 will be green.
    Between values 0.50*D7 and D7, E7 will be blue.

    OR

    If F7 is between 0-25%, E7 will be red
    etc.

    I feel like there is a pretty easy custom formula but haven't been able to find the correct one.

    Any pointers or links would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,182

    Re: Conditional Formatting Help! Cell color dependent on other cell values.

    CF1:

    =AND(F7<>"",F7<0.25) red

    CF2:

    =AND(F7<>"",F7<0.5) Green

    CF3:

    =F7>=0.5 blue

    Choose Stop if true
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-05-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    9

    Re: Conditional Formatting Help! Cell color dependent on other cell values.

    Ah thank you Phuocam! I was wondering if I can paste special these conditions like dragging down a regular formula where corresponding cells ascend?

    Could you also show me how I can do this using dependent on D column values?

  4. #4
    Registered User
    Join Date
    11-05-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    9

    Re: Conditional Formatting Help! Cell color dependent on other cell values.

    Also I am using google sheets, wondering if "Choose stop if true" is only microsoft excel?

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

    Re: Conditional Formatting Help! Cell color dependent on other cell values.

    You'd need to ask this on the Google Docs forums.
    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.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Conditional Formatting Help! Cell color dependent on other cell values.

    1. You dont need to copy/paste special (you could just copy/paste if needed), just set the range in the Applies To window.
    2. I have not opened the files, but it looks like you are testing against F? If so, and you need to refer to D instead, just change the references (either manually - probably better - or by dragging with the mouse.
    3. If you set the order correctly, you may not need to use that.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Cell conditional formatting dependent upon another cell
    By olaggie1968 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2016, 02:55 PM
  2. Replies: 6
    Last Post: 12-30-2013, 11:46 AM
  3. Conditional formatting dependent on value in a different cell
    By cheal2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 12:59 PM
  4. [SOLVED] Conditional formatting of cell dependent of other cell date
    By logz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2013, 01:39 AM
  5. [SOLVED] Conditional formatting interior color from comparing two cell values VBA
    By Blue_Diamond in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2012, 11:24 AM
  6. Replies: 5
    Last Post: 05-10-2012, 10:49 PM
  7. Conditional Formatting of Font Color based on Values in another cell
    By dpcp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2012, 07:49 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