#NO MATCH on MIN/COLLECT function
Hi, I am setting up two very similar sheets, with the same columns and similar data (each sheet is for a different date range). In both sheets, I have a column that uses a MIN/COLLECT function to detect duplicates when new rows are moved into the sheet. The formula works in one sheet, but in the other, it returns a #NO MATCH error, and I can't see why.
The formula is:
=IF(ISBLANK(AVProjectID@row), 0, IF(MIN(COLLECT([Row ID]:[Row ID], [date.projectid]:[date.projectid], [date.projectid]@row)) = [Row ID]@row, 0, 1))
Here's the first sheet, where the formula works:
And here's the second sheet, where it doesn't:
I can't see any important differences between these two sheets that would cause the second to return an error. Any ideas what might be causing this? Thanks in advance.
Best Answer
-
Hi Paul,
I figured it out! Just needed to sleep on it, I guess. A few rows at the bottom of the sheet had errors in the date.projectid column, which broke the whole collect formula. Added an IFERROR to the date.projectid column which seems to have fixed it.
I am somewhat curious about why an error in an individual cell of the criterion range will break the whole collect formula… Is there a way to instruct a collect formula to ignore errors in the criterion range?
Thanks,
Jesse
Answers
-
Do any of the Row IDs in the second sheet (the one not working) have any leading zeros?
-
Hi Paul,
I figured it out! Just needed to sleep on it, I guess. A few rows at the bottom of the sheet had errors in the date.projectid column, which broke the whole collect formula. Added an IFERROR to the date.projectid column which seems to have fixed it.
I am somewhat curious about why an error in an individual cell of the criterion range will break the whole collect formula… Is there a way to instruct a collect formula to ignore errors in the criterion range?
Thanks,
Jesse
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 451 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!