I have data with the entities date, name, price
. I managed to get distinct categories in the Categories
colume for each name with = LEFT(B2;FIND(" ";B2))
. In fact I want to get for each categorie the summed up monthly prices per month.
My sheet:
I tried:
=SUMIF(B2:B6;LEFT(B2;FIND(" ";B2));C2:C6)
However, this formula returns 0
and also does not give me the prices per categorie and per month.
I really appreciate your help!!!
If you want a sum on each row which will sum for the category of the current row and the month of the current row you can use SUMIFS
like this
=SUMIFS(C:C;E:E;E2;A:A;">"&EOMONTH(A2;-1);A:A;"<="&EOMONTH(A2;0))
SUMIFS
requires Excel 2007 or later
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments