Hi...
I was wondering if you could use function of Sumproduct of multiple column (but in the same row) that meet multiple criterias.
Please find attached excel file for clarity.
Thank you very much.
Hi...
I was wondering if you could use function of Sumproduct of multiple column (but in the same row) that meet multiple criterias.
Please find attached excel file for clarity.
Thank you very much.
answer withdrawn...
Last edited by Glenn Kennedy; 10-28-2016 at 03:38 AM.
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
In C8:
=SUMPRODUCT(($B$1:$B$6=B8)*($B$2:$B$7=B9)*($C$1:$C$6))
In C9:
=SUMPRODUCT(($B$1:$B$6=B8)*($B$2:$B$7=B9)*($C$1:$C$6)*$C$2:$C$7)/C8
First, I thank you for your response.
But unfortunately that's not what I meant.
Let me run through it:
1. It needs to check each column that meets "Criteria A" (Quantity) and at the same time check column right below it (its corresponding price) to also meet "Criteria B".
2. Multiply both column Quantity and Price
The correct answer if we do it by manual calculation ---> ((C1*C2)+(C3*C4))/C8 = 8.67 (not 9).
So in the excel file sample, it would only calculate:
((C1*C2)+(C3*C4))/C8
and not:
((C1*C2)+(C3*C4)+(C5*C6))/C8 since C5 meets "Criteria A" but C6 doesn't meet "Criteria B".
Excel Picture.jpg
Hope it clarifies.
Thank you.
I think you read my incorrect answer (Post 2). Please look at Post 3.
Last edited by Glenn Kennedy; 10-28-2016 at 03:54 AM.
Yes, that's exactley what I need.
Thanks much Glenn...
You're welcome.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks