Confused on Index Collect, Join

i have a sheet with a column with the number of records matching a code number (CodeFM) from another sheet. I have summarized the number of records for each code number (along with the code description in a separate sheet from the large master sheet containing the data). All is well here.
At the bottom of the this second sheet, I want to list the top three highest record counts. I have done this using the LARGE(range, rank) function. This works. I want to put the corresponding code number in the cell to the right. If the record counts were unique, I could use the index match function. However, as seen in my example, there are multiple rows in the third highest position; I need to return the CodeFM value for each of the two records that have three instances.
My sheet looks as follows:
Is this possible? I have played with multiple functions including Index, Collect, and Join based on examples in this community to no avail. Any help would be appreciated.
Thanks in advance.
Best Answer
-
You would use somethign like this:
=JOIN(COLLECT(CodeFM1:CodeFM12, NumberFM1:NumberFM12, @cell = NumberFM@row), ", ")
Answers
-
You would use somethign like this:
=JOIN(COLLECT(CodeFM1:CodeFM12, NumberFM1:NumberFM12, @cell = NumberFM@row), ", ")
-
I got very close to that exact formula but messed up on the "@cell=" part. Your solution worked perfectly. Thank you for this solution
-
-
I just noticed that your solution is only returning one value for the third highest cell. It returns FM6-2, but also should be returning FM1-2.
-
Fixed! Mistake in cell range. Thanks again.
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!