Excel Formula Time

smartguy

Well-known Member
Joined
Jul 14, 2009
Messages
778
Hello all,

Good day. I have excel file in the below format.

Excel Workbook
FG
1TimeTime Slot
212:35:00 PM
312:43:00 PM
412:47:00 PM
512:23:00 AM
612:31:00 PM
71:43:00 PM
82:19:00 PM
92:35:00 PM
November'14



I Need Time Slot Like 12.00 AM to 1.00 AM , 1.00 Am to 2.00 AM , 2.00 AM to 3.00 AM like that...
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Use this:

=CHOOSE(HOUR(F2)+1,"First","Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eight", "Nineth", "Tenth", "Eleventh", "Twelth", "Thirteenth", "Fourteenth", "etc")

You'll need to replace the first, second, third etc with whatever text you want to display.

Regards
 
Upvote 0
Possibly

Excel Workbook
FG
1TimeTime Slot
212:35:00 PM12 PM - 01 PM
312:43:00 PM12 PM - 01 PM
412:47:00 PM12 PM - 01 PM
512:23:00 AM12 AM - 01 AM
612:31:00 PM12 PM - 01 PM
71:43:00 PM01 PM - 02 PM
82:19:00 PM02 PM - 03 PM
92:35:00 PM02 PM - 03 PM
Sheet3
 
Last edited:
Upvote 0
Sorry put in a - rather than"to".

Excel Workbook
FG
1TimeTime Slot
212:35:00 PM12 PM to 01 PM
312:43:00 PM12 PM to 01 PM
412:47:00 PM12 PM to 01 PM
512:23:00 AM12 AM to 01 AM
612:31:00 PM12 PM to 01 PM
71:43:00 PM01 PM to 02 PM
82:19:00 PM02 PM to 03 PM
92:35:00 PM02 PM to 03 PM
Sheet3
 
Last edited:
Upvote 0
Morning Smartguy,

Any chance of feedback - you've different approaches from two of us and gaining feedback is the only way we know whether our efforts have been either understood or appreciated.

Regards
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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