• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

in excell how do I say "now + 115 hours, then 5 am on the fist saturday after ?

I want to find the first saturday @ 5 am  more than 115 hours from now.

I can perform a task at 5 am on any saturday  however I need to let the owner know 115 hours ahead of time.

this is a 1 time deal so I want to use the first satuday at 5 am that fits the requirement.  
0
TIMFOX123
Asked:
TIMFOX123
  • 2
1 Solution
 
Rob HensonIT & Database AssistantCommented:
You can use the CEILING function for this:

=CEILING(NOW()+115/24,7)+5/24

Cheers
Rob H
0
 
Rob HensonIT & Database AssistantCommented:
To explain:

=NOW() gives time at point of calculation

Adding 115/24 will add sufficient days and hours.

=CEILING(###,n) will round up the ### to the next factor of n. As dates are held as a serial number incremented from 01/01/1900 which happened to be a Sunday. The whole number being the date and the decimal portion of a number being the time eg 3am being 0.25 and midday being 0.5 etc

Therefore counting up in units of 7 will give the whole serial number dates for Saturdays. Then adding 5/24 to the result will be the decimal part of the number for 5am.

Regards
Rob H

0
 
TIMFOX123Author Commented:
I am totally impressed

I would have taken tooooo long to figure this one out

thx
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now