Closed Thread
Results 1 to 9 of 9

Color scale conditional formatting based on another cell's value

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    California, USA
    MS-Off Ver
    Office 2016 on Mac and Windows
    Posts
    57

    Question Color scale conditional formatting based on another cell's value

    In column F, I have a summary total number of customers that will be lost over a certain time at a given location (each row is a different location). In column G, I have the name of the rep responsible for those customers. I've used the Red-Yellow-Green color scale on column F to show in green which ones are losing no customers, and scale the gradient up to red to show which ones are losing the most. Easy enough.

    I would like for the cells with the rep's names in column G to have the same color scale formatting as was assigned by Excel's conditional formatting rule to column F.

    Is this possible? I know how to conditionally format the a cell based on another cell's value, but not to do it in an automatic color scale manner.


    dt

  2. #2
    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
    52,938

    Re: Color scale conditional formatting based on another cell's value

    If I understand you correctly, you used 1 of the built-in rules to apply the CF. These can only be used on the cell they apply to, not to otehr cells

    To apply CF to cells other than the cell containing the criteria, you need to use the "use formula" rule, but then you loose the ability to use those color gradients and will have to create a new rule for each color
    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

  3. #3
    Registered User
    Join Date
    05-25-2011
    Location
    California, USA
    MS-Off Ver
    Office 2016 on Mac and Windows
    Posts
    57

    Re: Color scale conditional formatting based on another cell's value

    Quote Originally Posted by FDibbins View Post
    If I understand you correctly, you used 1 of the built-in rules to apply the CF. These can only be used on the cell they apply to, not to otehr cells

    To apply CF to cells other than the cell containing the criteria, you need to use the "use formula" rule, but then you loose the ability to use those color gradients and will have to create a new rule for each color
    That's what I suspected, but wanted to confirm with those who know more than I do about this stuff--like you! So thank you, this is helpful. If not in solving my problem, at least I know it's not possible. There are dozens of gradient shades of color, so doing a new rule for each is not at all worth the effort.

  4. #4
    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
    52,938

    Re: Color scale conditional formatting based on another cell's value

    Happy to help and thanks for the feedback

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Color scale conditional formatting based on another cell's value

    You can achieve similar formatting with VBA - I recently formatted a choropleth map with green:red sliding scale colours, based on pivot table values. Shout if you'd like some pointers, but it's not the most straightforward fix!
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  6. #6
    Registered User
    Join Date
    11-23-2012
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Color scale conditional formatting based on another cell's value

    Hi,

    I know this is an old thread, but I'm trying to the same thing, have a value displayed, but have a graded colourscale based on other cells values. Any pointers would be greatly appreciated.

    Thanks

    John

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Color scale conditional formatting based on another cell's value

    johnharrison
    I would suggest you start a new thread of you own with the details required

    This is solved, so very few people will view the thread - its only because I subscribed to the thread that I'm here

    Also its always worth adding a sample

    Make sure you have removed any private information, remember this is a public forum and so available to anyone
    An example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  8. #8
    Registered User
    Join Date
    11-16-2023
    Location
    USA
    MS-Off Ver
    365
    Posts
    1

    Re: Color scale conditional formatting based on another cell's value

    I am interested in your offer of vba method for a choropleth map. My own goal is to apply the color map of table-1's 3-color scale conditional format overtop a same-sized table-2; where table-2's cell values are irrelevant or even blank.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Color scale conditional formatting based on another cell's value

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar or even the same as this thread, we have a rule that you open your own thread on the issue and do not piggy back another member's thread.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 10-18-2016, 12:35 PM
  2. Help with conditional formatting 3 color scale
    By ab0mbs in forum Excel General
    Replies: 1
    Last Post: 09-24-2013, 12:43 PM
  3. Using color scale conditional formatting on columns
    By moty.98 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 11:05 AM
  4. Conditional Formatting 3 color scale
    By Kagesen in forum Excel General
    Replies: 15
    Last Post: 05-03-2012, 08:50 AM
  5. conditional formatting with percentage color scale
    By timharper in forum Excel General
    Replies: 7
    Last Post: 12-16-2010, 12:34 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