Pull month name from date - alternatives to long nested if formula
Answers
-
Are there alternatives to using long nested IF statements in Smartsheet formulas to determine the month from a date?
-
That kind of depends on what you are trying to do. If you are just trying to get the month out of a cell:
MONTH([Your Cell]@row)
Adding a specific number of days is pretty easy also:
[Your Cell]@row + 30
The complexity comes into adding a specific number of months or years to a date. There is not an automatic way to take the number of days in each month, leap years, rollover to the next year, etc., into account.
-
Hey @zemlaka22
Building on @Carson Penticuff 's 'depends' statement - if you are asking about converting the month number to the month name one could build a Month reference table (a lookup table) in another sheet and always use it when needing Month names in the future.
For building the lookup sheet, I would have three columns - The Month number, the full month name and the 3 letter name. If you were getting more specific, you could even add a Quarter column. An Index/Match would easily pull the Name or other fields into a destination sheet without the 12-deep nested IF formula. Currently, lookups or nested IFs are the only way to convert the month number to month name.
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!