Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2812

Sum formula with Context (In) not Working as Expected.

$
0
0

Hi,

 

I want to find the Total Amount for each person as in the following table:

 

Person     Amount

A               0

A               1000

B               0

B               154

C               0

C               660

C               660

 

It should not include duplicate values or zeros. As such the following struck out rows will not be included in the total:

 

Person     Amount

A               0      

A               1000

B               0     

B               154

C               0    

C               660

C               660

 

Total Amount = 1000+154+660.

 

____________________________________________________

 

The formula I expected to do this was:

 

     =Sum ( Max([Person]) In ([Amount]) )

 

It does not work. This formula provides me with the max value in the whole set, which in this case is 1000.

 

______________________________________________________

 

Thanks in advance for your expertise.

 

-Adam


Viewing all articles
Browse latest Browse all 2812

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>