Autofill a column depending on two criteria
Hoping someone can help. I am trying to autofill a status. Column A has a look up value, some of the lookup values are duplicated at least once.
When we enter the value in the status column against one value, we would like the same status to all matching look up values. Please see attached screen snip of the tables.
Answers
-
My favorite solution is to use RANKEQ.😁
- Rankeq: =RANKEQ([Row ID]@row, COLLECT([Row ID]:[Row ID], A:A, A@row), 1)
- Status: =IF(Rankeq@row > 1, "In Stock")
If I need all duplicates to be In Stock, I use COUNTIF.
- Countif: =COUNTIF(A:A, A@row)
- Status All:=IF(Countif@row > 1, "In Stock")
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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!