join a list of date

linkn00

New Member
Joined
Aug 15, 2019
Messages
13
I want to join a list of date together quickly. the join function requires the text function for every single date.
Is there an easier way to join a list of date together?
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,030
Office Version
2010
Platform
Windows
You have left some important information out of your post... where is the list of dates? how do you want them joined? where do you want the output to go to?

Just guessing here... I'll assume your dates are in cells A1:A10, that your want the output to be m/d/yyyy forma, that you want them joined using a comma/space as the delimiter and that you want the output to be shown in a MessageBox... here is a macro that will do this
Code:
Sub DateLister
  MsgBox Join(Application.Transpose(Evaluate("IF({1},TEXT(A1:A10,""m/d/yyyy""))")), ", ")
End Sub
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,030
Office Version
2010
Platform
Windows
Is there away to do it without using VBA?
I am not sure... my version of Excel is 2010... some of the later versions have a function called TEXTJOIN which I think would work the same way I used Join (except you should not have to TRANSPOSE the array result), but I am not sure and have no way to test it. If your version of Excel has this function, then I think the answer is "yes" and if you can figure it out yourself, great; otherwise you will have to wait for someone to come along who has that function in their version of Excel in order to show you the way.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
45,133
Office Version
365
Platform
Windows
Welcome to the MrExcel board!

Rick pointed out that you have omitted some information from your post and you still have not provided that information.
You have left some important information out of your post... where is the list of dates? how do you want them joined? where do you want the output to go to?
You also mentioned the "join function" which is a function in vba, not worksheet functions, so it is not surprising that a vba suggestion was made. ;)

So, still guessing at some of the things Rick asked, see if this formula helps. It is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}.

Excel Workbook
BC
12-May-182-May-18, 25-Dec-17, 15-Oct-19
225-Dec-17
315-Oct-19
Join dates
 

Watch MrExcel Video

Forum statistics

Threads
1,102,101
Messages
5,484,672
Members
407,460
Latest member
Fakxi

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top