+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    Eastern Washington
    MS-Off Ver
    2010
    Posts
    20

    Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    I am wanting to highlight the used locker numbers located in columns D:G (North and South side lockers) once the matching locker number is entered into column A but only if it also matches the correct info in column B (North or South).

    The locker numbers in columns D:G are all the lockers we have in the warehouse, the locker numbers in column A are what is currently assigned. Essentially I want to see what lockers are available at a glance.

    The North and South break rooms both have lockers that are numbered the same. I have not entered the information for the South lockers.

    I have tried the =AND(E11:F37=B3:B61,C3:C61=E9) but nothing happens.

    I’ve even flopped the cells around =AND(B3:B61=E11:F37,E9=C3:C61) and still nothing.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    How about
    for cols D:E
    =IFERROR(INDEX($A$3:$B$61,MATCH(D11,$A$3:$A$61,0),2)=$D$9,FALSE)
    and for cols F:G
    =IFERROR(INDEX($A$3:$B$61,MATCH(F11,$A$3:$A$61,0),2)=$F$9,FALSE)

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    Create these Named Ranges:
    - NorthTop = D11:D37
    - NorthBottom = E11:E37
    - SouthTop = F11:F37
    - SouthBottom = G11:G37
    Select A2:B61
    Add this Conditional Formatting formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  4. #4
    Registered User
    Join Date
    07-10-2014
    Location
    Eastern Washington
    MS-Off Ver
    2010
    Posts
    20

    Re: Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    IT WORKS!!! *Virtual* High Five!!!!!!!

    Thanks a million

    Fluff13

    and also thank you Tsjallie for your input!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    Glad to help & thanks for the feedback

  6. #6
    Registered User
    Join Date
    07-10-2014
    Location
    Eastern Washington
    MS-Off Ver
    2010
    Posts
    20

    Re: Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    I've noticed a little issue with this formula, if the same number is entered in column B but with a different location in column C, the formula will choose one or the other.
    Attached Files Attached Files

  7. #7
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Conditional formatting - How To Highlight Rows Based On Multiple Cell Values

    Match finds the first the occurence of a value.
    So if you have locker 1 North in row 3 and locker 1 South in row 4, it will only find locker 1 North.

    Instead of
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    use this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Instead of
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    use this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] conditional formatting based on other cell (over multiple Rows & Column)
    By pipsmultan in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-08-2015, 03:50 AM
  2. [SOLVED] Conditional formatting to highlight multiple values with single rule?
    By chapzboy in forum Excel General
    Replies: 13
    Last Post: 05-28-2015, 03:02 AM
  3. Conditional Formatting to highlight cell based on values in a string
    By thrst2no in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2015, 09:23 AM
  4. Replies: 4
    Last Post: 11-18-2014, 04:12 AM
  5. Replies: 4
    Last Post: 07-25-2014, 05:17 AM
  6. [SOLVED] Fx to highlight multiple values from a list using conditional Formatting
    By HooligaD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-08-2013, 03:03 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