Data need to split 1 hour time intervel

Thoufeeq

New Member
Joined
May 29, 2018
Messages
2
I need to split data, i am having 24 hours data. the time interval also included in that columns. for example,
inputoutput
ClientTranstime
csksub1:051am to 2am intervel
rrred2:072am to 3am intervel
ddred5:455am to 6am intervel
rcbsub5:475am to 6am intervel
kkrred7:257am to 8am intervel
pjbsub7:547am to 8am intervel
srhred16:0516am to 17am intervel
misub16:1816am to 17am intervel
i need above output using of formula...

<colgroup><col style="width:48pt" width="64" span="5"> </colgroup><tbody>
</tbody>

<colgroup><col span="5"></colgroup><tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
A​
B​
C​
D​
E​
1​
Client
Trans
time
Interval
2​
csksub
1:05​
1AM to 2AMD2: =TEXT(FLOOR(C2, "1:00"), "ham/pm") & " to " & TEXT(CEILING(C2, "1:00"), "ham/pm")
3​
rrred
2:07​
2AM to 3AM
4​
ddred
5:45​
5AM to 6AM
5​
rcbsub
5:47​
5AM to 6AM
6​
kkrred
7:25​
7AM to 8AM
7​
pjbsub
7:54​
7AM to 8AM
8​
srhred
16:05​
4PM to 5PM
9​
misub
16:18​
4PM to 5PM
 
Upvote 0
Hi Try this function

Code:
=TEXT(MROUND(A1,1/24),"[$-409]h:mm AM/PM;@")&" to "&TEXT(ROUNDUP(A1*24, 0) / 24,"[$-409]h:mm AM/PM;@")&" interval"

Note i have used "A1" as cell address, you change it as per you excel sheet
 
Upvote 0

Forum statistics

Threads
1,216,583
Messages
6,131,557
Members
449,655
Latest member
Anil K Sonawane

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