TEXTJOIN over multiple rows and 3 columns with specific date range

Allen_Mead

New Member
Joined
May 31, 2019
Messages
34
Office Version
  1. 365
Platform
  1. Windows
I want to be able to use the textjoin function to pull data from our CPD table into a summary for the working week, driven by the date on a given Monday (this will be in a separate cell)

The CPD table will be constantly updated and will include old data (as need to keep a record of all undertaken) and future information.

I would like the data to display as a weekday

Really stuck on this, screen shot attached (sorry i cannot install the XL2BB add on as I'm on a work computer) Many thanks for any help!
 

Attachments

  • Screenshot 2024-01-05 120133.png
    Screenshot 2024-01-05 120133.png
    26.1 KB · Views: 41
Another option
Excel Formula:
=TEXTJOIN(CHAR(10),,BYROW(SORT(A5:C10,3),LAMBDA(br,IF(AND(INDEX(br,,3)-A1>=0,INDEX(br,,3)-A1<7),TEXTJOIN({": (",") "},,TEXT(INDEX(br,,3),"dddd"),CHOOSECOLS(br,2,1)),""))))
I'd like to add a 4th column in which I have done and works in the order I want to but, I have an additional opening bracket in front of the word "Fire" which I'd like to get rid of but can't quite work out how to adjust the delimiter to do so.

as be low and attached.

Excel Formula:
=TEXTJOIN(CHAR(10),,BYROW(SORT('CPD-Meetings'!A3:D300,4),LAMBDA(br,IF(AND(INDEX(br,,4)-D1>=0,INDEX(br,,4)-D1<7),TEXTJOIN({": (",") "},,TEXT(INDEX(br,,4),"dddd"),CHOOSECOLS(br,2,3,1)),""))))
 

Attachments

  • Screenshot 2024-01-10 145743.jpg
    Screenshot 2024-01-10 145743.jpg
    11.5 KB · Views: 6
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Maybe
Excel Formula:
=TEXTJOIN(CHAR(10),,BYROW(SORT('CPD-Meetings'!A3:D300,4),LAMBDA(br,IF(AND(INDEX(br,,4)-D1>=0,INDEX(br,,4)-D1<7),TEXTJOIN({": (",") "," "},,TEXT(INDEX(br,,4),"dddd"),CHOOSECOLS(br,2,3,1)),""))))
 
Upvote 1
Maybe
Excel Formula:
=TEXTJOIN(CHAR(10),,BYROW(SORT('CPD-Meetings'!A3:D300,4),LAMBDA(br,IF(AND(INDEX(br,,4)-D1>=0,INDEX(br,,4)-D1<7),TEXTJOIN({": (",") "," "},,TEXT(INDEX(br,,4),"dddd"),CHOOSECOLS(br,2,3,1)),""))))
Perfect! Thank you again!
 
Upvote 0
Sorry to be a pain, but, if I want to do this in reverse, i.e. only include from the past 7 days from a specific date, which bit do I change please?
 
Upvote 0
Maybe
Excel Formula:
=TEXTJOIN(CHAR(10),,BYROW(SORT('CPD-Meetings'!A3:D300,4),LAMBDA(br,IF(AND(INDEX(br,,4)>=D1-7,INDEX(br,,4)<=D1),TEXTJOIN({": (",") "," "},,TEXT(INDEX(br,,4),"dddd"),CHOOSECOLS(br,2,3,1)),""))))
 
Upvote 0
Maybe
Excel Formula:
=TEXTJOIN(CHAR(10),,BYROW(SORT('CPD-Meetings'!A3:D300,4),LAMBDA(br,IF(AND(INDEX(br,,4)>=D1-7,INDEX(br,,4)<=D1),TEXTJOIN({": (",") "," "},,TEXT(INDEX(br,,4),"dddd"),CHOOSECOLS(br,2,3,1)),""))))
Looking good thank you. I do however seem to get an issue with the range in that where there are no entries to return, i get the repetitive 00/01/1900
 

Attachments

  • Screenshot 2024-01-15 153514.jpg
    Screenshot 2024-01-15 153514.jpg
    21.3 KB · Views: 6
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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