Both times with AM need to subtract 1 from the other

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
986
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Good evening,
I have spreadsheets that I receive from clients which have times in different cells. I have a 8:50 in cell A1 and 3:10 in cell B1 when I looked closer the cell values both have AM in them. I looked at the next one and it also has 7:15 and 4:10 and they are also AM.
The times will never go before 7:00 AM and will never go past 4:30 PM.
How do I get 8:50 AM and the 3:10 AM to give me 6:20?
 

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,877
Hi

Assuming these are times in the same day, try:

=B1-A1+IF(B1<A1,0.5)

Format the cell as time
<a1,0.5)< html=""></a1,0.5)<>
 
Last edited:

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
986
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
pgc01 perfect!!! That did the trick! Thanks you so much for your help and guidance on this!!! I really appreciate it!!!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,190
Messages
5,594,761
Members
413,931
Latest member
acrato

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
Top