+ Reply to Thread
Results 1 to 5 of 5

count a range of cells (within another range of cells) based on today's date

  1. #1
    Registered User
    Join Date
    03-03-2016
    Location
    Omaha, NE
    MS-Off Ver
    2013
    Posts
    4

    count a range of cells (within another range of cells) based on today's date

    I want to count how many times a particular name from column D appears within the range specified by today's date.

    For example..today is Feb 6th, so I only want the range L3:M21 counted.

    As you can see, Jose M is listed 2x. That tells me I have doubled booked him. I'm going to conditionally format column D based on this countif formula I can't fig out.

    Thanks.



    excel image.JPG

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: count a range of cells (within another range of cells) based on today's date

    Try OFFSET + MATCH, perhaps? Something like (in E3):

    =COUNTIF(OFFSET($F$3:$F$21,0,MATCH(TODAY(),$F$2:$Z$2,0)-1),$D3)

    Adjust the size of the ranges to suit your workbook. Your original post said you wanted to count in L3:M21, but M is blank, so I presumed that was a typo? If it's not, you can include two columns in the count using:

    =COUNTIF(OFFSET($F$3:$F$21,0,MATCH(TODAY(),$F$2:$Z$2,0)-1,,2),$D3)

  3. #3
    Registered User
    Join Date
    03-03-2016
    Location
    Omaha, NE
    MS-Off Ver
    2013
    Posts
    4

    Re: count a range of cells (within another range of cells) based on today's date

    CAntosh -

    THX!
    Now I just need to get it to work in google sheets.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: count a range of cells (within another range of cells) based on today's date

    Glad I could help! I don't have enough experience with Google Sheets to be much help with the next step, but my understanding is that most Excel Formulas transfer over cleanly. Good luck!

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: count a range of cells (within another range of cells) based on today's date

    To avoid using OFFSET( Violate function: http://www.decisionmodels.com/calcsecretsi.htm)

    =SUMPRODUCT(($L$3:$M$21=$D3)*($L$2:$M$2=$F$2))
    Quang PT

+ 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. Formula to Count Consecutive Blank Cells in a Range Depending on Today's Date
    By tophatpete in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-28-2020, 05:12 AM
  2. Replies: 4
    Last Post: 09-12-2013, 11:32 PM
  3. [SOLVED] Find cells with today's date and copy asscoiated range
    By paulary30 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-05-2013, 01:48 PM
  4. Replies: 6
    Last Post: 11-11-2012, 12:40 AM
  5. Count cells based on date range
    By The_Oakster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2009, 06:24 PM
  6. Count Cells in a Row based on color and date range
    By indnracn2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2009, 11:12 PM
  7. count unique cells in range based on date
    By leedsd75 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2007, 02:04 PM
  8. Replies: 1
    Last Post: 05-05-2005, 04: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