×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Concatenate time

 Forum Search FAQs Links MVPs

## Concatenate time

(OP)
I have 2 cells that contain times. one has, for example, 1:00 pm and one has 8:00 pm. I am trying to concatenate them into one cell looking like this 1:00 pm - 8:00pm. I cannot seem to get this to give the desired results. Any help is appreciated.

### RE: Concatenate time

hi,

Assuming that your two cells are A1 & B1...

=TEXT(A1,"hh:mm am/pm")&" - "&TEXT(B1,"hh:mm am/pm")

The reason for converting Time Values to TEXT is because time is a fractional number.
1:00 PM is 13/24 = 0.541666666666667. That is the actual value in your cell. What you see displayed is a Number Format for Time in your cell. If you were to change the Number Format to GENERAL, you would see tha actual value. Changing a Number Format does nothing to the actual value in the cell. It just changes what you see displayed in the cell.

Bottom line, you need the NUMBER displayed as a TEXT string in TIME FORMAT in order to be able concatenate with other TEXT values.

Skip,

Just traded in my OLD subtlety...
for a NUance!

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

### RE: Concatenate time

Unless your "2 cells that contain times" actually contain text that you interpret as time. In which case your formula would be simply:
=A1&" - "&B1

---- Andy

There is a great need for a sarcasm font.

### RE: Concatenate time

#### Quote:

I cannot seem to get this to give the desired results.

Well it would have helped had the OP stated...
• the formula the OP had used and
• the results the OP had observed.
Skip,

Just traded in my OLD subtlety...
for a NUance!

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

#### Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!