Find newest Time and oldest Time from a cell with many times separated by a comma and subtract them

learningstatistics

Board Regular
Joined
Dec 3, 2015
Messages
56
Hello,

I have cells that looks something like what is shown in column 1. I want to tell excel "Find the newest time (ie 12:07:35) and the oldest time (ie 12:07:33). So two formulas here. Then I want to subtract them.
12:07:33,12:07:33,12:07:35,12:07:35

<colgroup><col></colgroup><tbody>
</tbody>
15:25:55,15:25:55,15:25:55,15:25:55
12:37:58

<tbody>
</tbody>

Some of the cells have only one time like the one in column 1 row 3. If this is the case, I want excel to subtract this cell from itself. So, the answer would always be zero.


I appreciate any help.

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I suggest you conduct a Text-to-Columns operation on the column. Then compose a formula that finds the MAX and MIN values in each row and subtracts one from the other. Perhaps you could even use PowerQuery to perform all the heavy lifting.

Attempting to use formulas to separate text strings by delimiters (delimiters of varying frequencies especially) makes for long days and causes migraines. Note that there are dozens of threads in this forum that achieve the objective with VBA code.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,408
Messages
6,124,727
Members
449,185
Latest member
ekrause77

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