+ Reply to Thread
Results 1 to 6 of 6

Help with text formula

  1. #1
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Help with text formula

    Hello Experts,

    Can you please help me with this problem

    Im trying to combine a date and time

    in my A1 ( 6/22/2015) and B1 ( 12:01:53 AM ) I'm trying to combine them with a text Formula (=TEXT(A1,"m/dd/yyyy ")&TEXT(B1,"hh:mm:ss AM/PM")*
    But I'm getting an excel error "The formula you typed contains an error.

    Is my format correct?

    Any help is highly appreciated.

    Thanks.

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Help with text formula

    This works fine for me:
    Please Login or Register  to view this content.
    You could also add the space between this way:
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Contributor
    Join Date
    01-31-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Help with text formula

    I tried to restart my excel and try your second formula and still Im getting the same error.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Help with text formula

    Also if A1 is a Date and B1 is a Time, you can also combine them with =A1+B1 and custom format the formula cell as dd/mm/yyyy hh:mm:ss AM/PM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Help with text formula

    You may also be able to do this:
    Please Login or Register  to view this content.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Help with text formula

    I copied your examples into Excel and the time came in as an Excel time but the date came in as some kind of text so this is what I came up with to handle the date then added the time and formatted as mm/dd/yyyy h:mm:ss AM/PM

    copies were pasted into A5 and B5. This converted the combination of the two cells into an Excel date serial number that could be formatted with any Excel acceptable date/time format.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. Replies: 3
    Last Post: 03-04-2014, 01:47 PM
  3. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  4. [SOLVED] Extract text from a string of text (amend formula to include new criteria)
    By robertguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 04:53 PM
  5. Replies: 0
    Last Post: 06-03-2010, 01:11 PM

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