#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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!