Good Afternoon,
I know I can perform a "countif" in Excel but just wondering how I can do that in Access? I really don't want to use code just simple formula would work if that's possible. Here's what I want to do, I have a table containing location, item and on hand. I would like to count the # of zeroes or qty's less than zero by location. The table looks something like this. So in this case location "A" would have 3, Location "B" would have 1, and location "C" would have 3. Any help is appreciated.
[TABLE="width: 199"]
<tbody>[TR]
[TD]LOCATION[/TD]
[TD]ITEM[/TD]
[TD]On Hand[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2[/TD]
[TD]-3[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]4[/TD]
[TD]-1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]6[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]6[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4[/TD]
[TD]9[/TD]
[/TR]
</tbody><colgroup><col><col span="2"></colgroup>[/TABLE]
I know I can perform a "countif" in Excel but just wondering how I can do that in Access? I really don't want to use code just simple formula would work if that's possible. Here's what I want to do, I have a table containing location, item and on hand. I would like to count the # of zeroes or qty's less than zero by location. The table looks something like this. So in this case location "A" would have 3, Location "B" would have 1, and location "C" would have 3. Any help is appreciated.
[TABLE="width: 199"]
<tbody>[TR]
[TD]LOCATION[/TD]
[TD]ITEM[/TD]
[TD]On Hand[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2[/TD]
[TD]-3[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]4[/TD]
[TD]-1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]6[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]6[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4[/TD]
[TD]9[/TD]
[/TR]
</tbody><colgroup><col><col span="2"></colgroup>[/TABLE]