+ Reply to Thread
Results 1 to 2 of 2

Can you take 2 separate time fields and combine the two separated by a Hyphen in a third?

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Can you take 2 separate time fields and combine the two separated by a Hyphen in a third?

    I am trying to make a spreadsheet to make work schedules. What I would like to do is take a time from one field, plus a time from a second field then display the two in a third field separated by a "-" without the hyphen being a subtraction calculation.

    For example: Cell A5 contains 8:00, Cell A6 contains 14:00, Now I would like to display "8:00-14:00" in another cell.
    The reason is to have a schedule for workers from Sunday to Saturday showing the hours that they are scheduled for.
    I am already using Start and Stop times elsewhere in the spreadsheet...would just like to pull them together for printing.

    The "*" below are to separate the data for illustration purposes in this thread, but are not represented in the spreadsheet.

    **********Sun*********Mon
    Mike****8:00-10:00***10:00-15:00
    Ray****9:00-16:00******etc
    John***12:00-17:00******etc

    Is this possible?
    Last edited by airplanesmoke; 03-11-2013 at 10:16 AM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Can you take 2 separate time fields and combine the two separated by a Hyphen in a thi

    Try this:

    =TEXT(A5,"h:mm")&" - "&TEXT(A6,"h:mm")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1