+ Reply to Thread
Results 1 to 5 of 5

Sumproduct rows and columns

  1. #1
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Sumproduct rows and columns

    This should be easy but i keep getting #value! error, please help!

    Row are date
    Column are items
    Data filled with numbers

    I want to find sum within specific date range for the item.

    =SUMPRODUCT(A:1:A8=A10,1:1>=B9,1:1<=B10,B2:Z10)

    Item 1-Jan 2-Jan 3-Jan 4-Jan 5-Jan 6-Jan 7-Jan 8-Jan 9-Jan 10-Jan 11-Jan 12-Jan 13-Jan 14-Jan 15-Jan 16-Jan 17-Jan
    Apple 1 2 3 4 5 6 7 8 9 10 11 12 13





    1-Jan 8-Jan 15-Jan 22-Jan
    7-Jan 14-Jan 21-Jan 28-Jan
    Apple #VALUE!

  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
    90,653

    Re: Sumproduct rows and columns

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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 TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,280

    Re: Sumproduct rows and columns

    Untested, but try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by TMS; 12-29-2017 at 03:16 AM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  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,048

    Re: Sumproduct rows and columns

    If that is indeed your formula, I noticed a few things...

    1. =SUMPRODUCT(A:1:A8=A10,1:1>=B9,1:1<=B10,B2:Z10)
    the bolded part is not a proper range

    2. =SUMPRODUCT(A:1:A8=A10,1:1>=B9,1:1<=B10,B2:Z10)
    Try to keep your ranges teh same size, and also avoid using full column/row ranges with SP, it will slow you down

    3. are your dates REAl dates, or text that looks like a date?
    test with =isnumber(cell-ref)...FALSE indicates text and we will need to convert them

    4. If all you are doing is summing values in a single column, based on a range of dates, maybe look at using sumifs()

    5. if all else fails, upload a sample WB
    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
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Sumproduct rows and columns

    Give this try,
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 12-29-2017 at 03:35 AM. Reason: Added Sumproduct also
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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] How Do I Add 4 Rows Columns and 1 Product Using SUMPRODUCT?
    By islandeeya in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-16-2017, 05:19 PM
  2. SUMPRODUCT to compare two columns but only even rows or odd rows
    By tobedecided in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2017, 04:35 PM
  3. [SOLVED] Sumproduct for different columns and rows
    By kevawo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2016, 12:33 PM
  4. Sumproduct of 2 columns, if one of 7 strings found in corresponding rows
    By lennartvl in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-28-2015, 10:09 AM
  5. using sumproduct with data in rows and columns
    By kenbird in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2014, 08:53 AM
  6. [SOLVED] SUMPRODUCT for Two Conditions in Columns and Rows
    By rentb23 in forum Excel General
    Replies: 4
    Last Post: 10-31-2012, 07:41 PM
  7. Sumproduct, Rows and Columns
    By windme in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2009, 04:00 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