Top 10 Formula Error If there are Less Than 10 Results
Hi. I am using the following formula to check a box for the top 10 results. However, in some of my Smartsheets there may be only a top 2 or top 7. In those cases I am getting an #INVALID OPERATION error. How can I adjust the formula below so that it doesn't throw an error if there are less than 10 results?
=IF(OR(CountHost@row = LARGE(CountHost:CountHost, 1), CountHost@row = LARGE(CountHost:CountHost, 1), CountHost@row = LARGE(CountHost:CountHost, 2), CountHost@row = LARGE(CountHost:CountHost, 3), CountHost@row = LARGE(CountHost:CountHost, 4), CountHost@row = LARGE(CountHost:CountHost, 5), CountHost@row = LARGE(CountHost:CountHost, 6), CountHost@row = LARGE(CountHost:CountHost, 7), CountHost@row = LARGE(CountHost:CountHost, 8), CountHost@row = LARGE(CountHost:CountHost, 9), CountHost@row = LARGE(CountHost:CountHost, 10)), 1, 0)
Best Answer
-
Try this instead:
=IF(CountHost@row>= LARGE(CountHost:CountHost, MIN(10, COUNTIFS(CountHost:CountHost, @cell <> ""))), 1)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try this instead:
=IF(CountHost@row>= LARGE(CountHost:CountHost, MIN(10, COUNTIFS(CountHost:CountHost, @cell <> ""))), 1)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Works perfectly! Thanks so much @Paul Newcome!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 286 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!