+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting not Working on Data Validation Cell

  1. #1
    Registered User
    Join Date
    11-29-2018
    Location
    New Brunswick, Canada
    MS-Off Ver
    2013
    Posts
    18

    Conditional Formatting not Working on Data Validation Cell

    This seems like something that should be working fine, but clearly I'm missing something. I am doing up a seating chart for an office. Each area needs to have a certain number of people that have certain classifications. I'll just use one "seat" as an explanation. Cell B7 says "1", representing seat 1, nothing special. Cells B8 and B9 pull from a Data Validation List of employee names, and is using Merge and Center and Wrap Text. Cell B10 represents the employee class, for example "EXC", which pulls from another Data Validation list. What I want to happen, is when the employee class is selected as "EXC", that cell, along with the employee name cells (so cells B8, B9 and B10) all turn green. My conditional formatting says B10="EXC", format is set as green fill and the applied field is $B$8:$B$10. When it is applied, only the employee name cells (B8 and B9) turn to green. The class cell (B10) remains normal. I cannot figure out what the problem is, and it's driving me nuts because this should be extremely simple. I have also tried using a formula similar to if(B10="EXC",1,0), but had the same results. Thanks!

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

    Re: Conditional Formatting not Working on Data Validation Cell

    Perhaps attach the workbook ...
    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.

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Conditional Formatting not Working on Data Validation Cell

    I was able to reproduce your problem following your instructions.
    The issue is that in your conditional format formula the row number needs to be absolute like the following. Note the added "$"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by GeoffW283; 12-12-2018 at 09:03 PM.

  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,929

    Re: Conditional Formatting not Working on Data Validation Cell

    Just to add to what Geoff said - for CF to work, it only needs a TRUE (1) or FALSE (0) response. So, if you need to test for something like you are doing, a simple =cell-ref=criteria should be enough.
    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. Conditional formatting & data validation
    By EXCELsior44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2016, 10:25 PM
  2. Replies: 0
    Last Post: 09-25-2015, 02:56 PM
  3. Conditional Formatting or Data Validation for 1 cell based on another but limited data?
    By ExcelBeginner326 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2015, 01:25 PM
  4. Conditional Data Validation/Formatting
    By BWellman in forum Excel General
    Replies: 1
    Last Post: 03-30-2014, 02:30 AM
  5. Replies: 6
    Last Post: 06-28-2012, 11:45 AM
  6. Replies: 5
    Last Post: 05-25-2012, 02:00 PM
  7. validation rules not working when someone copy paste data on validation cell
    By jthakrar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-17-2010, 03:36 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