Textjoin dates and ignoring blanks

Ewal

New Member
Joined
Apr 8, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm trying to use the textjoin function to combine multiple dates into one cell and ignore blank cell. I was able to get to work using this function =TEXTJOIN(",",TRUE,D8:P8) but it brough the dates over in a number format like 44655, 44683, 44718. I want it to look like this 4/4/22, 5/2/22, 6/6/22. I tried to use the formula like this =TEXTJOIN(" ",TRUE,TEXT(D5:P5,"mm/dd/yy")) but it didn't ignore the blank cells and it look like this
1649444795368.png
. How do I write the formula to get rid of 01/00/00 and only keep the dates I want?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi & welcome to MrExcel.
How about
Excel Formula:
=TEXTJOIN(" ",,IF(D5:P5="","",TEXT(D5:P5,"mm/dd/yy")))
 
Upvote 0
It worked!! Thank you so much this helps out a lot.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Hi I realise that this is quite an old post but I have exactly the same issue except that when I try this fix I now only return one blank value (i.e. 00/01/1900)? Would it make a difference that I am using data in one column rather than one row?

TIA
 
Upvote 0
What is the formula you used & did you confirm it with Ctrl Shift Enter?
 
Upvote 0
Apologies I have since got the formula to work (typo on my end) sorry I thought I had got on and deleted my comment.

Thanks again
 
Upvote 0
Glad you sorted it & thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,224,738
Messages
6,180,673
Members
452,993
Latest member
FDARYABEE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top