Excel VBA: Subtracting TIMES

  • Thread starter Thread starter Lazer
  • Start date Start date
L

Lazer

If cell A1 = "5:00 PM" and cell A2 = "5:15 PM", what should the formul
for A3 be if I want to display the difference - i.e. 15 minutes?

Thanks
 
=A2-A1

format as hh:mm:ss

or

=(A2-A1)*24*60

and format as general if you want a number (rather than a time value) like
15 as the answer.
 

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