+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting on Data Validation List Problem

  1. #1
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Conditional Formatting on Data Validation List Problem

    I have list of 61 text items in a column on a spread sheet called Data

    In another sheet, Week 7, I have set up multiple cells to populate from the list by data validation (all working fine)

    These 61 text items will have 1 of 6 colors associated with them selected from the drop down list.

    I have successfully setup Conditional Formatting with 6 different colors, using New Formatting Rules>Classic>Format only cells that contain>Specific text>containing> & this is where my problem is ... I've only been able to put in the text from one cell Not multiple Cells, ie

    From spread sheet "Data" in cell D2 is the text Billable & in D3 is the text Partially Billable. If either of these are selected from drop down on sheet titled "Week 7" I want them to color blue but I see no way of selecting the text from more than one cell.

    So I could make 61 Conditional Formatting Rules for each item in the list but that seems like a lot of work

    Am I using the wrong drop down selection in the Conditional Formatting - New Formatting Rule dialog box? Should it be "Use a formula to determine which cells to format" instead?

  2. #2
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Conditional Formatting on Data Validation List Problem

    Yes, you need to use the "Use a formula..." option, then something like:

    =AND($D2="Billable",$D3="Partially Billable")

    then apply your blue formatting. In the "Manage Rules" screen you will also see Applies to - make sure this is set the whole range you want the rule to be applied on.

    If you get stuck, could you upload a small sample workbook (with desensitized data)
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  3. #3
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    Thanks shirleyxls

    Still can't get it working

    Will upload an attachment
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Conditional Formatting on Data Validation List Problem

    OK, I see the problem.

    I've modified the formulas so they link back to your list values - that way if you change the names you won't need to modify the CF formulas. I also made the cell references relative and have only applied the formatting within the range of your table.

    Seems OK, but let me know if not.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    Shirley Thank You So Much for your help!!!

  6. #6
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    I'm getting color sections outside the table, perhaps I'm not understanding the cell references being relative? This is when I try it on the actual sheet, not the one your updated. So when I select an item from the dropdown, it highlighted cell is not the one selected in the dropdown but one 4 rows above and one to the left.

  7. #7
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    Here is a screenshot
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    It's working now, above I thought I had applied the cell range in "Applies To" in the "Manage Rules" dialog box.

    Thanks Again!!

  9. #9
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    how to do write the formula if there are more options in the drop down menu, say 5 options ranging from D21:D25?

    =OR(D6=Data!$D$21,D6=Data!$D$25)

    instead of =OR what would it be?

  10. #10
    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,946

    Re: Conditional Formatting on Data Validation List Problem

    maybe this...
    =countif($D$21:$D$25,D6)>0
    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

  11. #11
    Registered User
    Join Date
    06-29-2016
    Location
    Hawaii
    MS-Off Ver
    2011
    Posts
    10

    Re: Conditional Formatting on Data Validation List Problem

    Thank s FDibbins for your suggestion. I couldn't get it to work. The data is text not numeric, not sure if that matters.

    I'm really supprised that the "Edit Formatting Rule" doesn't allow a formula in the settings for "Specific text" "Containing"

    I found a work around, not ideal but it works: In the Data Validated List there are 61 options that within 1 of 7 corresponding colors. So what I did was put a "1." in front of each list items that I want to be blue and a "2." for those that are orange and so on.


    Still open to other suggestions that are simple & don't require work arounds. Thanks
    Attached Images Attached Images

  12. #12
    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,946

    Re: Conditional Formatting on Data Validation List Problem

    You need to use the "Use Formula" rule for this

+ 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. Conditional Data Validation/Formatting
    By BWellman in forum Excel General
    Replies: 1
    Last Post: 03-30-2014, 02:30 AM
  2. Problem getting conditional formatted dropdown list items to keep their formatting in list
    By scottatbuckman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 02:39 PM
  3. Replies: 3
    Last Post: 07-13-2013, 08:42 AM
  4. conditional formatting/data validation?
    By 13lack13lade in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2013, 10:47 PM
  5. Replies: 6
    Last Post: 06-28-2012, 11:45 AM
  6. Data Validation and Conditional Formatting using VBA
    By ABabeNChrist in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-30-2010, 03:53 AM
  7. Conditional Formatting/Data Validation?
    By 1230dc in forum Excel General
    Replies: 2
    Last Post: 10-07-2009, 05:38 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