Formatting for two times in one cell?

ScousePete

New Member
Joined
Feb 10, 2008
Messages
33
Office Version
  1. 365
Platform
  1. MacOS
I have a sheet that contains start times in column A and end times in column B.

I have another sheet that I would like to pull the start time and end time into one cell for ease of printing.

Like this -

8:00AM - 5:00PM

When I use the following formula -
Code:
=sheet1!A1&" - "&sheet1!B1
it pulls the data over, but changes the format to two numbers. I've tried all the usual formatting, but to no avail.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about
TEXT(Sheet1!A1,"hh:mm am/pm")&" - "&TEXT(Sheet1!B1,"hh:mm am/pm")
 
Upvote 0
=TEXT(Sheet1!A1, "h:mm AM/PM - ") & TEXT(Sheet1!B1, "h:mm AM/PM")
 
Upvote 0
Perfect! You guys rock, thank you!!
You showed your time values without the space in front of the AM and PM in your original post... if you would still want that, then use this modification of shg's formula instead...

=TEXT(Sheet1!A1, "h:mmAM/PM - ") & TEXT(Sheet1!B1, "h:mmAM/PM")
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
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