How can I add a numeric value to a TIME cell?

  • Thread starter Thread starter Guest
  • Start date Start date
=A1+B1/24

where A1 holds London time, and B1 is the hours difference
 
In Date/Time terms, 1 = 1 day. Therefore:1 hour = 1/24.

So, time in a zone x time zones "ahead":
= Now() + (x / 24)

or, using VBA in code:
= DateAdd("h", x, Now())

or, using Excel formulas in a cell:
= Time(Hour(Now()) + x, Minute(Now()), Second(Now()))

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top