extracting month from a date column and returning blank where no date
Hi, I am trying to extract the month from a date column and for cells without a date in the same column to return a blank. I have used the expression below but it returns an incorrect argument message. Can anyone help, please?
=IFERROR(MONTH([Date CMI confirmation filed to matter]@row) = 1, "January", IF(MONTH([Date CMI confirmation filed to matter]@row) = 2, "February", IF(MONTH([Date CMI confirmation filed to matter]@row) = 3, "March", IF(MONTH([Date CMI confirmation filed to matter]@row) = 4, "April", IF(MONTH([Date CMI confirmation filed to matter]@row) = 5, "May", IF(MONTH([Date CMI confirmation filed to matter]@row) = 6, "June", IF(MONTH([Date CMI confirmation filed to matter]@row) = 7, "July", IF(MONTH([Date CMI confirmation filed to matter]@row) = 8, "August", IF(MONTH([Date CMI confirmation filed to matter]@row) = 9, "September", IF(MONTH([Date CMI confirmation filed to matter]@row) = 10, "October", IF(MONTH([Date CMI confirmation filed to matter]@row) = 11, "November", IF(MONTH([Date CMI confirmation filed to matter]@row) = 12, "December", ""))))))))))))
Many thanks
Ally
Answers
-
I hope you're well and safe!
Try something like this.
=IFERROR(IF(MONTH([Date CMI confirmation filed to matter]@row) = 1, "January", IF(MONTH([Date CMI confirmation filed to matter]@row) = 2, "February", IF(MONTH([Date CMI confirmation filed to matter]@row) = 3, "March", IF(MONTH([Date CMI confirmation filed to matter]@row) = 4, "April", IF(MONTH([Date CMI confirmation filed to matter]@row) = 5, "May", IF(MONTH([Date CMI confirmation filed to matter]@row) = 6, "June", IF(MONTH([Date CMI confirmation filed to matter]@row) = 7, "July", IF(MONTH([Date CMI confirmation filed to matter]@row) = 8, "August", IF(MONTH([Date CMI confirmation filed to matter]@row) = 9, "September", IF(MONTH([Date CMI confirmation filed to matter]@row) = 10, "October", IF(MONTH([Date CMI confirmation filed to matter]@row) = 11, "November", IF(MONTH([Date CMI confirmation filed to matter]@row) = 12, "December", "")
Did that work/help?
I hope that helps!
Have a fantastic week & Happy New Year!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thank you for responding Andree, but unfortunately, it didn't work and have become resigned to seeing 'invalid data type' where cells do not contain a date.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!