Quantcast
Viewing all articles
Browse latest Browse all 5661

How do I sum a count of Variables that equal "1"?

Hello,

 

I'm trying to build a table that counts the total times a variable = 1 in a given month, by day.  The variable I built will show a 1 on a calendar day if sales exceed projections and projections are greater than zero (projections are 0 on weekends and those days do not count toward working day counts).

 

So in my example, through May 8th, sales have exceeded projections 3 days out of the month.  The variable shows 3 "1"s and 5 "0"s and I'm trying to get the table to sum the "1"s to show 3 days where sales exceeded projections.  I'm getting "#COMPUTATION" error when I try to apply a sum function.

 

Is there another way to count the total "1"s?

 

Thanks,


Tim G.


Viewing all articles
Browse latest Browse all 5661

Trending Articles