+ Reply to Thread
Results 1 to 4 of 4

Thread: 2 cells with time to one cell

  1. #1
    Registered User
    Join Date
    07-03-2009
    Location
    moore, ok, usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    2 cells with time to one cell

    im trying to take 2 separate cells and combine the contents into one cell and put a dash or hyphen in between. like so

    A1 = 8:00 AM
    A2 = 5:00 PM

    then have a formula to grab those 2 cells data and put them into one cell to look like this :

    A3 = 8:00 AM - 5:00 PM

    or

    A3 = 8 - 5 <---this one would be best...if possible.

    right now for the i have one cell getting the A1 data and another getting the A2 data.... with this formula :
    =IF('CREATE SCHEDULE'!A1="","OFF",'CREATE SCHEDULE'!A1)

    its set up to leave a blank if there is no timeslot...any help?
    Last edited by Vanillajuice; 07-03-2009 at 11:15 PM.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,190

    Re: 2 cells with time to one cell

    Maybe something like this:

    =IF(A1="","OFF",TEXT(A1,"H:MM AM/PM") & " - " & TEXT(A2,"H:MM AM/PM"))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-03-2009
    Location
    moore, ok, usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: 2 cells with time to one cell

    perfect! thanks!
    Last edited by Vanillajuice; 07-03-2009 at 10:43 PM.

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,190

    Re: 2 cells with time to one cell

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0