Formula help
Can someone help me with this formula. Right now it works correctly only when a date is in the warranty start column. However when there is no date in the warranty start date column is says invalid data type. So I think I am missing some command with "" but now sure where or how it should be written.
Thanks
Best Answer
-
Try
=IFERROR(DATE(YEAR([warranty Start Date]@row) + 2, MONTH([warranty Start Date]@row), DAY([warranty Start Date]@row)), "No Date")
Peggy
Answers
-
Hello @Jon Barto
Hope you are well. Wrap with IFERROR
=IFERROR(DATE(YEAR([Warranty Start Date]@row) + 2, MONTH([Warranty Start Date]@row), DAY([Warranty Start Date]@row), "")
Hope this helps.
Peggy
-
Hello Peggy
I am getting #incorrect argument set for some reason.
-
Hello @Jon Barto
Is the Warranty Finish 2 year date column a date type column? I changed the above from "" to "No Date" and I got it to work but both Warranty Start Date & Warranty Finish 2 Year Date columns are date type columns.
=IFERROR(DATE(YEAR([warranty Start Date]@row) + 2, MONTH([warranty Start Date]@row)), "No Date")
Peggy
-
Yes both are "date" type columns.
The formula works but it does the month and year. the day says at 7-1 So if I had date of 7-15-23 in warranty start column, the result is 7-1-25. I need it to be 7-15-25. 2 years from start date.
-
Try
=IFERROR(DATE(YEAR([warranty Start Date]@row) + 2, MONTH([warranty Start Date]@row), DAY([warranty Start Date]@row)), "No Date")
Peggy
-
That was it!! Thanks so much. It will also work if I remove the "no date" and use just ""
Was missing the extra )) after the first part.
Thanks again for your help!!
-
Glad to help! Have a good weekend!
Peggy
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.3K Get Help
- 392 Global Discussions
- 213 Industry Talk
- 447 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 292 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!