+ Reply to Thread
Results 1 to 7 of 7

SUMIF across multiple columns and rows

Hybrid View

GTretick SUMIF across multiple columns... 04-10-2015, 07:27 PM
AlKey Re: SUMIF across multiple... 04-10-2015, 07:31 PM
GTretick Re: SUMIF across multiple... 04-10-2015, 07:36 PM
FDibbins Re: SUMIF across multiple... 04-10-2015, 07:36 PM
GTretick Re: SUMIF across multiple... 04-10-2015, 07:37 PM
AlKey Re: SUMIF across multiple... 04-10-2015, 07:38 PM
FDibbins Re: SUMIF across multiple... 04-10-2015, 07:41 PM
  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    Prince George
    MS-Off Ver
    Excel 2010
    Posts
    6

    SUMIF across multiple columns and rows

    I have a data set that shows dates across the columns and PO #s down rows. The same PO number can be used several times down the row as several items can be on the same PO.

    What I would like to do is add all values from a PO across a date range. This should be in a formula, not a pivot table.

    Attached Image of data set

    Dataset.JPG

    Attached example spreadsheet

    I can solve this by stringing together several IF(SUMIF()) formulas as indicated however with a large amount of rows and columns, this is not practical. A dummy row or column to subtotal the various PO's is not practical either.

    I am looking for something more eloquent.

    In my example I want to add all PO values for PO 10 from Jan 2 to Jan 4th.

    My actual spreadsheet will have multiple POs being added over multiple date ranges (date ranges can be different for each PO)
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SUMIF across multiple columns and rows

    In C17

    =SUMPRODUCT((C2:G2>=C14)*(C2:G2<=C15)*(B3:B11=C16)*(C3:G11))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    Prince George
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: SUMIF across multiple columns and rows

    That worked exactly as I needed. Thank you AlKey

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: SUMIF across multiple columns and rows

    Try this...
    =SUMPRODUCT(($B$3:$B$11=$C$16)*($C$2:$G$2>=C14)*($C$2:$G$2<=C15)*(C3:G11))

    edit: is there an echo in here, AlKey
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    10-01-2012
    Location
    Prince George
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: SUMIF across multiple columns and rows

    and to you too FDibbins

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SUMIF across multiple columns and rows

    You're welcome and thank you for the feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools -> Mark thread as Solved).

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: SUMIF across multiple columns and rows

    Thanks for ther rep

+ 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. Sumif or Sumproduct with Multiple Rows & Columns
    By vulches in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-12-2017, 02:06 AM
  2. SUMIF Rows and Columns Not working
    By SHUTTEHFACE in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-29-2014, 05:59 AM
  3. Replies: 9
    Last Post: 12-15-2013, 10:05 PM
  4. Unable to SUMIF across columns and rows
    By sandy.rogers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2012, 09:11 AM
  5. [SOLVED] SUMIF with rows and columns
    By David Howdon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2005, 01: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