+ Reply to Thread
Results 1 to 7 of 7

Need formula to sum up qty if details in two cells are the same

  1. #1
    Registered User
    Join Date
    04-25-2023
    Location
    London
    MS-Off Ver
    microsoft 365
    Posts
    8

    Need formula to sum up qty if details in two cells are the same

    Hi everyone,

    I wonder if someone can help me. I need formula to sum up qty if details in two cells are the same. I've attached example and what result I need.
    Will be very grateful for an answer.

    Many thanks
    Attached Files Attached Files
    Last edited by AliGW; 04-25-2023 at 05:29 AM. Reason: Thread title improved - please make your thread titles explicit & not generic in future.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,009

    Re: Need formula

    =LET(A,A2:F14,
    B,G2:G14,
    C,H2:H14,
    D,I2:I14,
    E,UNIQUE(A),
    F,BYROW(E,LAMBDA(x,TEXTJOIN(",",,x))),
    G,BYROW(A,LAMBDA(x,TEXTJOIN(",",,x))),
    H,BYROW(F,LAMBDA(x,SUMPRODUCT(B*(G=x)))),
    I,BYROW(F,LAMBDA(x,SUMPRODUCT(C*(G=x)))),
    J,BYROW(F,LAMBDA(x,TAKE(FILTER(D,G=x),1))),
    DROP(VSTACK(A1:I1,HSTACK(E,H,I,J)),-1)
    )
    Attached Files Attached Files

  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
    81,288

    Re: Need formula to sum up qty if details in two cells are the same

    Generic thread titles are not allowed here - please read the rules. On this occasion, I have changed it for you, but in future, please make sure that your thtead titles are properly descriptive. Thanks.
    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.

  4. #4
    Registered User
    Join Date
    04-25-2023
    Location
    London
    MS-Off Ver
    microsoft 365
    Posts
    8

    Re: Need formula

    Thank you!

  5. #5
    Registered User
    Join Date
    04-25-2023
    Location
    London
    MS-Off Ver
    microsoft 365
    Posts
    8

    Re: Need formula to sum up qty if details in two cells are the same

    Thanks and apologise

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,009

    Re: Need formula to sum up qty if details in two cells are the same

    You are welcome.

  7. #7
    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
    81,288

    Re: Need formula to sum up qty if details in two cells are the same

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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