#NO MATCH when counting the results of a VLOOKUP
I am trying to count how many items fit 2 criteria, one is the year, the other is the state. The issue is coming in with the state, as I just changed it to a VLOOKUP and my formulas were all working before I did that. The VLOOKUP is working, but there are a few values which return a #NO MATCH and I can't change that due to the nature of those particular rows.
I am now getting a #NO MATCH error for all of my COUNTIFS formulas.
I saw this post <https://community.smartsheet.com/discussion/errors> and it seems like a similar problem, but the solution didn't work for me. I'm not sure if I'm implementing it wrong?
Here is my formula:
=COUNTIFS([Project Year]:[Project Year], "2019", State:State, IFERROR(@cell, 0) = "AL")
Any help is appreciated! I've been staring at this all day!
Comments
-
You are going to have to remove the error from the column being counted. Why is it that you cannot change the "#NO MATCH"?
-
Found a solution! I changed it so that the VLOOKUP utilizes IFERROR instead of the COUNTIF and it works! Going to leave this up in case anyone experiences a similar issue.
My above formula is now
=COUNTIFS([Project Year]:[Project Year], "2019", State:State, "GA")
and my VLOOKUP in the State column is
=IFERROR(VLOOKUP([Location Name]105, {Location Info Range 1}, 4, false), "N/A")
-
Well done. That's why I was asking about why you couldn't change the #NO MATCH error.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 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!