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
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
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.
=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)
)
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.
Thank you!
Thanks and apologise
You are welcome.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks