SUMPRODUCT unique items

  • Thread starter Thread starter Tufail
  • Start date Start date
T

Tufail

hi,
how can i sum only once :

=IF($M6="","",SUMPRODUCT(($M$6:$M6=$M6)*($R$6:$R6)))

Col_M Col_R
20000 1000
21000 2000
20000 1000
22000 5000

thanks in advance...
 
=IF(OR($M6="",COUNTIF($M$6:$M6,M6)>1),"",SUMPRODUCT(($M$6:$M6=$M6)*($R$6:$R6)))
 
thank you very much...

Bob Phillips said:
=IF(OR($M6="",COUNTIF($M$6:$M6,M6)>1),"",SUMPRODUCT(($M$6:$M6=$M6)*($R$6:$R6)))

--
__________________________________
HTH

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top