Leveraging TEXTJOIN

CCSlice

New Member
Joined
Feb 11, 2022
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi Everyone,

I am looking to leverage the TEXTJOIN function in Office 365 version to return which files are currently opened in a list. The function itself returns the names of the people who have currently checked out files (Column F), but what I would like returned is the name of the files (Column C) that are currently opened.

Sample File.xlsx
ABCDEF
1LocationDateFileLinkModified DateFile Currently Checked Out To
2T:\Data Sets\2022-03-08eLog_Daniel.xlsxLink2022-02-23
3T:\Data Sets\2022-03-08eLog_Joseph.xlsxLink2022-02-22Joseph Sommers
4T:\Data Sets\2022-03-08eLog_Miriam.xlsxLink2022-02-21
5T:\Data Sets\2022-03-08eLog_Deborah.xlsxLink2022-02-23Deborah Teagan
6T:\Data Sets\2022-03-08eLog_Karen.xlsxLink2022-02-24
7T:\Data Sets\2022-03-08eLog_John.xlsxLink2022-02-26John Dailey
8T:\Data Sets\2022-03-08eLog_Philip.xlsxLink2022-02-27Philip Mountcastle
9T:\Data Sets\2022-03-08eLog_Isaac.xlsxLink2022-02-17
SharePoint List
Cell Formulas
RangeFormula
D2:D9D2=HYPERLINK(A1&C1,"Link")


My thanks in advance for all the help with this challenge.
 
Last edited by a moderator:
Assuming that you have access to MS365 functions, including LET, see if this is what you want.
I have provided examples of all three circumstances.

CCSlice.xlsm
ABCDEFGH
1LocationDateFileLinkModified DateFile Currently Checked Out To
2T:\Data Sets\2022-03-08eLog_Daniel.xlsxLink2022-02-23No files are checked out
3T:\Data Sets\2022-03-08eLog_Joseph.xlsxLink2022-02-22
4T:\Data Sets\2022-03-08eLog_Miriam.xlsxLink2022-02-21
5T:\Data Sets\2022-03-08eLog_Deborah.xlsxLink2022-02-23
6T:\Data Sets\2022-03-08eLog_Karen.xlsxLink2022-02-24
7T:\Data Sets\2022-03-08eLog_John.xlsxLink2022-02-26
8T:\Data Sets\2022-03-08eLog_Philip.xlsxLink2022-02-27
9T:\Data Sets\2022-03-08eLog_Isaac.xlsxLink2022-02-17
10
Sheet1
Cell Formulas
RangeFormula
H2H2=LET(f,FILTER(SPL_DATA[File],SPL_DATA[File Currently Checked Out To]<>"",NA()),r,IFNA(ROWS(f),0),IF(r = 0,"No files are checked out","Warning: "& IF(r<5,"These files are open: "&TEXTJOIN(" | ",,f),r&" activity files are currently checked out")))


CCSlice.xlsm
ABCDEFGH
1LocationDateFileLinkModified DateFile Currently Checked Out To
2T:\Data Sets\2022-03-08eLog_Daniel.xlsxLink2022-02-23Warning: These files are open: eLog_Joseph.xlsx | eLog_Deborah.xlsx | eLog_John.xlsx | eLog_Philip.xlsx
3T:\Data Sets\2022-03-08eLog_Joseph.xlsxLink2022-02-22Joseph Sommers
4T:\Data Sets\2022-03-08eLog_Miriam.xlsxLink2022-02-21
5T:\Data Sets\2022-03-08eLog_Deborah.xlsxLink2022-02-23Deborah Teagan
6T:\Data Sets\2022-03-08eLog_Karen.xlsxLink2022-02-24
7T:\Data Sets\2022-03-08eLog_John.xlsxLink2022-02-26John Dailey
8T:\Data Sets\2022-03-08eLog_Philip.xlsxLink2022-02-27Philip Mountcastle
9T:\Data Sets\2022-03-08eLog_Isaac.xlsxLink2022-02-17
10
Sheet1
Cell Formulas
RangeFormula
H2H2=LET(f,FILTER(SPL_DATA[File],SPL_DATA[File Currently Checked Out To]<>"",NA()),r,IFNA(ROWS(f),0),IF(r = 0,"No files are checked out","Warning: "& IF(r<5,"These files are open: "&TEXTJOIN(" | ",,f),r&" activity files are currently checked out")))


CCSlice.xlsm
ABCDEFGH
1LocationDateFileLinkModified DateFile Currently Checked Out To
2T:\Data Sets\2022-03-08eLog_Daniel.xlsxLink2022-02-23TomWarning: 6 activity files are currently checked out
3T:\Data Sets\2022-03-08eLog_Joseph.xlsxLink2022-02-22Joseph Sommers
4T:\Data Sets\2022-03-08eLog_Miriam.xlsxLink2022-02-21
5T:\Data Sets\2022-03-08eLog_Deborah.xlsxLink2022-02-23Deborah Teagan
6T:\Data Sets\2022-03-08eLog_Karen.xlsxLink2022-02-24
7T:\Data Sets\2022-03-08eLog_John.xlsxLink2022-02-26John Dailey
8T:\Data Sets\2022-03-08eLog_Philip.xlsxLink2022-02-27Philip Mountcastle
9T:\Data Sets\2022-03-08eLog_Isaac.xlsxLink2022-02-17Dan
10
Sheet1
Cell Formulas
RangeFormula
H2H2=LET(f,FILTER(SPL_DATA[File],SPL_DATA[File Currently Checked Out To]<>"",NA()),r,IFNA(ROWS(f),0),IF(r = 0,"No files are checked out","Warning: "& IF(r<5,"These files are open: "&TEXTJOIN(" | ",,f),r&" activity files are currently checked out")))
This is a great solution! Perfect! Thanks for helping me out.
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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