+ Reply to Thread
Results 1 to 4 of 4

another conditional format question - highlight if date AND names match a condition?

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    los angeles
    MS-Off Ver
    2016
    Posts
    19

    another conditional format question - highlight if date AND names match a condition?

    hello - new here, and self taught excel tinkerer
    i've figured out few problems by copy/paste and modifying what others have done but can't seem to figure this one out.

    i have two sheets

    sheet 1 - rows of dates and columns of names for shifts
    sheet 2 - rows of dates and columns of names and shifts called "off" - which is essentially a vacation sign off list i download

    so i'm trying to make the cell highlight if there is a match on a particular date - it would indicate both assigned and off, which would be a problem!

    i was thinking countifs - match the date, and then match the names, >0 would color... otherwise ignore... can't seem to express that into excel though

    and then i figured index the dates, match dates, and match names... not too fluent there either

    =INDEX(B2:B100,MATCH(offs!C3:C100,offs!B3:B100))

    doesn't work, and i tried countifs

    =COUNTIFS(offs!$C$2:$C$100,B2,offs!$B$2:$B$100,E2)
    but i need it to apply to the whole worksheet


    actually, i got it to work!

    just had to write it out i guess
    Attached Files Attached Files
    Last edited by soondubu; 12-06-2019 at 02:28 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,999

    Re: another conditional format question - highlight if date AND names match a condition?

    Welcome to the Forum soondubu!

    The appropriate formatting rule is

    =COUNTIFS(offs!$B$2:$B$200,C2,offs!$C$2:$C$200,$B2)>0

    It looks like you had the right idea but your COUNTIFS syntax is wrong. Not sure what you were trying to do there.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,999

    Re: another conditional format question - highlight if date AND names match a condition?

    You updated your post just as I was posting. You now have correct syntax but it is still not the correct formula. I don't know what you did in your actual file to get it to work since you did not reattach it, but that formula in your revised post has a couple of problems:

    =COUNTIFS(offs!$C$2:$C$100,B2,offs!$B$2:$B$100,E2)

    offs column C is dates. B2 is a name. You don't want to compare a name to dates. This will always give a 0 result.

    E2 is three columns to the right after the name you are actually checking.

  4. #4
    Registered User
    Join Date
    12-06-2019
    Location
    los angeles
    MS-Off Ver
    2016
    Posts
    19

    Re: another conditional format question - highlight if date AND names match a condition?

    its a bit confusing the way i have it set up i guess - on the call block sheet, column b are dates.
    so i index offs column of dates which is column c, vs date on the call block, which is b.
    i changed the e2 to c2, and the whole sheet seems to work!

+ 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. Replies: 6
    Last Post: 08-22-2019, 07:18 PM
  2. conditional format: highlight cell according to condition (value < or> 7days )
    By lati2008 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 04-23-2019, 05:05 AM
  3. Replies: 3
    Last Post: 06-08-2017, 07:31 PM
  4. Replies: 4
    Last Post: 05-15-2014, 04:39 PM
  5. [SOLVED] Conditional Format to highlight cell based on corresponding date..
    By Vikestand in forum Excel General
    Replies: 4
    Last Post: 07-24-2013, 10:48 AM
  6. [SOLVED] conditional format cell based on a match to a range of names
    By fablhof in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-01-2012, 12:17 AM
  7. conditional format question: need cell to highlight after a set time
    By imccue in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2009, 03:56 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