how can i set condition inside pivot sum data to refer label row ?
I need to sum data only if row label is equal to specific value.
I'm trying to use standard IF but it doesn't work.
Thanks.
how can i set condition inside pivot sum data to refer label row ?
I need to sum data only if row label is equal to specific value.
I'm trying to use standard IF but it doesn't work.
Thanks.
Use a vlookup ( within a vlookup.? Others please say if that is necc). copy paste your row tabels in another column in another sheet/tab and look for them im ur pivot.
Vlookup(a1,sheet2(column),1,0).
Altetnatively u culd just copy paste text only the pivot table results, and use ur if statement there.
But vlookups are superior if statements. So us that is more dynamic/poweful.
I would use a sumproduct function if I were you.
To sum Apples sales for North: =SUMPRODUCT(--(A2:A12="north"), --(B2:B12="apples"), C2:C12)