Struggling with a formula
Hello! I'm using the following formula to convert a date to month only.
=IF(MONTH([Audit Due Date]@row) = 1, "January", IF(MONTH([Audit Due Date]@row) = 2, "February", IF(MONTH([Audit Due Date]@row) = 3, "March", IF(MONTH([Audit Due Date]@row) = 4, "April", IF(MONTH([Audit Due Date]@row) = 5, "May", IF(MONTH([Audit Due Date]@row) = 6, "June", IF(MONTH([Audit Due Date]@row) = 7, "July", IF(MONTH([Audit Due Date]@row) = 8, "August", IF(MONTH([Audit Due Date]@row) = 9, "September", IF(MONTH([Audit Due Date]@row) = 10, "October", IF(MONTH([Audit Due Date]@row) = 11, "November", IF(MONTH([Audit Due Date]@row) = 12, "December"))))))))))))
The formula works great, except for the cells that do not have a date (and even that is not consistent). I keep getting #INVALID DATA TYPE. If there is no Audit Due Date, I want the Date Conversion cell left blank. I've tried updating the formula multiple ways, but still get the same result. What am I doing wrong?
Michelle Cullen
Answers
-
Add a false arguement at the end, after December or wrap it in IFERROR, or Start with a IF "" then "".
...
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!