+ Reply to Thread
Results 1 to 4 of 4

COUNTIF within DATE RANGE - with multiple lookups

  1. #1
    Registered User
    Join Date
    07-15-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    23

    COUNTIF within DATE RANGE - with multiple lookups

    Hello friends

    I've been trying create a summary table which uses a a formula to count the number of 1s in a particular column, for a particular person, within a date range. It's proved a step too far for my knowledge!

    My hope is the formula is able to adjust the count when the dates are changed. I am also trying to link this to the individual name code (column C). E.g. how many were there for Simon in the last month, or last year etc.

    I have attached a mock spreadsheet which is as close to the real format as I can get it

    It should be clear that I am trying to fill the yellow boxes, with data from the 'DATA' tab - I have already had a stab at the formula, but it doesn't appear to have worked for me.

    any help would be greatly appreciated.

    thank you!!!

  2. #2
    Registered User
    Join Date
    07-15-2020
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    23

    Re: COUNTIF within DATE RANGE - with multiple lookups

    Sorry, I appear to have posted this in the wrong forum (macros instead of formulas)

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: COUNTIF within DATE RANGE - with multiple lookups

    Your problem is the breach column is several columns to the right of where you match the name

    =SUMPRODUCT(--(DATA!$C$8:$C$314>=Summaries!$F$9),--(DATA!$C$8:$C$314<=Summaries!$F$8),--(INDEX(DATA!$I$8:$CO$314,,MATCH(Summaries!$C15,DATA!$D$2:$CO$2,0))=1))

    Seems to work to match with the 1s

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: COUNTIF within DATE RANGE - with multiple lookups

    This thread has been moved to the correct section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Lookups, offset and date range help (I think thats the problem)
    By as9178 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-20-2020, 05:49 AM
  2. [SOLVED] Nested COUNTIF/IF/SUMPRODUCT (?) with multiple criteria including date range
    By rastamon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-28-2018, 11:47 PM
  3. [SOLVED] COUNTIF / SUMPRODUCT- multiple criteria - including date range
    By Sph01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-31-2012, 04:54 AM
  4. COUNTIF for multiple criteria with date range
    By pjlau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2012, 07:04 AM
  5. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  6. More than Multiple Lookups: Conditional Multiple Lookups
    By mohitspamz in forum Excel General
    Replies: 6
    Last Post: 11-01-2009, 03:32 AM
  7. Problem with date range lookups and calculations
    By miles_muso in forum Excel General
    Replies: 8
    Last Post: 10-05-2009, 05:23 AM

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