Rank Function
Hi,
How do I create a rank formula for the field, that only includes certain values from a row that meets certain criteria.
For example the below image is the example. I only want to rank and include in the range active expenses. Can someone please help me.
Regards
J Tech
If my response has helped you in any way or provided a solution to your problem, please consider supporting the community by marking it as Insightful, Vote Up, or Awesome. Additionally, you can mark it as the accepted answer, which will make it easier for others to find a solution or get help with a similar issue in the future. Your support is greatly appreciated!
Best Answer
-
In order for it to work, I had to create a helper column that removed the Expense if the Status wasn't Active (mine isn't formatted as $, but it can be)
"Value Expense" =IF(STatus@row = "Active", [Total Expense]@row, "")
Then I created the Ranking column looking at the Value Expense Column:
=IF(STatus@row = "Active", RANKEQ([Value Expense]@row, [Value Expense]:[Value Expense]), "")
If I didn't eliminate the "Obsolete" value, it was included in the ranking, even if it didn't show in the column (see the numbers in the Expense Rank column)
Answers
-
In order for it to work, I had to create a helper column that removed the Expense if the Status wasn't Active (mine isn't formatted as $, but it can be)
"Value Expense" =IF(STatus@row = "Active", [Total Expense]@row, "")
Then I created the Ranking column looking at the Value Expense Column:
=IF(STatus@row = "Active", RANKEQ([Value Expense]@row, [Value Expense]:[Value Expense]), "")
If I didn't eliminate the "Obsolete" value, it was included in the ranking, even if it didn't show in the column (see the numbers in the Expense Rank column)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!