+ Reply to Thread
Results 1 to 8 of 8

How to get sum of products with multiple batches

  1. #1
    Registered User
    Join Date
    01-04-2022
    Location
    Brisbane, Australia
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Lightbulb How to get sum of products with multiple batches

    Need help with getting sum for products coming up multiple times in a row.
    The one highlighted in grey.
    Is there a better way to get sum for products with multiple values ?

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,807

    Re: How to get sum of products with multiple batches

    Welcome to the forum.

    Better way than what? I cannot see any formula in your workbook. Have you looked at SUMIFS?

    https://support.microsoft.com/en-us/...6-611cebce642b
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,807

    Re: How to get sum of products with multiple batches

    Are either of these what you are looking for?

    TOTAL: =SUMIFS($D$2:$D$81,$A$2:$A$81,A2,$B$2:$B$81,B2,$C$2:$C$81,C2)

    CUMULATIVE: =SUMIFS($D$2:$D2,$A$2:$A2,A2,$B$2:$B2,B2,$C$2:$C2,C2)

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    C
    D
    E
    F
    1
    Storage Type Product Product Short Description
    Quantity
    TOTAL
    CUMULATIVE
    2
    AT01 10000084 EXFORGE HCT 160/25/10MG 28TAB
    74
    89
    74
    3
    AT01 10000084 EXFORGE HCT 160/25/10MG 28TAB
    15
    89
    89
    4
    AT01 10000111 AMCAL 1ST AID KIT TRAVEL 75PK BAG
    2
    2
    2
    5
    AT01 10001708 ARTANE 2MG 200TAB
    21
    66
    21
    6
    AT01 10001708 ARTANE 2MG 200TAB
    12
    66
    33
    7
    AT01 10000164 DEEP MENTHOLATUM CRM 140G
    34
    34
    34
    8
    AT01 10000201 VICKS VAPORUB JAR 50G
    39
    39
    39
    9
    AT01 10000266 PROCTOSEDYL OINTMENT 0.5% 30G
    1
    1
    1
    10
    AT01 10002221 MULTI-GYN FLORA PLUS GEL 5ML 5PK
    8
    34
    8
    11
    AT01 10002221 MULTI-GYN FLORA PLUS GEL 5ML 5PK
    9
    34
    17
    12
    AT01 10000425 QUITNITS COMPLETE KIT 325ML
    33
    33
    33
    13
    AT01 10000519 CENTRUM ADVANCE 50+ 30TAB
    39
    39
    39
    14
    AT01 10000567 LIVE SALON 1.0 BLACK
    2
    2
    2
    15
    AT01 10000572 NUROFEN COLD & FLU PE 24TAB
    40
    40
    40
    16
    AT01 10000594 SWISSE UL/B ZINC+ 60TAB
    54
    54
    54
    Sheet: Sheet1

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: How to get sum of products with multiple batches

    F2=sum(filter(d2:d81,countif(b2:b81,b2:b81)>1))

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: How to get sum of products with multiple batches

    small macro on orange button

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by torachan; 01-04-2022 at 01:40 PM.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to get sum of products with multiple batches

    F2:
    =unique(b2:c81)

    h2:
    =sumifs(d2:d81,b2:b81,f2:f72)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    01-04-2022
    Location
    Brisbane, Australia
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Re: How to get sum of products with multiple batches

    Thank you AliGW, CARACALLA , torachan, and Glenn Kennedy.
    I figured out what i wanted to do with all you guy's help.

    Stay blessed and Stay safe.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to get sum of products with multiple batches

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this 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. Create multiple sheets from template then save to pdfs in batches
    By stackout in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2019, 04:54 PM
  2. Sorting multiple entries with several batches based on lowest balance.
    By Istid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2019, 05:54 PM
  3. Replies: 8
    Last Post: 07-01-2016, 02:07 AM
  4. Replies: 1
    Last Post: 05-21-2014, 01:41 PM
  5. i want to update multiple batches(tblprod_agr_006,tblprod_agr_007) pls help me out
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2014, 07:38 AM
  6. Replies: 4
    Last Post: 05-12-2014, 03:25 AM
  7. Copy multiple batches of data using VBA
    By ormerods in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2013, 10:41 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