Please see attached example.
I am wanting to SUM the values (e.g. salary) in column B.
But only for unique values in column A (e.g. employee ID - there are duplicates).
And only if there is a value >0 in colums C, D or E (e.g. they have received an incentive for any of the 3 schemes).
I originally had a formula like this:
=(SUMIFS(Sheet1!B:B,Sheet1!C:C,">0")+SUMIFS(Sheet1!B:B,Sheet1!D:D,">0")+SUMIFS(Sheet1!B:B,Sheet1!E:E,">0"))
But realised there were duplicate values in column A (and therefore column B).
So I started with a formula like this:
={SUM(IF(FREQUENCY(IF(Sheet1!A2:A7<>"",MATCH(Sheet1!A2:A7,Sheet1!A2:A7,0)),ROW(Sheet1!B2:B7)-ROW(Sheet1!B2)+1),Sheet1!B2B7))}
However I now need to incorporate the criteria of IF values in columns C, D or E are >0. This is where I have become stuck..
Your help would be much appreciated.
Craig
I am wanting to SUM the values (e.g. salary) in column B.
But only for unique values in column A (e.g. employee ID - there are duplicates).
And only if there is a value >0 in colums C, D or E (e.g. they have received an incentive for any of the 3 schemes).
I originally had a formula like this:
=(SUMIFS(Sheet1!B:B,Sheet1!C:C,">0")+SUMIFS(Sheet1!B:B,Sheet1!D:D,">0")+SUMIFS(Sheet1!B:B,Sheet1!E:E,">0"))
But realised there were duplicate values in column A (and therefore column B).
So I started with a formula like this:
={SUM(IF(FREQUENCY(IF(Sheet1!A2:A7<>"",MATCH(Sheet1!A2:A7,Sheet1!A2:A7,0)),ROW(Sheet1!B2:B7)-ROW(Sheet1!B2)+1),Sheet1!B2B7))}
However I now need to incorporate the criteria of IF values in columns C, D or E are >0. This is where I have become stuck..
Your help would be much appreciated.
Craig