INDEX/MATCH to enter a number based off a month name.
I'm trying to get an index match formula to enter the number of a quarter based of the month completed name between my working sheet and a helper sheet:
=IFERROR(INDEX({SourceMonthName}, MATCH(MONTH[Month Complete]@row), {SourceQuarterNUmber}, 0), "")
I keep getting #unparseable
Best Answer
-
Thank you for your help. I swapped the sheet references around and it worked.
=INDEX({SourceQuarterNumber}, MATCH([Month Complete]@row, {SourceMonthName}, 0))
Answers
-
Try moving the parenthesis that closes the MATCH function
From
=IFERROR(INDEX({SourceMonthName}, MATCH(MONTH[Month Complete]@row), {SourceQuarterNUmber}, 0), "")
To
=IFERROR(INDEX({SourceMonthName}, MATCH(MONTH[Month Complete]@row, {SourceQuarterNUmber}, 0)), "")
You might also need IFERROR around the MONTH function to return 0 if the cell is blank.
-
Still getting #unparseable
-
Are your Month Complete and SourceMonthName columns date format? If doesn't sound like they are. If these are not dates, remove the MONTH function from the formula. You can match the text in the Month Complete with the text in SourceMonthName
=IFERROR(INDEX({SourceMonthName}, MATCH([Month Complete]@row, {SourceQuarterNUmber}, 0)
)
, "") -
Thank you for your help. I swapped the sheet references around and it worked.
=INDEX({SourceQuarterNumber}, MATCH([Month Complete]@row, {SourceMonthName}, 0))
-
There we go! Glad I could help (a little).
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!