1/3/2021 to January 2021 formula
I did see this on another post but it was referencing dates in two different cells. This is that formula:
=INDEX([Text Column]:[Text Column], MATCH(MONTH(IF(ISDATE([Report Date]@row), [Report Date]@row, [Date Received]@row)), [Number Column]:[Number Column], 0)) + " " + YEAR(IF(ISDATE([Report Date]@row), [Report Date]@row, [Date Received]@row))
I'm just wanting to look at a date from one cell. Based off the formula in the post (I also did the table on the sheet) and changing it for one cell, this is what I tried:
=INDEX([Month Number]:[Month Name], MATCH(MONTH(IF(ISDATE([H-Analysis Due Date])55)) + " " + YEAR(IF(ISDATE([Analysis Due Date]55)))
and of course, it's not working. What am I missing?
thank you
Best Answer
-
Try this...
=INDEX([Month Name]:[Month Name], MATCH(MONTH([Analysis Due Date]@row), [Month Number]:[Month Number], 0)) + " " + YEAR([Analysis Due Date]@row)
Answers
-
I think this is closer to what I'm looking for:
=INDEX([Month Name]:[Month Name], MATCH(MONTH([H-Analysis Due Date]@row, [Month Number]:[Month Number], 0)) + "" + YEAR(IF(ISDATE([Analysis Due Date]@row))))
Still doesn't work. Returns Incorrect Argument. ???
-
Try this...
=INDEX([Month Name]:[Month Name], MATCH(MONTH([Analysis Due Date]@row), [Month Number]:[Month Number], 0)) + " " + YEAR([Analysis Due Date]@row)
-
Thanks so much Paul!
-
Happy to help. 👍️
-
I'm having trouble with this. It started quite awhile ago and I hadn't been able to deal with it now. Also, this is on the .gov Smartsheet:
Concerning above, I need to return the month name and year from H-Analysis Due Date to Analysis On Time or Late Month. This is the formula that actually returns a value.
=IFERROR(INDEX([Month Name]:[Month Name], MATCH(MONTH([H-Analysis Due Date]@row), [Month Number]:[Month Number], 1)) + " " + YEAR([H-Analysis Due Date]@row), "")
If prior to the current month, it returns September. If after this month or next, then it returns the correct month. But when going into year ’23, it references September again.
We did use “0” sorting but it did not return anything at all.
-
Are you able to provide screenshots for reference? The 0 in the MATCH function should be what you need.
-
This is in the Analysis On Time or Late Month with the file with a "1" at the end: =IFERROR(INDEX([Month Name]:[Month Name], MATCH(MONTH([H-Analysis Due Date]@row), [Month Number]:[Month Number], 1)) + " " + YEAR([H-Analysis Due Date]@row), "")
This is in the Analysis On Time or Late Month with in the file with a "0" at the end: =IFERROR(INDEX([Month Name]:[Month Name], MATCH(MONTH([H-Analysis Due Date]@row), [Month Number]:[Month Number], 0)) + " " + YEAR([H-Analysis Due Date]@row), "")
-
It looks like you have text values in the [Month Number] column. Enter those as numbers and use the 0. You should be good to go from there.
-
Boom! That's it! At first I didn't understand because the column is set for text/number. But, the "0" before the actual number is the "text" problem, it seems. Thanks so much!!!
-
Happy to help. 👍️
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
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!