Summing for multiple row values with =CALCULATE

jk-vtti

New Member
Joined
Mar 22, 2013
Messages
9
Hello,

Simple question: I have linked tables, one with my main data, and other look-up tables. I'm trying to do a compound count of the files we have at five stages of production (ex. Stage 1 = Stage 1 count + Stage 2 ... Stage 5). There are several file types I'm accounting for, and the file type determines which stage a file is in (several file types are grouped in each stage). I'm using =CALCULATE(SUM([Table with total counts and file types]), Stages table [stage number column]=1, Stages table [stage number column] =2 ...). I'm getting (blank), not error, as a return. I tried using =OR in a =CALCULATE function, but can only include two values in =OR (this did sum properly, however).

How can I count for more than two stages (row value) in a =CALCULATE function? Do I need another function?

Thanks,

Joel
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
The filter parameters in a CALCULATE are treated like ANDs when separated by a comma. Instead of the comma's, try using this || which is the symbol for OR.

Alternatively, you could try something like [stage number column]>=1 && [stage number column] <= 5
for the filter parameter of the CALCULATE.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top