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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!