Oct 20 2021 12:32 AM
Hi all,
I am unable to use Sumif function to sum up my Revenue due to the criteria is not matched.
Eg: I have an salesperson his UID is 500008, his UID in year is 500008_SG.
So when i try to SUM up his revenue using SUMIF function, using 500008, his revenue for year 2020 is omitted. Could please advise how to solve this?
Besides, I also need to SUM up revenue for Year 2021 only by salesperson, is there any syntax to use? Currently, i am using pivot table to do this. But, I prefer to have only single formula to solve this. Any
Oct 20 2021 01:15 AM
Solution@merson82 Use this one in stead:
=SUMPRODUCT(D4:D23*(ISNUMBER(FIND(F5,A4:A23))))
or transform the ID's to Text and use a wildcard in the SUMIF formula.
=SUMIF(A4:A23,F5&"*",D4:D23)
File attached with both options.
Oct 20 2021 03:10 AM
Oct 20 2021 01:15 AM
Solution@merson82 Use this one in stead:
=SUMPRODUCT(D4:D23*(ISNUMBER(FIND(F5,A4:A23))))
or transform the ID's to Text and use a wildcard in the SUMIF formula.
=SUMIF(A4:A23,F5&"*",D4:D23)
File attached with both options.