if and date function
Hello,
if a cell has the year 2024, perform this operation (98.17 *3), and if a cell has the year 2023 perform this operation (95.17*3).
this is the formula i'm using its showing error  =IF(RTS@row, (YEAR(@cell) = 2024), (98.17 * 3), if(RTS@row, (YEAR(@cell) = 2023), (95.17 * 3)))
RTS@row is a date column
Best Answer

Your formula should look like this.
=IF(YEAR(RTS@row) = 2024, (98.17 * 3), IF(YEAR(RTS@row) = 2023, (95.17 * 3)))
The @cell reference will only work inside of a range, this is a single cell.
Hope this helps.
Dave
Answers

Your formula should look like this.
=IF(YEAR(RTS@row) = 2024, (98.17 * 3), IF(YEAR(RTS@row) = 2023, (95.17 * 3)))
The @cell reference will only work inside of a range, this is a single cell.
Hope this helps.
Dave

This works, thanks
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 63K Get Help
 379 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
Check out the Formula Handbook template!