I need a formula to return the most common value in a column.
I need your help to create a formula to return the most common value seen in a column. I have a dynamic list of Names and I want to display the name that appears the most often in a Summary field. Mental block, sorry!
I've seen very similar posts but nothing has worked. From this example, I want Joe to be displayed.
Best Answer
-
Hello @Ron Goulet
Here's an example of using an Index/Collect function to pull the value using a helper column for the frequency of occurrence.
There are issues when multiple names have the same count or the sort (A-Z) of the sheet changes.
Notice when I changed the sort of the Name column to the other direction the result changes to a different value. It's not wrong, but the function pulls the first result that works and that's all.
Depending on how unique each value is from one another, you may need 2-4 criteria to get consistently accurate data.
Answers
-
Hello @Ron Goulet
Here's an example of using an Index/Collect function to pull the value using a helper column for the frequency of occurrence.
There are issues when multiple names have the same count or the sort (A-Z) of the sheet changes.
Notice when I changed the sort of the Name column to the other direction the result changes to a different value. It's not wrong, but the function pulls the first result that works and that's all.
Depending on how unique each value is from one another, you may need 2-4 criteria to get consistently accurate data.
-
Thanx Michael! I'll give it a shot and see how I can improve accuracy. Appreciate the response and help!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 404 Global Discussions
- 215 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!