+ Reply to Thread
Results 1 to 9 of 9

Using SumProduct to return values based on criteria when date filter changes

  1. #1
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Using SumProduct to return values based on criteria when date filter changes

    Hello, I have multiple pages with varying data. I have date slicers on each page to filter by date. I have a summary page with a section that breaks down the number of cases or phases on the corresponding pages. I have another section on the summary page that breaks down the number of cases or phases worked by different team members. I was able to find a formula that updates the number of cases or phases based on the date filtered on the corresponding page. I am having trouble figuring out how to update the number of cases or phases by team member name when the date filter changes. I hope I've explained it clearly. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Using SumProduct to return values based on criteria when date filter changes

    What is the formula meant to be doing? There is nothing in B8, so the last bit of it is unclear.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: Using SumProduct to return values based on criteria when date filter changes

    summary b2 (count per case/phase):
    Please Login or Register  to view this content.
    average (C2):
    Please Login or Register  to view this content.
    phase/cases per team member (B10, C10,...)
    Please Login or Register  to view this content.
    Included several pivot tables also.

    *Note that tables on B Cases & MM cases named same as sheet...
    *randomizing formula in column E just for testing averages...
    Attached Files Attached Files
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Using SumProduct to return values based on criteria when date filter changes

    Hi AliGW, I apologize. That formula is incorrect. I did not need the last part so the correct formula to calculate the B Cases in B2 of the Summary tab is...SUMPRODUCT(SUBTOTAL(3,OFFSET('B Cases'!A:A, ROW(A:A)-MIN(ROW(A:A)),,1)))-1. This is giving me the number of B Cases based on the month and year I select in the date slicer on the B Cases tab.
    I am looking to calculate the number of B Cases, B10 on the Summary tab, linked to the Team Member, A10 on the Summary tab, when the date slicer is changed on the B Cases tab. I hope that's clearer. Thank you for your time.

  5. #5
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Using SumProduct to return values based on criteria when date filter changes

    Hi protonLeah, I tried your formula for phase/cases per team member (B10, C10...) but I keep getting a #REF! Invalid cell reference error. I am entering the formula on B10 of the Summary tab and exactly how you have the formula in your response. I must be missing something. Is there supposed to be information in the quotations after B$9? Thank you for your time.

    Hi protonLeah again, In looking at your formula, I noticed that on your workbook, when I filter by Team Member name on the B Cases tab that it does change the B Cases count on the Summary tab. However, I am looking for a way to be able to show how many B Cases a Team Member has, B10 on the Summary tab, when I filter the date on the B Cases tab. The goal would be that all Team Members on the Summary tab would update to show how many cases they had for the date selected on the B Cases or MM Cases tabs. I hope that makes sense. Thank you again for your time.
    Last edited by JaimeS1; 09-05-2023 at 04:46 PM. Reason: Additional information to Clarify

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: Using SumProduct to return values based on criteria when date filter changes

    1) I'm sorry. I didn't explain the named ranges (just that note at the bottom). For the two sheets, B Cases & MM Cases, I renamed each table to correspond to the column header on the Summary sheet, A2/B9 & A3/C9. Summary B9 = "B Cases" but range names can't have spaces, so the table is named B_Cases. The SUBSTITUE function replaces the space in "B Cases" with "_" to make the table name.

    2) checking...
    Last edited by protonLeah; 09-06-2023 at 02:17 PM.

  7. #7
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Using SumProduct to return values based on criteria when date filter changes

    Good morning protonLeah, I was able to figure out problem 2. But...I have a new problem. I'm having trouble finding the right formula to sum B4:B7, D4:D7, and F4:F7 on Sheet1 based on the date selected on Sheet2. In other words, a way to total the number of the different phases worked by each Team Member based on the date of Sheet2. Thanks again for all your help!
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,962

    Re: Using SumProduct to return values based on criteria when date filter changes

    B4,D4, F4:
    Please Login or Register  to view this content.
    C4:
    Please Login or Register  to view this content.
    * modified sheet1 headers
    * note table on sheet2
    added useless macro toy
    Attached Files Attached Files
    Last edited by protonLeah; 09-09-2023 at 08:27 PM.

  9. #9
    Registered User
    Join Date
    08-31-2023
    Location
    New Smyrna Beach, FL
    MS-Off Ver
    365
    Posts
    13

    Re: Using SumProduct to return values based on criteria when date filter changes

    Awesome! Thank you so much!!

+ 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. SUMPRODUCT and FREQUENCY to return unique values based on criteria
    By thomasuponor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2021, 08:46 AM
  2. [SOLVED] Need to sum values based on set criteria: SUMIF, SUMPRODUCT or something else?
    By Jonathan King in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-21-2018, 06:44 AM
  3. [SOLVED] Return amount values based on date and name criteria
    By MyStix01 in forum Excel General
    Replies: 2
    Last Post: 10-09-2017, 09:26 PM
  4. Help Need with Macro to filter based on a value & to return values
    By godofwar123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2015, 07:23 AM
  5. Formula to return values based on criteria and date range
    By jr217 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 06:20 AM
  6. [SOLVED] Filter single criteria across all worksheets and return values to a summary sheet
    By shreeja178 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2014, 10:05 AM
  7. Replies: 10
    Last Post: 02-19-2013, 12:05 PM

Tags for this Thread

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