Is there a way I can have a Month AND Year lookup?
Currently i am doing a month lookup but some of my data crosses years. How do I incorporate the Year?
=IF(ISBLANK([Target Finish]@row), " ", IF(MONTH([Target Finish]@row) = 1, "January", IF(MONTH([Target Finish]@row) = 2, "February", IF(MONTH([Target Finish]@row) = 3, "March", IF(MONTH([Target Finish]@row) = 4, "April", IF(MONTH([Target Finish]@row) = 5, "May", IF(MONTH([Target Finish]@row) = 6, "June", IF(MONTH([Target Finish]@row) = 7, "July", IF(MONTH([Target Finish]@row) = 8, "August", IF(MONTH([Target Finish]@row) = 9, "September", IF(MONTH([Target Finish]@row) = 10, "October", IF(MONTH([Target Finish]@row) = 11, "November", IF(MONTH([Target Finish]@row) = 12, "December", " ")))))))))))))
Best Answer
-
Hi @Jennifer_Wirfel ,
I may be oversimplifying this, but try this:
=IF(ISBLANK([Target Finish]@row), " ", IF(MONTH([Target Finish]@row) = 1, "January", IF(MONTH([Target Finish]@row) = 2, "February", IF(MONTH([Target Finish]@row) = 3, "March", IF(MONTH([Target Finish]@row) = 4, "April", IF(MONTH([Target Finish]@row) = 5, "May", IF(MONTH([Target Finish]@row) = 6, "June", IF(MONTH([Target Finish]@row) = 7, "July", IF(MONTH([Target Finish]@row) = 8, "August", IF(MONTH([Target Finish]@row) = 9, "September", IF(MONTH([Target Finish]@row) = 10, "October", IF(MONTH([Target Finish]@row) = 11, "November", IF(MONTH([Target Finish]@row) = 12, "December", " ")))))))))))) + YEAR([Target Finish]@row))
If you want a space between the month and the year, you'll want to either insert + " " before the + YEAR or put a space before the closing quotation mark after each month (for example, "December ")
Let me know if this works!
Best,
Heather
Answers
-
Hi @Jennifer_Wirfel ,
I may be oversimplifying this, but try this:
=IF(ISBLANK([Target Finish]@row), " ", IF(MONTH([Target Finish]@row) = 1, "January", IF(MONTH([Target Finish]@row) = 2, "February", IF(MONTH([Target Finish]@row) = 3, "March", IF(MONTH([Target Finish]@row) = 4, "April", IF(MONTH([Target Finish]@row) = 5, "May", IF(MONTH([Target Finish]@row) = 6, "June", IF(MONTH([Target Finish]@row) = 7, "July", IF(MONTH([Target Finish]@row) = 8, "August", IF(MONTH([Target Finish]@row) = 9, "September", IF(MONTH([Target Finish]@row) = 10, "October", IF(MONTH([Target Finish]@row) = 11, "November", IF(MONTH([Target Finish]@row) = 12, "December", " ")))))))))))) + YEAR([Target Finish]@row))
If you want a space between the month and the year, you'll want to either insert + " " before the + YEAR or put a space before the closing quotation mark after each month (for example, "December ")
Let me know if this works!
Best,
Heather
-
Hi Heather,
Thank you so much! I got that to work for me.
Best,
Jennifer
-
@Jennifer_Wirfel Fantastic! Glad it worked. Have a great week!
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!