countif not equal to either one of two criteria after index matching

xcelent

New Member
Joined
Jun 27, 2015
Messages
4
COUNTIF(INDEX(_1b1_3presrg_1a,MATCH($A17,Data!$B:$B,0)),"<>NA")

the above is my equation now. i cant figure out how to say not equal to either "na" or "blank." right now this answer obviously includes instances of "blank" as part of the count. this is part of a larger equation where i am pulling matches of names in one column and then summing the count of instances from another column where there is not an "NA" nor a "blank." Like this....


=SUM(COUNTIF(INDEX(_1b1_3presrg_1a,MATCH($A18,Data!$B:$B,0)),"<>NA"),COUNTIF(INDEX(_1b1_3presrg_2a,MATCH($A18,Data!$B:$B,0)),"<>*NA*"),COUNTIF(INDEX(_1b1_3presrg_3a,MATCH($A18,Data!$B:$B,0)),"<>*NA*"))
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
By trying to sum all the things that are not blank or NA you will double or triple count the data you are interested in.
Are you setting this up as an array formula?
Have you considered using =SUMIFS() function?
 
Upvote 0
You need to re-write Not\Or as And...
Rich (BB code):

COUNTIFS(INDEX(_1b1_3presrg_1a,MATCH($A17,Data!$B:$B,0)),"<>NA",
  INDEX(_1b1_3presrg_1a,MATCH($A17,Data!$B:$B,0)),"")
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,289
Members
449,498
Latest member
Lee_ray

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