+ Reply to Thread
Results 1 to 12 of 12

Sumifs with various criteria

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Sumifs with various criteria

    I am using the following formula, but I am trying to determine if there is an easier way to do it, cause it is too time consuming

    =SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A12,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A13,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!K:K,'Purchase Orders'!$B:$B,'04-14-14'!$A14,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A15,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A16,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A17,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A18,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A19,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A20,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A21,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A22,'Purchase Orders'!$E:$E,C$6)+SUMIFS('Purchase Orders'!$K:$K,'Purchase Orders'!$B:$B,'04-14-14'!$A23,'Purchase Orders'!$E:$E,C$6)

    Basically I have a range of PO's (that are listed in a column) I would like it to sum if it has a specific item # which is listed in a row.

    I tried a basic sum if with a range, but it did not work well. I kept getting 0.

    PO SCREEN SHOT.PNG

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sumifs with various criteria

    You get better help on your question, if you follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sumifs with various criteria

    Sorry. I have used the forum to lookup and review other post, but I have never posted.

    PO LOOK UP.xlsx

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sumifs with various criteria

    Please also add the desired result, and refer to the corresponding cells.

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Sumifs with various criteria

    So, like, first off, SUMIFS can accept 127 criteria/range pairs, so there's no need to break it up, you can do it all in one SUMIFS:

    Please Login or Register  to view this content.
    Like that.

    Or you can clean it up by going to a SUMPRODUCT construction using OR-addition:

    Please Login or Register  to view this content.
    IF you want a shorter formula you're going to have to change the underlying logic, like, by feeding through a helper column using OR, for example.

  6. #6
    Registered User
    Join Date
    03-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sumifs with various criteria

    I would love to change the format of the sheet, but some people are old school and want it in a specific format. UGH. I have a love hate with inherited spreadsheets.

  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
    52,944

    Re: Sumifs with various criteria

    Based on the sample you gave, you canm use this in C3, copied down aND ACROSS...
    =SUMIFS('Recv Data'!$C:$C,'Recv Data'!$A:$A,Date!$A3,'Recv Data'!$B:$B,Date!C$1)

    That will give you the Recd for each PO#/ITEM# combo

    Note, my answers to not match the manually entered values you have there
    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

  8. #8
    Registered User
    Join Date
    03-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sumifs with various criteria

    Ford -- Thanks for the example, but it is only retrieving the data for one PO. I want it to put at the bottom the sum of that particular item # on all PO's listed in Column A, not just one.

  9. #9
    Registered User
    Join Date
    03-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sumifs with various criteria

    I am trying to find the variance for all items from a specific supplier versus what was originally ordered. I am really thinking the format is going to have to be revamped.

  10. #10
    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
    52,944

    Re: Sumifs with various criteria

    Ford -- Thanks for the example, but it is only retrieving the data for one PO. I want it to put at the bottom the sum of that particular item # on all PO's listed in Column A, not just one.
    That is correct. cant you just sum them from the table, once you have them? (I put my totals in E and F so you could compare them, you would put that formula in C3:D5)

    A
    B
    C
    D
    E
    F
    1
    Item #
    778899
    667788
    2
    PO # Order #
    3
    1234
    abc1
    19,980.40
    0
    21235
    4
    4567
    bcd2
    40,040.70
    0
    40297
    5
    1122
    cde3
    39,963.00
    0
    38123
    6
    2233
    edf5
    20,000.00
    21000
    0
    7
    0
    0
    8
    0
    0
    9
    Order Totals
    20,000.00
    99,984.10
    10
    Received
    0.00
    11
    Difference from req.
    20,000.00
    99,984.10
    12
    Allocation
    20,000.00
    100,000.00


    E3=SUMIFS('Recv Data'!$C:$C,'Recv Data'!$A:$A,Date!$A3,'Recv Data'!$B:$B,Date!C$1)

  11. #11
    Registered User
    Join Date
    03-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sumifs with various criteria

    Would I be better off using index and match as they want to see the total in c10

  12. #12
    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
    52,944

    Re: Sumifs with various criteria

    Based on your sample data, what would be your expected answer?

+ 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. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  2. [SOLVED] SUMIFS with OR in criteria
    By SergSlim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-31-2012, 09:29 AM
  3. [SOLVED] Sumifs Criteria
    By shakra in forum Excel General
    Replies: 5
    Last Post: 07-24-2012, 02:12 AM
  4. Replies: 5
    Last Post: 09-07-2011, 11:14 PM
  5. Replies: 1
    Last Post: 05-16-2011, 05: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