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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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