+ Reply to Thread
Results 1 to 6 of 6

Sum product or countif function when adding up multi data across a whole table

  1. #1
    Registered User
    Join Date
    03-12-2010
    Location
    North Lincolnshire, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Sum product or countif function when adding up multi data across a whole table

    stock sample.xlsxHello to you all and thank you for taking the time to look through my problem and hopefully helping me to find the solution

    Bssically the attached sheet is a very small table set up in the same way as the worksheet currently being manually filled on a daily basis.

    Essentially I would like to be able to sum the total number of pallets by product type brought in by each supplier, unfortunately there are multiple deliveries by the same suppliers and the input list is chronological. Appreciate a pivot table would add everything up but the table forms the basis of the crude stock control in place so all potential product types need to be onshow even if no delivery of that product is made.

    I have previously used the formula =SUMPRODUCT(($C$4:$C$21=$H4)*($D$4:$D$21=I$3),$E$4:$E$21) however that table had information in columns and not rows and obviously does not work at all in this case.

    What would be the solution which would auto populate cell e29 for example with the total number of pallets of product1 delivered by supplier jeff.

    I may be causing issues by using Product1, product2, product3 for each supplier as a quick method of showing the table. each supplier has a different name for their products.

    All or any help is gratefully recieved.

    Kind regards

    Damion
    Last edited by b16dlg; 11-29-2013 at 03:12 AM.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sum product or countif function when adding up multi data across a whole table

    In E23 drag across, copy to other cells, Confirm Control+Shift+enter:
    =SUM(IF($C$3:$C$19=$C22,IF($E$3:$N$3=E$22,$E$4:$N$20)))
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    03-12-2010
    Location
    North Lincolnshire, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Sum product or countif function when adding up multi data across a whole table

    Thank you for your reply

    I have tried the formula but it doesn't seem to be working, i'm using 2007 if that makes a difference?

    Kind regards

    Damion

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sum product or countif function when adding up multi data across a whole table

    did you array enter it with ctrl+shift +enter?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sum product or countif function when adding up multi data across a whole table

    It does not .If what Martin suggested does not work please post/describe your problem.
    Last edited by RobertMika; 11-28-2013 at 05:06 PM.

  6. #6
    Registered User
    Join Date
    03-12-2010
    Location
    North Lincolnshire, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Sum product or countif function when adding up multi data across a whole table

    sorry Martin

    I had failed to follow your instructions correctly many apologies and thank you for your help it works a treat.

    Yes I had failed to hold ctrl+shift+enter.

    Kind regards

    Damion

+ 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. Pivot Table and PRODUCT function
    By andrewc in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-27-2013, 02:57 AM
  2. COUNTIF formula changing when adding new data to a table.
    By oldraper in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 10:44 AM
  3. Adding a countIf function into column B if A has data
    By synergio in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2012, 11:13 AM
  4. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  5. combine countif data from multi w/b to one
    By dr mint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2010, 12:13 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