+ Reply to Thread
Results 1 to 10 of 10

sumifs returning 0's

  1. #1
    Forum Contributor
    Join Date
    01-27-2016
    Location
    Greenville,NC
    MS-Off Ver
    Excel 2013
    Posts
    124

    sumifs returning 0's

    Hello,

    What I am trying to do is populate the sales volume for each sku in yellow on sheet page 1. The data is being pulled from sheet 1. So, if you look at column C on page 1 sheet, it has the sku Direx 4L. What they are meaning to say is to consider all skus Direx 4L. So, in this case there are two skus of direx 4L (Sheet 1 column L... I have already removed all dups and these are the independent values). What I want to do is to add all of the ship quantity's for both Direx 4L skus and be able to match item to the branch that shipped them. See my formula on page 1 C:8, if your not catching what im throwing here. The formula may speak more. I hope someone can help. Thank you all in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: sumifs returning 0's

    Your sumif doesnt make any sense. You are using TWO criteria for the SAME column (D) so it will ALWAYS return a 0 as column D does not have BOTH in the SAME cell.

    What SHOULD the number in C8 be if you had correct logic?
    Last edited by mikeTRON; 08-26-2016 at 02:39 PM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: sumifs returning 0's

    If you're trying to make that an OR...
    If Sheet1!D:D = Sheet1!L14 OR L15, then try

    =SUMPRODUCT(SUMIFS(Sheet1!G:G,Sheet1!D:D,Sheet1!L14:L15,Sheet1!F:F,'Page 1'!B8))

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: sumifs returning 0's

    Confused!

    Are you trying to match description or invoice number?

    Typically, when SKU's are mentioned, I would expect to match a unique identifier, (product code, bar code, etc.) but Page 1 has no such identifiers.

    Shot in the dark

    =SUMIFS(Sheet1!G:G,Sheet1!D:D,TRIM(C$4)&"*",Sheet1!F:F,$B8)

    Whatever it is, I'm sure it could be done better with a pivot table.

  5. #5
    Forum Contributor
    Join Date
    01-27-2016
    Location
    Greenville,NC
    MS-Off Ver
    Excel 2013
    Posts
    124

    Re: sumifs returning 0's

    What I want to do is see that in column C on Page 1 I have the product Direx 4L. Fine... Well the vendor didn't specify what package size, and I just happen to know that we have two sku's of Direx 4L, which I have removed dups on in column L of Sheet 1. So.. I then want to somehow add the shipped quantities for both direx 4 L sku's (L14 &15 from Sheet 1) that apply to location 01 for Greenville. So ultimately, I want to know what the total shipped qty's were for both sku's of Direx 4L for location Gville (01), if this makes sense?

  6. #6
    Forum Contributor
    Join Date
    01-27-2016
    Location
    Greenville,NC
    MS-Off Ver
    Excel 2013
    Posts
    124

    Re: sumifs returning 0's

    Jason,

    Your formula worked. Thank you so much! Couple of questions for you if you do not mind:

    1. Trim (C$4). Why did you do this and why is row 4 fixed?

    2. & "*" --> what does this mean or what is this telling excel to do?

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: sumifs returning 0's

    Trim is used to remove the spaces in front of the item description in C4, without removing them, C4 would not match the list on Sheet1.

    &"*" is a wildcard, so C4&"*" looks for anything that begins with whatever is in C4.

    Row 4 is fixed so you can copy the formula down to C26 without needing to edit each time.

    Fixing the columns as well will allow you to copy the formula to F7, I7, L7 etc. without editing (enter it into C7, then copy C7 and paste where needed).

    =SUMIFS(Sheet1!$G:$G,Sheet1!$D:$D,TRIM(C$4)&"*",Sheet1!$F:$F,$B8)

    Still a lot of pasting, but quicker than editing.

  8. #8
    Forum Contributor
    Join Date
    01-27-2016
    Location
    Greenville,NC
    MS-Off Ver
    Excel 2013
    Posts
    124

    Re: sumifs returning 0's

    Jason,

    Thanks again so very much. I'm looking at column I for Captan 4L and I'm getting 0's down, but I know there is data for this sku. Do you know what may be going on?

  9. #9
    Forum Contributor
    Join Date
    01-27-2016
    Location
    Greenville,NC
    MS-Off Ver
    Excel 2013
    Posts
    124

    Re: sumifs returning 0's

    Nevermind. I didnt bring in the sku. Your formula is perfect. Sorry.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: sumifs returning 0's

    Haha, an easy mistake to make.

    Have a look at this as an alternative that doesn't take so long to set up.
    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. [SOLVED] SUMIFS Help - returning 0.00 instead of the necessary total
    By CHillFL in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-08-2015, 02:20 PM
  2. [SOLVED] SUMIFS Not Returning Correct Value
    By dankonstantinos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2015, 06:18 PM
  3. [SOLVED] SUMIFS Always Returning '0' in Excel
    By dean_of_admissions in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 11:53 AM
  4. [SOLVED] SUMIFS returning #VALUE
    By mglassco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2013, 06:45 PM
  5. SUMIFS returning #VALUE!
    By HarvardMajesty in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-27-2013, 10:35 PM
  6. [SOLVED] SUMIFS formula returning #VALUE!
    By Kuehl5000 in forum Excel General
    Replies: 3
    Last Post: 05-25-2012, 04:11 PM
  7. SUMIFS returning #VALUE!
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2011, 08:59 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