Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have had a look at this site, and across the net, but can't seem to solve this, which should be easy! Concatenate should work, but I wasn't able to make it work.

Current spreadsheet looks like this:

B2: 8:00 (AM) (Start time)
C2: 1:00 () (Duration)
D2: 9:00 (AM) (End time)

I would like to have a formula in A2 that looks like this: 8:00 - 9:00, and obviously updates as soon as I make changes to the B2 and C2 (D2 is already working with a formula)

share|improve this question

migrated from Mar 2 '13 at 0:21

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

This one is working in LibreOffice, but it seems, that the TEXT function and & operator is adapted from Excel:


share|improve this answer
CLOSED: Thank you, works like a charm!! – Herman Mar 1 '13 at 9:54
=TEXT(B2,"hh:mm AM/PM")&"-"&TEXT(D2,"hh:mm AM/PM")  
=8:00 AM - 9:00 AM
share|improve this answer
Can you please add some context/ explanationto your formula. – Eric G Mar 20 '15 at 17:35

You must log in to answer this question.