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
 10.5K Get Help
 61 Global Discussions
 46 Industry Talk
 385 Announcements
 3.5K Ideas & Feature Requests
 54 Brandfolder
 124 Just for fun
 50 Community Job Board
 466 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!