'Time' reference

Adam Kelly

Board Regular
Joined
Aug 27, 2010
Messages
72
From an Excel novice;

I want to use the COUNTIF function to count the cells in a range. The range contains only 'times', e.g. 20/07/2011 17:06:44, and I want to count cells which contain times which fall AFTER a specified time. The specified time will be regularly changed.

I've managed all this so far, but I want the SPECIFIED time to be a reference to a cell rather than typing in a new time - an example of the reference cell would be '=now()-.5' (for 12hrs ago)

so... if, for example, cell A1 contains '=now()-0.5'...

The following WILL work:
=COUNTIF('Downtime Record'!B6:B126,">40744.17")

but this wont:
=COUNTIF('Downtime Record'!B6:B126,">A1")

does that make sense? - any ideas?

Thankyou in advance
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try

=COUNTIF('Downtime Record'!B6:B126,">"&A1)

VoG, you have helped me yet again. I looked all over the web for this. I thought the ">A1" would be the syntax, but you nailed it again.

Thanks tons!
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,569
Members
452,926
Latest member
rows and columns

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