24 hour countdown function

superboy

Board Regular
Joined
Mar 31, 2013
Messages
52
24 hour Countdown function


I have a countdown in my work sheet that counts 30 days from today if Cell A11 has a value and the date is in B11. Below is the function.
=IF(A11<>"",B11+30-TODAY(),"")

I love the function above because it counts in reference to a value. I would like something like this function but I want it to countdown 24 hours and not 30 days from today.

Thank you for your time in reading this.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
24 hours in Excel's Time/Date format is just 1 day. Replace the 30 in your formula with 1 and you'll have the result. You'll want to see the output in hours, though, which means you may need to change the formatting on the cell this formula is in. One of these fine formats should do:

oGUJp8N.png
 
Upvote 0
It doesn't work. It's a day counter, which means the values don't countdown(I.E the hours stay at 24:00:00 and after a day it resets to 00.00.00)
I am looking for a countdown that counts down 24 hours from any time of day. I want to be able to enter a value in A11 at say 2:00am and have the countdown initiated for 24 hours. Please help, any information would be helpful.
 
Upvote 0
Oh, I forgot to mention - you're going to need to use NOW() - not TODAY(). NOW gives the time *and* day. TODAY just gives the day.
 
Upvote 0
That's awesome, it works better with now. But is there anyway I can have it count down from the time I entered a value into Cell A11 instead of counting from the beginning of the day.
Oh, I forgot to mention - you're going to need to use NOW() - not TODAY(). NOW gives the time *and* day. TODAY just gives the day.
 
Upvote 0
I'm not completely clear what you're trying for. If you want to count down the time between NOW and a date in the future, it would look like this:

Excel 2010
ABCD
ValueFuture TimeCountdownNow
Data

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]10[/TD]

[TD="align: center"]11[/TD]

[TD="align: right"]9/20/13 2:45 PM[/TD]
[TD="align: right"]14:18:40[/TD]
[TD="align: right"]9/20/13 12:26 AM[/TD]

</tbody>
Sheet2

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]C11[/TH]
[TD="align: left"]=IF(A11<>"",B11-NOW(),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,225,513
Messages
6,185,407
Members
453,289
Latest member
ALPOINT_AIG

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