Help with Question on formula - getting unparsable - eyes are crossed
Hi, I took my formula which worked in excel and have tried to reproduce it in smartsheet and I am getting an unparsable, I am going cross-eyed trying to figure out what I am doing wrong. Here is the formula if someone can help me figure it out. thank you - Amy
=IF(AND(ISTEXT(ExpirationDate1), Datefirst1 = "", Datesecond1 = ""), "N/A", IF(Datesecond1 <> "", Datesecond1 + 14), IF(Datefirst1 <> "", Datefirst1 + 14, DATE(YEAR(ExpirationDate1), MONTH(ExpirationDate1) - 1, DAY(ExpirationDate1)))))
Answers
-
A couple of suggestions: first, I think there is an extra parenthesis (see below); second, I'd make sure there are no invalid dates in any of your columns.
=IF(
AND(ISTEXT(ExpirationDate1), Datefirst1 = "", Datesecond1 = ""),
"N/A",
IF(
Datesecond1 <> "",
Datesecond1 + 14), <---------- Remove this parenthesis
IF(
Datefirst1 <> "",
Datefirst1 + 14,
DATE(YEAR(ExpirationDate1), MONTH(ExpirationDate1) - 1, DAY(ExpirationDate1)))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!