HOW TO EXTRACT TIME FROM THE FILE IN EXCEL

%3CLINGO-SUB%20id%3D%22lingo-sub-2402494%22%20slang%3D%22en-US%22%3EHOW%20TO%20EXTRACT%20TIME%20FROM%20THE%20FILE%20IN%20EXCEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2402494%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22lia-message-body%20lia-component-message-view-widget-body%20lia-component-body-signature-highlight-escalation%20lia-component-message-view-widget-body-signature-highlight-escalation%22%3E%3CDIV%20class%3D%22lia-message-body-content%22%3E%3CP%3EIn%20this%20time%20function%20column%20if%20we%20drag%20the%20cursor%20on%20the%20time%20format%20it%20is%20not%20showing%20the%20SUM%20in%20Taskbar%20sir.%20Only%20the%20count%20of%20the%20no%20of%20rows%20in%20the%20column%20is%20shown.%20I%20want%20to%20have%20the%20sum%20of%20the%20time%20in%20the%20above%20time%20column%20sir.%3C%2FP%3E%3CP%3EColumn%20J%20and%20K%20time%20function%20is%20in%20text%20format%20sir.%20And%20using%20the%20Time%20format%20i%20have%20converted%20it%20into%20time%20format%20sir%20but%20for%20time%20less%20than%2024%20hours%20the%20solution%20is%20right%20but%20for%20more%20than%2024%20hours%20it%20is%20not%20giving%20the%20correct%20answer%20using%20Custom%20format%20%5BH%5D%3AMM%3ASS%20also%20sir.%3C%2FP%3E%3CP%3EAfter%2024%20hours%20of%20time%20it%20is%20giving%20the%20Remainder%20answer%20to%20the%20solution%20sir.%20If%20it%20is%2026%3A00%20hours%20the%20solution%20is%20giving%20as%202%3A00%20hours.%20Please%20solve%20it%20sir.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2402494%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2402636%22%20slang%3D%22en-US%22%3ERe%3A%20HOW%20TO%20EXTRACT%20TIME%20FROM%20THE%20FILE%20IN%20EXCEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2402636%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1067188%22%20target%3D%22_blank%22%3E%40kiranjab%3C%2FA%3E%26nbsp%3BTry%20this%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DVALUE(RIGHT(J3%2C8))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eand%20format%20as%20%5Bh%5D%3Amm%3Ass%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2402664%22%20slang%3D%22en-US%22%3ERe%3A%20HOW%20TO%20EXTRACT%20TIME%20FROM%20THE%20FILE%20IN%20EXCEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2402664%22%20slang%3D%22en-US%22%3ESir%20it's%20working%20only%20for%20hours%20less%20than%20100%3A00%3A00%20ie.%2C%2099%3A59%3A59.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2402688%22%20slang%3D%22en-US%22%3ERe%3A%20HOW%20TO%20EXTRACT%20TIME%20FROM%20THE%20FILE%20IN%20EXCEL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2402688%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1067188%22%20target%3D%22_blank%22%3E%40kiranjab%3C%2FA%3E%26nbsp%3BWell%2C%20I%20based%20the%20formula%20on%20the%20example%20data%20you%20provided.%20Try%20it%20like%20this%20then%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIF(LEFT(J3%2C1)%3D%220%22%2CVALUE(RIGHT(J3%2CLEN(J3)-1))%2CVALUE(J3))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

In this time function column if we drag the cursor on the time format it is not showing the SUM in Taskbar sir. Only the count of the no of rows in the column is shown. I want to have the sum of the time in the above time column sir.

Column J and K time function is in text format sir. And using the Time format i have converted it into time format sir but for time less than 24 hours the solution is right but for more than 24 hours it is not giving the correct answer using Custom format [H]:MM:SS also sir.

After 24 hours of time it is giving the Remainder answer to the solution sir. If it is 26:00 hours the solution is giving as 2:00 hours. Please solve it sir.

4 Replies

@kiranjab Try this:

=VALUE(RIGHT(J3,8))

and format as [h]:mm:ss 

Sir it's working only for hours less than 100:00:00 ie., 99:59:59.

@kiranjab Well, I based the formula on the example data you provided. Try it like this then:

=IF(LEFT(J3,1)="0",VALUE(RIGHT(J3,LEN(J3)-1)),VALUE(J3))

 

sir,
IN THE GIVEN EXCEL FILE FOR GREATER THAN 100 HOURS COLUMN "J" IS IN TIME FORMAT SO IT IS DIRECTLY CONVERTING IT INTO VALUE USING THE ABOVE FORMULAE. BUT THE GRAND TOTAL IS IS TEXT AND ITS RESULT IS SHOWING AS VALUE ERROR. FOR TIME GREATER THAN 100 HOURS IN TEXT FORMAT THE FORMULA IS NOT WORKING SIR. PLEASE RESOLVE.