combining 2 formulas i.e. =Right and =Left to save time

cantdoit

New Member
Joined
Oct 2, 2018
Messages
2
Hi Everybody,

Can someone join Formula #1 and formula #2 into one:

Eg of text string in A1: "Line 1884: 10:28:24.817 00000015 I Activity Duration: 00:00:25.3812446 - activity"

Formula #1 in cell B1 "=RIGHT(A1,LEN(A1)-FIND("n: ",A1)-2)"

Formula #2 in cell C1 "=LEFT(D1,FIND(".",D1)-1)"

I only want the time [hh:mm:ss]

Thanks, guys
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Welcome to the Board!

Your question is missing something. Formula 2 references cell D1, but you haven't told us what is in cell D1.
 
Upvote 0
Is this what you need?

=LEFT(REPLACE(A1,1,FIND("Duration:",A1)+9,""),8)+0

Format as [hh]:mm:ss


Excel 2010
BC
1Line 1884: 10:28:24.817 00000015 I Activity Duration: 00:00:25.3812446 - activity00:00:25
Sheet1
Cell Formulas
RangeFormula
C1=LEFT(REPLACE(A1,1,FIND("Duration:",A1)+9,""),8)+0
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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