+ Reply to Thread
Results 1 to 8 of 8

Combine text & date1 & date2 into one single cell - end formatting problem - Excel 2007

Hybrid View

  1. #1
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Combine text & date1 & date2 into one single cell - end formatting problem - Excel 2007

    Hello!

    I've got problem with combining 3 cells into one. First cell contains text, second have date yyyy-mm-dd and last one is as previous. I'm using formula
    =Y1&"_"&Y2&"_"&Y3
    and I'm getting: TEXT_41694_41701. How can that be corrected to use formatting for date format to get TEXT_yyyy-mm-dd_yyyy-mm-dd?

    Thanks in advance!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Combine text & date1 & date2 into one single cell - end formatting problem - Excel 200

    =Y1&"_"&TEXT(Y2,"yyyy-mm-dd")&"_"&TEXT(Y3,"yyyy-mm-dd")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Combine text & date1 & date2 into one single cell - end formatting problem - Excel 200

    Quote Originally Posted by :) Sixthsense :) View Post
    =Y1&"_"&TEXT(Y2,"yyyy-mm-dd")&"_"&TEXT(Y3,"yyyy-mm-dd")
    I used this formula but I'm getting error (there is an error with formula).

    Can you look into excel file and get this working? datewithtext.xlsx

    Thanks again!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Combine text & date1 & date2 into one single cell - end formatting problem - Excel 200

    I adapted the formula to your attachment file. Please check and confirm

    =A2&"_"&TEXT(A3,"yyyy-mm-dd")&"_"&TEXT(A4,"yyyy-mm-dd")

  5. #5
    Registered User
    Join Date
    10-03-2010
    Location
    Poland
    MS-Off Ver
    2000 ; 2007
    Posts
    17

    Re: Combine text & date1 & date2 into one single cell - end formatting problem - Excel 200

    I translated TEXT into polish function but still getting same error about formula. Can you paste your formula to attachment and attach it to your post? Ty!

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Combine text & date1 & date2 into one single cell - end formatting problem - Excel 200

    I think this yyyy-mm-dd also needs to be converted to polish version.

    Please check the attachment.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-10-2014
    Location
    PH
    MS-Off Ver
    Excel 2003, 2010
    Posts
    1

    Re: Combine text & date1 & date2 into one single cell - end formatting problem - Excel 200

    Thanks for posting this!

+ 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. [SOLVED] =days360(date1,date2) is calculating 30 days for February
    By eneia in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 10:48 AM
  2. [SOLVED] MAX(date1;date2) returns wrong answer
    By cristinik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2013, 07:33 AM
  3. Problem with formatting numbers as text, in Excel 2007
    By Tidetracker in forum Excel General
    Replies: 1
    Last Post: 11-07-2011, 01:55 PM
  4. subtraction: Date1 - Date2 = number of days
    By delizoki66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2010, 10:06 AM
  5. [SOLVED] How can I combine text and a function in a single cell
    By slot guy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2005, 01:06 PM

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