+ Reply to Thread
Results 1 to 7 of 7

Help on how to generate all dates in ""s

  1. #1
    Registered User
    Join Date
    02-24-2017
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    65

    Help on how to generate all dates in ""s

    Hey all,


    Perhaps I'm being a bit lazy...

    But is there any way to use Excel (or something else) to generate all dates in quotes, separated by commas?


    Like this:


    "01/01", "01/02", "01/03", "01/04"..........all the way to "12/31"?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Help on how to generate all dates in ""s

    If you do this, they will be strings, not dates, and so what you can do with them is very limited. I assume you must know this, because your request was so specific.

    What year? You don't show the year, but leap year will make a difference.

    Put this formula in A1 to A365 for dates in 2018:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Help on how to generate all dates in ""s

    separated by commas?...
    Does that mean all in one cell
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    02-24-2017
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    65

    Re: Help on how to generate all dates in ""s

    @ 6string That's right I mean in strings, which is what you gave, thanks.

    I don't want any specific year, but if it gets output with a specific year, I can just find and replace the year with a blank, so that's not a problem.

    This gets me closer...but protonLeah is right, I need them separated by commas....which may mean all in one cell.

  5. #5
    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
    52,936

    Re: Help on how to generate all dates in ""s

    Just note that doing it this way, you no longer have dates, you have text. Dates are numbers, and if you intend trying to find a date in that text string, you will need to convert 1 or the other data set - you will not be able to make s straight check
    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

  6. #6
    Registered User
    Join Date
    02-24-2017
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    65

    Re: Help on how to generate all dates in ""s

    My mistake with the terminology, I'm trying to use the text for a non-excel application.


    Perhaps a macro can create the comma separated list of text in a cell....?

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Help on how to generate all dates in ""s

    Copy this into the formula bar:

    =TEXT(DATE(2018,1,row(1:360)),"MM/DD")

    but don't press enter. Instead select everything after the = sign, then press f9. Now copy the resulting values (excluding the ={ at the start and the final } at the end) and paste it into a cell. Then just use Find/Replace to replace the semicolons with commas.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Need addtional criteria to count where "Actual" dates earlier that "Scheduled" DATE
    By Ochimus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2018, 07:54 PM
  3. Replies: 1
    Last Post: 02-24-2018, 10:56 AM
  4. Replies: 11
    Last Post: 09-24-2017, 11:53 AM
  5. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  6. Replies: 1
    Last Post: 03-23-2015, 06:19 PM
  7. Replies: 4
    Last Post: 08-20-2014, 07:14 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