A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Countif Formula



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 07:28 AM posted to microsoft.public.excel.misc
Khalid A. Al-Otaibi
external usenet poster
 
Posts: 14
Default Countif Formula

A B
1 112233 Expired
2 113344 Valid
3 116655 Valid
4 117799 N/A

This Formula is to calculate the number of employee in the column.

=COUNTIF(A1:A4,"*").

Can I make it =COUNTIF(A1:A4,"*")- N/A.

I mean I want it the formula to calculat the number of employee but if the
Column B has the work N/A. include it in the calculation.
  #2  
Old April 19th, 2010, 07:39 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Countif Formula

Try
=COUNTA(A1:A10)-COUNTIF(B1:B10,"N/A")

'If you want to count only if there is a numeric value in colA then you may
try
=SUMPRODUCT((ISNUMBER(A1:A100))*(B1:B100"N/A"))


--
Jacob (MVP - Excel)


"Khalid A. Al-Otaibi" wrote:

A B
1 112233 Expired
2 113344 Valid
3 116655 Valid
4 117799 N/A

This Formula is to calculate the number of employee in the column.

=COUNTIF(A1:A4,"*").

Can I make it =COUNTIF(A1:A4,"*")- N/A.

I mean I want it the formula to calculat the number of employee but if the
Column B has the work N/A. include it in the calculation.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.