+ Reply to Thread
Results 1 to 6 of 6

Adding Date with Text

  1. #1
    Registered User
    Join Date
    10-13-2015
    Location
    Malta
    MS-Off Ver
    2013
    Posts
    8

    Adding Date with Text

    Hello everyone.

    Proud to be part of such an amazing forum, Already developing my Excel skills but still a baby

    Can I get some help as follows ?

    1. On a cell, the file name needs to be entered as a heading. for example: I save a file naming "Excel123_2015-Oct-31" which needs to be entered on a cell in my spreadsheet. But the problem is every day I update the file I have to change the date in the cell ,, Is there a way in which the name "Excel123" stays but the date in front of it changes as per today's date.

    Hope it makes sense

    Regards
    OK
    Last edited by Omair_81; 10-22-2015 at 05:55 AM. Reason: Unsuitable Title

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Excel help :)

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Excel help :)

    in the cell put

    ="Excel123_"&TEXT(TODAY(),"yyyy-mmm-dd")

    and change the subject heading of this thread
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    10-13-2015
    Location
    Malta
    MS-Off Ver
    2013
    Posts
    8

    Re: Adding Date with Text

    Thank you very much for your help. And apologies for wrong title of the thread. I have changed it.

    THank you once again.

  5. #5
    Registered User
    Join Date
    10-19-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    23

    Re: Excel help :)

    Hi,

    We can VBA this. Must warn you I'm no expert here.

    In A1 place
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In A2 place
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This is your code example:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Open Excel.
    Alt + F11 to open the VBE.
    Insert | Module.
    Paste the code there.
    Close the VBE (Alt + Q or press the x in the top right corner).

    Test the code:
    Tools | Macro | Macros...
    Select SaveAsExample and press Run.

  6. #6
    Registered User
    Join Date
    10-13-2015
    Location
    Malta
    MS-Off Ver
    2013
    Posts
    8

    Re: Adding Date with Text

    Thank you very much for your help

    Could you please advise some VB books? I think it wont be fair to ask every question here !!

    Regards
    OK

+ 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