=JOIN formula with two COLLECT statements
Hey Community,
I'm running into a roadblock with a formula that I thought was correct, but its coming up with the error #INVALID DATA TYPE.
Here is the formula I'm using in reference to the pictured cells attached:
=JOIN(AND(COLLECT([TOPIC2]:[TOPIC2], [TITLE2]:[TITLE2], TITLE@row), COLLECT([TOPIC2]:[TOPIC2], [DATE2]:[DATE2], DATE@row)), CHAR(10))
Essentially, here's what I want:
IF the team name in the [TITLE2] column equals the team name in the [TITLE]@row cell
AND the date in the [DATE2] column equals the date in the [DATE]@row cell
COLLECT all values in the [TOPIC2] column that meet this above criteria and put all those values in the [TOPIC]@row cell
Thank you for any help!!
Best Answer
-
See below formula. This will collect all TOPIC2 where TITLE2 matches TITLE@row and DATE2 matches DATE@row.
=JOIN(COLLECT([TOPIC2]:[TOPIC2], [TITLE2]:[TITLE2], TITLE@row,[DATE2]:[DATE2], DATE@row), CHAR(10))
The collect formula you can just keep on adding all the criteria that you want. No need for an AND statement.
Answers
-
See below formula. This will collect all TOPIC2 where TITLE2 matches TITLE@row and DATE2 matches DATE@row.
=JOIN(COLLECT([TOPIC2]:[TOPIC2], [TITLE2]:[TITLE2], TITLE@row,[DATE2]:[DATE2], DATE@row), CHAR(10))
The collect formula you can just keep on adding all the criteria that you want. No need for an AND statement.
-
@Leibel S - this worked perfectly. Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!