+ Reply to Thread
Results 1 to 2 of 2

Formula to find a date within a range of dates for specific rows

  1. #1
    Registered User
    Join Date
    06-02-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    19

    Formula to find a date within a range of dates for specific rows

    Hi guys, I'm really struggling to write one formula, I'll be really glad someone could help me with this one.

    conditions:

    For each user (B1:D1) / column in Table A, find matching rows in table B (A:A)
    and
    Check if date (A:A) in Table A is within a range (>=B and =<C) in Table B (for that user)

    I would like to use this formula in conditional formatting to highlight cells that match this rule. Basically would like to highlight cells where particular user was away from work based on data provided in Table B.

    Please see attached example.Formula help.xlsx

    Thanks.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula to find a date within a range of dates for specific rows

    Select B2:

    Conditional Format by formula

    =SUMPRODUCT(('Table B'!$A$2:$A$5='Table A'!B$1)*('Table B'!$B$2:$B$5<='Table A'!$A2)*('Table B'!$C$2:$C$5>='Table A'!$A2))=1
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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: 4
    Last Post: 10-19-2013, 07:50 AM
  2. [SOLVED] Find a specific date in the range of dates
    By Shishek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2012, 09:43 AM
  3. Replies: 4
    Last Post: 08-23-2011, 07:42 AM
  4. Replies: 8
    Last Post: 02-27-2009, 06:06 PM
  5. I need a formula to find rows within a date range in one column?
    By M. Penney in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2005, 08:06 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