Have a formula that numbers rows and want it to only count certain rows
Hello,
I want to sort items by priority based on order of the rows in the Smartsheet. So, I want lower numbers (rows towards the top) to be shown as a higher prority.
I am using the formula:
=MATCH([Task Name]@row, [Task Name]:[Task Name], 0)
However, I also want to only include certain rows. In particular, I want to only count rows where the column [Type] is equal to "Measure".
I tried this:
=MATCH([Task Name]@row, Type@row = "Measure", [Task Name]:[Task Name], 0)
But that does not work. Any ideas? Thank you in advance!
Answers
-
You can use the COLLECT function to narrow down the MATCH range.😀
As the range has fewer values than the [Task Name] or Match search values, add IFEEOR to cope with #No MATCH errors.
=IFERROR(MATCH([Task Name]@row, COLLECT([Task Name]:[Task Name], Type:Type, "Measure"), 0), "")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!