Formula Help

.Justin

New Member
Joined
Oct 20, 2008
Messages
11
I have a table that counts how many people have presented on a certain date in hour intervals. I use the following formula to gather this data:

Screen%20Shot%202018-07-22%20at%2011.20.53_zpscxkwyrkz.png


Code:
=COUNTIFS('Patient Summary'!B6:B453,"[B]21/7/2018[/B]",'Patient Summary'!C6:C453,">=02:00",'Patient Summary'!C6:C453,"<03:00")

When writing the formula I have to enter the date manually into each cell I want it to look for the date within raw data. Is there any way I can set the formula up without having to change the date in each cell but have it look up the value I want to capture from a certain cell instead?

Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Looks like you are asking...

=COUNTIFS('Patient Summary'!$B$6:$B4$53,X6,'Patient Summary'!$C$6:$C$453,">=02:00",'Patient Summary'!$C$6:$C$453,"<03:00")

where X2 houses a date value like 21/7/2018.
 
Upvote 0

Forum statistics

Threads
1,225,626
Messages
6,186,087
Members
453,336
Latest member
Excelnoob223

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