willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 929
- Office Version
- 365
- Platform
- Windows
Hello,
I seem to be having trouble with countifs formulas and not understanding why I am getting zero. I want the formula to count how many matches with "On Time", "Early", and "Late" based on the data in U and W (see chart and data example below)
If I make the data on the same sheet as the chart it works:
My formula for column B is: =COUNTIFS($U:$U,$B$1,$W:$W,A2)
My formula for column C is: =COUNTIFS($U:$U,$C$1,$W:$W,A2)
My formula for column D is: =COUNTIFS($U:$U,$D$1,$W:$W,A2)
However as soon as I change it to reference the data on another sheet it gives me a result of 0:
My formula for column B is:=COUNTIFS('Time Tracker'!$U:$U,$B$1,'Time Tracker'!$W:$W,A2)
Here is my chart that will have the formula
[TABLE="width: 309"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD] [TABLE="width: 309"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]On Time[/TD]
[TD]Early[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]February[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]March[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]April[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]June[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]July[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]August[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]September[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]October[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]November[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]December[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
And here is my Data:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]U[/TD]
[TD="class: xl65, width: 64"]W[/TD]
[/TR]
[TR]
[TD]Early[/TD]
[TD]July[/TD]
[/TR]
[TR]
[TD]Late[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]On Time[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]Early[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]Early[/TD]
[TD]September[/TD]
[/TR]
</tbody>[/TABLE]
Note: the Early, Late and On time are determined by formulas as well as the Months.
Any insight would be greatly appreciated as I am stumped
Thank you!
I seem to be having trouble with countifs formulas and not understanding why I am getting zero. I want the formula to count how many matches with "On Time", "Early", and "Late" based on the data in U and W (see chart and data example below)
If I make the data on the same sheet as the chart it works:
My formula for column B is: =COUNTIFS($U:$U,$B$1,$W:$W,A2)
My formula for column C is: =COUNTIFS($U:$U,$C$1,$W:$W,A2)
My formula for column D is: =COUNTIFS($U:$U,$D$1,$W:$W,A2)
However as soon as I change it to reference the data on another sheet it gives me a result of 0:
My formula for column B is:=COUNTIFS('Time Tracker'!$U:$U,$B$1,'Time Tracker'!$W:$W,A2)
Here is my chart that will have the formula
[TABLE="width: 309"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD] [TABLE="width: 309"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]On Time[/TD]
[TD]Early[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]February[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]March[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]April[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]June[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]July[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]August[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]September[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]October[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]November[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]December[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
And here is my Data:
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]U[/TD]
[TD="class: xl65, width: 64"]W[/TD]
[/TR]
[TR]
[TD]Early[/TD]
[TD]July[/TD]
[/TR]
[TR]
[TD]Late[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]On Time[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]Early[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]Early[/TD]
[TD]September[/TD]
[/TR]
</tbody>[/TABLE]
Note: the Early, Late and On time are determined by formulas as well as the Months.
Any insight would be greatly appreciated as I am stumped
Thank you!