+ Reply to Thread
Results 1 to 6 of 6

I need to combine information to make a naming convention with a time stamp

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    3

    I need to combine information to make a naming convention with a time stamp

    Hello all long time-lurker here,
    I need to make a naming convention that takes information from three different cells and inputs it into one naming convention , all values in () for my example will be the information I have in other cells.
    "Request_(date/time stamp "e2")_(acct#"a2")_(date of birth"d2")_media_cpra"

    I'm a little unclear whether or not the underscores are fatal to the output or not. Any advice would be greatly appreciated.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: I need to combine information to make a naming convention with a time stamp

    You will need to use & as concatenation instead of underscores, and more " where text ends and referenced values begin.

    "Request " & e2 &" "& a2 &" "& d2 &" media_cpra"

    Assuming e2 = 9/25/2013 13:16, a2 = 11011, and d2= 10/31/1966

    Request 9/25/2013 13:16 11011 10/31/1966 media_cpra
    Last edited by daffodil11; 09-25-2013 at 01:18 PM.

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: I need to combine information to make a naming convention with a time stamp

    Quote Originally Posted by daffodil11 View Post
    You will need to use & as concatenation instead of underscores, and more " where text ends and referenced values begin.

    "Request " & e2 &" "& a2 &" "& d2 &" media_cpra"

    Assuming e2 = 9/25/2013 13:16, a2 = 11011, and d2= 10/31/1966

    Request 9/25/2013 13:16 11011 10/31/1966 media_cpra
    When I tried to concatenate the cells before, Excel wants to add them rather than list them side by side (I should have noted that the date stamp is formatted YYYYMMDDHHMMSS)

    ***Sorry, i confused myself and pulled up a separate spreadsheet. The error is that the the output is taking the YYYYMMDDHHMMSS and changing it to something I don't recognize. It took 20130925102716 and made it 41542.4355990741
    Last edited by markicir; 09-25-2013 at 01:30 PM. Reason: Looked at wrong spreadsheet

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: I need to combine information to make a naming convention with a time stamp

    41542.4355990741 is just 9/25/2013 10:27:16 in Excel language

    Just change the format of that weird number back to date.

    41542.4355990741 = 20130925102716

    Excel stores dates as the count of days since 1/1/1900 and time as a fraction of 1 day.

    Therefore, 2013/09/25 = 41542 days since 1/1/1900

    and

    10 hours 27 minutes 16 seconds = 37636 seconds ÷ 86400 seconds in a day = .4355990741
    Last edited by daffodil11; 09-25-2013 at 01:42 PM.

  5. #5
    Registered User
    Join Date
    09-25-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: I need to combine information to make a naming convention with a time stamp

    Got it. Your explanation makes a lot of sense, Excel's thinking doesn't. Thanks so much for your help!

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: I need to combine information to make a naming convention with a time stamp

    No problem.

+ 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 do I automatically fill in naming convention from one cell?
    By zilla1126 in forum Excel General
    Replies: 6
    Last Post: 10-23-2012, 09:30 AM
  2. Extracting Data from a Cell with Standard Naming Convention
    By jdohlinger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2012, 09:42 PM
  3. Renaming a worksheet which is obtained everyday and has a dynamic naming convention
    By Abhushan86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2012, 06:08 AM
  4. Add certain naming convention
    By superbob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2010, 05:26 AM
  5. [SOLVED] Variable Naming Convention
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2006, 03:50 AM

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