+ Reply to Thread
Results 1 to 19 of 19

date into text while keeping the date in its initial format

Hybrid View

  1. #1
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Lightbulb date into text while keeping the date in its initial format

    Greetings,
    I have a trouble concerning dates.
    I want to put many dates in one single cell but excel is displaying me other numbers which are not dates.

    for example, i have the following dates in different cells
    Aug 2015
    Sept 2015
    I want the following result
    Aug 2015, Sept 2015
    after using the following formula,
    =H17&", "&H18
    excel is giving me the following result
    42217, 42248
    I am looking for someone to give me help

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: date into text while keeping the date in its initial format

    Try

    =TEXT(H17,"MMM YYYY")&" , "&TEXT(H18,"MMM YYYY")

    Formula: copy to clipboard
    =TEXT(H17,"MMM YYYY")&" , "&TEXT(H18,"MMM YYYY")
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: date into text while keeping the date in its initial format

    Use
    text(a1,"mmm-yyyy") &  text(b1,"mmm-yyyy")
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  4. #4
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    Thank you Shukla, it works

  5. #5
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    I am sorry, I don't see where I should click to mention that my issue was solved. In fact it was solved!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: date into text while keeping the date in its initial format

    If this answered your question, please take a moment to mark the thread as "solved"...click the THREAD TOOL towards the top of the screen to find that - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: date into text while keeping the date in its initial format

    Glad it help you .Go to navigation thread tools ( to of the tread start) and mark it as solved and if you liked any solution add reputation by click * star icon left corner on your screed.

  8. #8
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    Now after putting the formula above is it possible to scroll it down? so that i can avoid writing it again and again?

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: date into text while keeping the date in its initial format

    Yes you can

  10. #10
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    I would like to ask for example, if I have the following months
    June 2015
    July 2015
    August 2015
    September 2015
    If it is possible to put only the formula for two months and those other months add by them selves.
    I tried it but it is not working

  11. #11
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: date into text while keeping the date in its initial format

    No it is not possible as formula need to tell the range. It can be possible with VBA If you can upload your spreadsheet so we can give you solution according your need.

  12. #12
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    I am a beginner to the forum. What is VBA please?

  13. #13
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: date into text while keeping the date in its initial format

    It will be better if you can upload the spreadsheet for uploading Go to Advance and click on attachment link.

    What is VBA?
    Ans->Excel VBA (Visual Basic for Applications) is the name of the programming language of Excel. 1 Create a Macro: With Excel VBA you can automate tasks in Excel by writing so called macros. In this chapter, learn how to create a simple macro.

  14. #14
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    I don't see advance, can you indicate it for me please?

  15. #15
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    i have uploaded an excel document. there are a number of months I want to use the formula you have given me on few months and then scroll down to other months
    thank you
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    I don't understand the second paragraph, I am not an IT

  17. #17
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    i have uploaded an excel document. there are a number of months I want to use the formula you have given me on few months and then scroll down to other months
    thank you
    Attached Files Attached Files

  18. #18
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: date into text while keeping the date in its initial format

    Try

    D2=IFERROR(LOOKUP(2,1/($A$1:A1=A2),TEXT($D$1:D1,"MMM-YY"))&","&TEXT(B2,"MMM-YY"),TEXT(B2,"MMM-YY")) Drag Down

    Formula: copy to clipboard
    =IFERROR(LOOKUP(2,1/($A$1:A1=A2),TEXT($D$1:D1,"MMM-YY"))&","&TEXT(B2,"MMM-YY"),TEXT(B2,"MMM-YY"))


    B23=LOOKUP(2,1/($A$2:$A$20=A23),$D$2:$D$20) and drag down

    Formula: copy to clipboard
    =LOOKUP(2,1/($A$2:$A$20=A23),$D$2:$D$20)


    Check the attached file.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    01-13-2016
    Location
    kigali
    MS-Off Ver
    2003
    Posts
    27

    Re: date into text while keeping the date in its initial format

    I prefer to apply the previous formula,
    Thank you

+ 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. Combining cells, keeping date format.
    By emccalment in forum Excel General
    Replies: 2
    Last Post: 02-26-2016, 11:12 AM
  2. Data Analysis: Compare initial date with final date by looking up the latest revision
    By White_Glint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2015, 02:31 PM
  3. [SOLVED] Data Validation: using date in as initial date in range
    By dmorl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-01-2015, 10:10 AM
  4. Concatenate text, date and time keeping format
    By TiagoG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2015, 07:07 PM
  5. Keeping Date Format in String
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2012, 12:39 PM
  6. Replies: 1
    Last Post: 06-06-2011, 10:08 AM
  7. Convert cell category from Date to Text, keeping mm/dd/yyyy format
    By chachie22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2011, 05:00 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