countif with multiple criteria and ignoring n/a

Carla carla

New Member
Joined
Oct 29, 2022
Messages
47
Office Version
  1. 365
Platform
  1. Windows
Hello,

I've manage to write a countif formula but it counts n/a too..
How can i countif ignoring n/a?

this is the formula
=COUNTIFS('NGRT DATA'!C:C,"year 3 b",'NGRT DATA'!Z:Z,"<>")

and this is what i am trying to do.
thanks

1695917061555.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi carla,

Please provide some sample data and expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data, allowing us to copy/paste it to our Excel spreadsheets to work with the same data you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that this board also has a "Test Here” forum. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Thanks,

Doug
 
Upvote 0
Hi carla,

Please provide some sample data and expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data, allowing us to copy/paste it to our Excel spreadsheets to work with the same data you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that this board also has a "Test Here” forum. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Thanks,

Doug
I tried to download but it says I cant view
 
Upvote 0
Try this. You may have to adjust for your data...
Book1
ABCDEF
1DATA SOURCETotalBelow
2year 2 a#N/Ayear 2 a20
3year 2 a#N/Ayear 2 b51
4year 2 a#N/A
5year 2 aOn
6year 2 aAbove
7year 2 b#N/A
8year 2 bAbove
9year 2 bAbove
10year 2 b#N/A
11year 2 bAbove
12year 2 bBelow
13year 2 bAbove
Sheet1
Cell Formulas
RangeFormula
E2E2=COUNTIFS($A$2:$A$13,$D$2,$B$2:$B$13,"<>#N/A")
F2F2=COUNTIFS($A$2:$A$13,$D$2,$B$2:$B$13,"Below")
E3E3=COUNTIFS($A$2:$A$13,$D$3,$B$2:$B$13,"<>#N/A")
F3F3=COUNTIFS($A$2:$A$13,$D$3,$B$2:$B$13,"Below")

Hope that helps,

Doug
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,662
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top