Consulting

Results 1 to 3 of 3

Thread: RANGE FILL BASED ON CELL VALUES

  1. #1

    RANGE FILL BASED ON CELL VALUES

    I think this is pretty simple for some experts but I don't know how to do a fill based on multiple values. I am modifying a morning report using a button and want to add some code. I want to fill the row from B:G in green if the cell in the "dept" column contains "ENG" AND the cell in the column Cons. contains "WAL.

    Additionally, a little trickier same thing but fill in red if the following are met in row,

    "Dept" column value contains "ENG"
    "Cons." column value does NOT contain "WAL"
    "Waiting" column is equal or greater than 5
    and "Status" column value does not contain "OFA", "WOI", or "ABB"

    Screenshot 2023-10-15 194857.jpg

  2. #2
    VBAX Mentor
    Joined
    Nov 2022
    Location
    The Great Land
    Posts
    337
    Location
    Do you know how to use conditional formatting?

    Select the 6 columns and create 2 rules:
    =AND($C2="ENG",$D2="WAL")
    
    =AND($C2="ENG",$G2>=5,NOT(ISNUMBER(SEARCH(IF(ISBLANK($H2),"XXX",$H2),"OFA,WOI,ABB"))))
    Last edited by June7; 10-15-2023 at 09:23 PM.
    How to attach file: Reading and Posting Messages (vbaexpress.com), click Go Advanced below post edit window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    I do, ill try to work on it with that. I am just new to excel and getting back into it after some years. Also can be overwhelming when you learn its capabilities...sometimes forget the basics.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •