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
- Customer Resources
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 508 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!