Results 1 to 2 of 2

Thread: Sum for date range where columns are individual days and criteria can be in multiple rows
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Sep 2016
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Sum for date range where columns are individual days and criteria can be in multiple rows

    Hello,

    Iím trying to determine if there is a formula I can use that will be able to dothis.

    The columns in my spreadsheet represent individual dates(e.g. column B is 01/09, C is 02/09, etc). for each date there are quantities andin column A there is a product code. Each product code can repeat in multiple rows.

    If that is sheet1 and in sheet2, I have a from date (letíssay in A1) and a to date (A2), is there a way to sum the total quantity for agiven product code based on the date range entered? I.e. I will need to sum every occurrence ofthe product in multiple columns.

    Thanks!

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    27,983
    Post Thanks / Like
    Mentioned
    467 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Sum for date range where columns are individual days and criteria can be in multiple rows

    With sheet1 like

    ABCDEF
    1Product01/09/201902/09/201903/09/201904/09/201905/09/2019
    2E05004799
    3E05004785123
    4E05004802
    5E05004787
    6E05004785123
    7E05011061

    Sheet1





    In sheet2

    AB
    1
    201/09/201902/09/2019
    3E050047856

    Sheet2



    Worksheet Formulas
    CellFormula
    B3=SUMPRODUCT((Sheet1!B1:T1>=A2)*(Sheet1!B1:T1<=B2)*(Sheet1!A2:A15=A3),Sheet1!B2:T15)

    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •