+ Reply to Thread
Results 1 to 10 of 10

Dynamic conditional formatting

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Boulder, CO
    MS-Off Ver
    10
    Posts
    6

    Dynamic conditional formatting

    I have two columns. The first contains a status number and is conditionally formatted by color. The second column has a nested if statement saying if the column 1 cell is 1 column 2 is "New", if column 1 is 3, column 2 is "Active", etc. How do I get column 2 to have the same formatting color as column 1? This needs to by dynamic so that the color in both columns changes when the number in column 1 changes.

    To put it another way, the format in the column 2 cells should be the same as that in column 1, dynamically.

  2. #2
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,197

    Re: Dynamic conditional formatting

    Welcome to the forum!

    Just apply the CF rule to both ranges in the Applies To field.

    Which version of Excel are you using?
    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
    09-30-2019
    Location
    Boulder, CO
    MS-Off Ver
    10
    Posts
    6

    Re: Dynamic conditional formatting

    Thank you.
    I am using Version 1908 build 11929.203.

    When I go to a New Formatting Rule and set the style to "Data Bar", there is no field to enter which range has values that determine the color, and which fields are getting colored.
    In the attached image, column F is conditionally formatted, I want column G to have the same formatting.
    Picture1.png

  4. #4
    Registered User
    Join Date
    09-30-2019
    Location
    Boulder, CO
    MS-Off Ver
    10
    Posts
    6

    Re: Dynamic conditional formatting

    The equation in column G is...=IF(F3=1,"New",IF(F3=2,"Planing",IF(F3=3,"Active",IF(F3=4,"Complete","On Hold"))))
    I have tried several "Format Style" options. The "Red, Yellow, Green Color scale is my preference.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Dynamic conditional formatting

    It would help if you attached a sample Excel workbook, rather than a picture of one.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    09-30-2019
    Location
    Boulder, CO
    MS-Off Ver
    10
    Posts
    6

    Re: Dynamic conditional formatting

    I don't see "Go Advanced". I do see "Manage Attachments" and attached the file there.
    Attached Files Attached Files

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Dynamic conditional formatting

    See attached file.

    I have applied 3 separate CF conditions to the range $B$3:$C$19 using the following formulae:

    =$B3=3 ……. > Fill colour RED

    =$B3=2 …….. > Fill colour AMBER

    =$B3=1 ……… > Fill colour GREEN

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-30-2019
    Location
    Boulder, CO
    MS-Off Ver
    10
    Posts
    6

    Re: Dynamic conditional formatting

    Thanks. I can do that.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Dynamic conditional formatting

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  10. #10
    Registered User
    Join Date
    09-30-2019
    Location
    Boulder, CO
    MS-Off Ver
    10
    Posts
    6

    Re: Dynamic conditional formatting

    Ok. Will do.

+ 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. Dynamic Conditional Formatting
    By Burt_100 in forum Excel General
    Replies: 7
    Last Post: 11-22-2013, 05:49 PM
  2. Conditional Formatting Dynamic Calendar
    By soubriquet in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2013, 01:56 AM
  3. Dynamic Conditional Formatting
    By ronaldsmith0352 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-08-2013, 11:16 AM
  4. Conditional formatting a dynamic range
    By gentles in forum Excel General
    Replies: 2
    Last Post: 12-06-2010, 09:16 PM
  5. Want to have Dynamic Conditional Formatting?
    By e4excel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-13-2008, 03:16 PM
  6. Dynamic (not conditional) formatting
    By ansky in forum Excel General
    Replies: 3
    Last Post: 12-05-2008, 09:40 AM
  7. Dynamic Conditional Formatting
    By nada1 in forum Excel General
    Replies: 16
    Last Post: 12-21-2006, 12:23 PM
  8. Dynamic conditional formatting
    By Chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2005, 01:05 PM

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