+ Reply to Thread
Results 1 to 3 of 3

Can you combine two cells to create a time range in a third cell?

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2000
    Posts
    1

    Can you combine two cells to create a time range in a third cell?

    Okay, this is my first query so let me know if there's any key info missing, thanks.

    I reckon our works uses Excel 2000.
    I've got a spreadsheet where I'm calculating costs based on a shift pattern and where there are a number of VLookups in place.
    I have a time (hh:mm) in one cell (A1) and another time in the same format in a 2nd cell (A2).
    The two have to be separate as the difference confirms the maximum shift duration & there's a calulcation running off this which drives a Vlookup.
    I now need to display the two times in one cell showing them as a range (hh:mm - hh:mm).
    I've tried CONCATENATE and =A1& " - "&A2 but I believe these will generally only work with text/general formatting.
    Is there a way to combine cells A1 & A2 in the range format given?

    Thanks in adavnce for any help you can offer.

    Cheers.

    Nick

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can you combine two cells to create a time range in a third cell?

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723

    Re: Can you combine two cells to create a time range in a third cell?

    Hello Nick, try using TEXT function like this

    =TEXT(A1,"hh:mm")&" - "&TEXT(A2,"hh:mm")
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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