How to join text as a date

kofi11

New Member
Joined
Jun 19, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a large dataset where each case reference may have multiple lines. For example showing which staff member made a visit.

I have been asked to join these staff members in a single cell so I use the following formula:

=IF(A2=A1," ",TEXTJOIN(", ",TRUE,OFFSET(P2,0,0,COUNTIF(A:A,A2,1)))

Column A holds all case references. Column P holds the visit staff.

This works fine. But when asked to do the same and join all the visit dates, I just get the 5 digits numbers instead of a string of dd/mm/yyyy dates separed by commas.

The number format is already set to date but the dates still appear as 5 digit numbers.

Can anybody suggest a solution please?
 
Upvote 1

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Thanks both, worked a treat. Really appreciate all the help and responses
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,218,208
Messages
6,141,130
Members
450,338
Latest member
ams905

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