Formula Syntax Help - Identifying suffix on number.
I have a sheet tracking orders. Each order has multiple order lines (each item on an order has a separate line with a decimal suffix). I would like to identify each primary order line (order line ending with ".0" but I'm struggling with the formula. I currently have this keyed as a formula =if(Order Line1,right([Line]1,0)"Primary". "") Obviously this is not correct. Can someone help me figure out the correct syntax to return "Primary" in my helper column?
Best Answer
-
Perfect! Simple is always better.
Answers
-
This formula works, treating the decimal as a decimal simply comparing the cells gives the desired result, as anything with other than a 0 doesn't numerically match.
=IF([Order#]@row = Line@row, "Primary", "Not Primary")
Hope this helps.
Paul
-
Perfect! Simple is always better.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 139 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!