+ Reply to Thread
Results 1 to 3 of 3

Combine date and part of a workbook's name into a cell

  1. #1
    Registered User
    Join Date
    04-20-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    96

    Combine date and part of a workbook's name into a cell

    Hi,

    I work with spreadsheets all having a different name, but the name formatted in a similar fashion. The goal is to automate the content of a cell, containing both part of today's date, as well as part of the book's name.

    The name can be something like this: RCVG-PH_Pandahall_1612161325 What I need, is code that generates the following content for a given cell(let's say B2, and using Thursday's date as an example):

    01-26PH

    The name of the book will always contain 2 letters right after a dash (-), followed by an underscore (_). Those 2 letters are the ones I need along with the abbreviated date (day/month), in the format dd-mm(XX)

    Thanks for your help!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Combine date and part of a workbook's name into a cell

    Try this:
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    04-20-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: Combine date and part of a workbook's name into a cell

    Hi Millz!,

    Thank you SO much for your help! The code works wonderful and solved a problem I was not able to on my own! I'm marking this thread as solved!

    Thanks again!

+ 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] How to combine a text cell with a date cell so that date does not convert?
    By OmegaSea in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2015, 01:36 PM
  2. [SOLVED] Splitting date fails for a part of date column due to different cell format
    By Moriexcel in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-21-2014, 01:00 PM
  3. Need Help with Cell Value as part of Workbook path
    By joee0201 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-09-2014, 06:54 PM
  4. How to use a cell value as part of a workbook reference, in a formula?
    By kimaalfr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2013, 05:00 AM
  5. Replies: 7
    Last Post: 10-23-2012, 02:29 PM
  6. Replies: 3
    Last Post: 04-06-2010, 11:26 PM
  7. Copy part of a cell to 2nd workbook
    By oneal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2009, 07:44 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