I think this should do what you're looking for, as long as all of your values in "Price" are formatted to 2 decimals:
=IF(VALUE(RIGHT(Price@row, 3)) <= 0.3, FLOOR(Price@row, 1) - 0.05, CEILING(Price@row, 1) - 0.05)
If price above/below number of cents...
I'm new to SmartSheet and am struggling to create a formula for the following:
If number ends in 0-29, round DOWN to nearest 0.95, (ex. FLOOR(A1,1)-0.05). Otherwise, if number ends in 30-99 cents, round UP to nearest 0.95 (ex. CEILING(A1,1)-0.05).
ie: $59.29 rounds to $58.95. $59.30 rounds to $59.95
Can anyone help me put the pieces together?
Best Answer
-
I think this should do what you're looking for, as long as all of your values in "Price" are formatted to 2 decimals:
=IF(VALUE(RIGHT(Price@row, 3)) <= 0.3, FLOOR(Price@row, 1) - 0.05, CEILING(Price@row, 1) - 0.05)
Answers
-
I think this should do what you're looking for, as long as all of your values in "Price" are formatted to 2 decimals:
=IF(VALUE(RIGHT(Price@row, 3)) <= 0.3, FLOOR(Price@row, 1) - 0.05, CEILING(Price@row, 1) - 0.05)
-
That's exactly what I was looking for, thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.7K Get Help
- 472 Global Discussions
- 200 Use Cases
- 514 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 519 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!