.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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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,215,011
Messages
6,122,680
Members
449,091
Latest member
peppernaut

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