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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!