+ Reply to Thread
Results 1 to 9 of 9

Sum data from tab A to tab B with sumifs formula

  1. #1
    Registered User
    Join Date
    03-23-2014
    Location
    niagara falls
    MS-Off Ver
    Excel 2003
    Posts
    18

    Sum data from tab A to tab B with sumifs formula

    I am trying to sum data from tab A to tab B
    in tab A I have column A with item, and than for each day of the month 3 columns, one is List( different criteria for list to chose), one is Q and one is $ ,
    on tab B I am trying to add q (quantity) for that item for specific time period,
    however, my formula returns as Value, and I believe it is because of the list column,
    any ideas what else I can do
    thanks

  2. #2
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sum data from tab A to tab B with sumifs formula

    Im assuming you mean that your getting the #VALUE! error, which happens when your formula is trying to do a calculation/s with something that isn't a number (e.g. text). Can you post an example illustrating the problem, and including your formula?

  3. #3
    Registered User
    Join Date
    03-23-2014
    Location
    niagara falls
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum data from tab A to tab B with sumifs formula

    tab b
    sumprod(--(a!$C$4:$N$4>=b!$C$5)*--(a!$C$4:$N$4=b!$D$5)*--(b!$A7=a!$A$6:$A$8)*--(a!$C$5:$N$5=b!$C$6)*--(a!$C$6:$N$8))

    I tried to upload file, have some issues so this is what I am looking at
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-23-2014
    Location
    niagara falls
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sum data from tab A to tab B with sumifs formula

    yes, so if I have a validation list, as part of the my range, and iti is not a number, how can I fix that

  5. #5
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sum data from tab A to tab B with sumifs formula

    I*m sorry, but based on the formulae on Sheet b, I cannot understand what totals you are trying to calculate. Can you post the values that you are expecting in C7, C8 and C9 showing how you arrive at them?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Sum data from tab A to tab B with sumifs formula

    Formula should be

    sumprodUCT(--(a!$C$4:$N$4>=b!$C$5)*--(a!$C$4:$N$4=b!$D$5)*--(b!$A7=a!$A$6:$A$8)*--(a!$C$5:$N$5=b!$C$6)*--(a!$C$6:$N$8))

    You are checking a date is >= (c5) AND = (d5) : it cannot be both do mean <= D5 ?

    I would strongly recommend you change the layout of the data in Sheet a as is not in form which enables formulas to easily replicated.

  7. #7
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sum data from tab A to tab B with sumifs formula

    Quote Originally Posted by JohnTopley View Post
    Formula should be

    sumprodUCT
    Yes, I picked up the spelling error, but because the arrays don't have the same number of elements, and the last one contains non-numeric data, this causes #VALUE! results. Also I think that the dollar figures might be incorrect in Sheet b because the qty is multiplied by the previous dollars instead of the price?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Sum data from tab A to tab B with sumifs formula

    Data formatted as Sheet3 would be better for doing calculations.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sum data from tab A to tab B with sumifs formula

    Quote Originally Posted by Ninocka View Post
    I am trying to sum data from tab A to tab B
    any ideas what else I can do
    Ive taken a guess that your trying to total the quantities between the dates specified in b!C5:D5. Below is my formula that goes in b!C7 copied down.
    =SUMPRODUCT(--(a!$C$4:$N$4>=b!$C$5)*--(a!$C$4:$N$4<=b!$D$5)*--(a!$C$5:$N$5=b!$C$6)*IFERROR(INDEX(--(a!$D6:$N6<"a")*a!$D6:$N6,1,),0))

    I have made a small change to your data in the attachment, which is to move the date in Sheet A into the same column as the "Q" (quantity).
    Also note that there might be an anomaly with your dollar values in Sheet A as starting with the second day, your multiplying Qty * previous dollar value.
    Hope that helps, but if its not what your wanting then get back to us.
    Attached Files Attached Files

+ 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. automate SUMIFS formula in vba code for UNIQUE DATA
    By JEAN1972 in forum Excel General
    Replies: 1
    Last Post: 02-08-2016, 05:29 PM
  2. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  3. [SOLVED] Sumifs formula giving #value even though each part individually works as a sum formula
    By carrach in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2015, 10:34 AM
  4. Replies: 2
    Last Post: 05-22-2014, 04:14 AM
  5. SUMIFS Problem - A value used in the formula is of the wrong data type
    By TicklyTigger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 10:48 AM
  6. Filtering data from the results of a sumifs formula
    By marks_28 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2013, 11:55 AM
  7. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 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