remaining hours until noon of next day...

rickblunt

Well-known Member
Joined
Feb 18, 2008
Messages
609
Office Version
  1. 2019
Platform
  1. Windows
Hey there, got a head scratcher that I thought would be easy but I failing miserably at - lol... I have a worksheet where I am recording some data each day, the date and time of the inspection is in column A, so for example A156 is "4/21/2021 3:18:28 AM". I need to know the remaining hours until noon of the next day. Thought this would be easy, I am thinking that I need to get to A156 plus midnight of the next day, and then subtract 12 hours, then subtract out that value from A156. But I can't seem to get the syntax correct on the formula so I am guessing that I am going completely in the wrong direction. Does anyone have any thoughts on how to do this?
Thank you,
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,

Try this:

Book3.xlsx
ABC
14/21/2021 3:18:28 AM32:41
Sheet917
Cell Formulas
RangeFormula
C1C1=INT(A1)+1.5-A1


Edit: forgot to custom format result cell-->> [h]:mm
 
Upvote 0
Solution
OH! INT - I hadn't thought about that one, I was doing it the hard way, the really hard way apparently - lol. Thank you so much, that worked great - and I learned some more stuff :)
 
Upvote 0
You're very welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,757
Messages
6,126,694
Members
449,331
Latest member
smckenzie2016

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