If Formula and Countif

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
On 2002-01-14 16:22, justine wrote:
I asked it wrong before, so I'll try again.

I need a formula that will count how many NS are in E20 thru M20 also, I need in the same formula to enter a N/A if there are Quit or Inj in the same E20 thru M20. is that possible? (Also, I need it to return a blank cell if there aren't any NS, Quit or Inj entered.

Thanks!
This message was edited by justine on 2002-01-14 16:23

All this in the same formula?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I asked it wrong before, so I'll try again.

I need a formula that will count how many NS are in E20 thru M20 also, I need in the same formula to enter a N/A if there are Quit or Inj in the same E20 thru M20. is that possible? (Also, I need it to return a blank cell if there aren't any NS, Quit or Inj entered.

Thanks!
This message was edited by justine on 2002-01-14 16:23
 
Upvote 0
=IF(COUNTIF(E20:M20,"Quit")>0,"N/A",IF(COUNTIF(E20:M20,"Inj")>0,"N/A",IF(COUNTIF(E20:M20,"NS")>0,COUNTIF(E20:M20,"NS"),"")))
 
Upvote 0
On 2002-04-15 06:00, justine wrote:
Yes.. Is that possible?

No, unless the data are such that only one of the conditions holds, for example,

when CountOf(NS)>0, Quit and NJ do not occur in the range.

Aladin
 
Upvote 0

Forum statistics

Threads
1,213,568
Messages
6,114,348
Members
448,570
Latest member
rik81h

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