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
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 144 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!