INDEX/MATCH formula broken after number passed 100
I have been using an INDEX/MATCH formula to identify entries from one sheet to another. I used an automatic numbering system starting at 000 to index/match. If there is no match, then the formula returns a blank cell. Entry # 100 was deleted out of the sheet due to an error and after that the INDEX/MATCH is no longer working. It matches the entries from 000-099, but is not matching them after 101. I converted the formula to a column formula, so nothing has changed in the formula from entry 099-101 Any ideas how to fix this?
Formula I'm using: =IF([Agency Type]@row = "MAHEC Internal", IFERROR(INDEX({COI Entry #}, MATCH([Entry #]@row, {COI Entry #}, 0)), " "), IF([Agency Type]@row = "Subrecipient External", IFERROR(INDEX({Subaward Entry#}, (MATCH([Entry #]@row, {Subaward Entry#}, 0))), " ")))
The final column to the right is the column that should be returning the index/match number
Best Answer
-
Ok. So the auto-number is outputting text strings that just look like numbers and the manual entry is being stored as numbers. You have two different data types. Try inserting helper columns to convert everything into text values and then reference them in your formula.
=[Column Name]@row + "" (<-- plus quote quote converts it into a text value)
Answers
-
How is the entry number on both sheets populated? I see one is an auto-number type. What about the other sheet?
-
The Entry number is first generated when a person complete's a form and it is entered into the "Entry #" column. Then that assigned entry # is manually entered into another form that populates the COI Entry # and Subaward Entry# columns (mentioned in the formula) in 2 other tracking sheets. The Index Match takes the assigned entry # and if it shows up in one of the two other sheets, fills in that number in the the "Complete" column in the picture above. If the "Complete" column is filled in with the entry # then I know that the process is complete. Hopefully that helps explain my process
-
Ok. So the auto-number is outputting text strings that just look like numbers and the manual entry is being stored as numbers. You have two different data types. Try inserting helper columns to convert everything into text values and then reference them in your formula.
=[Column Name]@row + "" (<-- plus quote quote converts it into a text value)
-
That worked perfectly!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!