#1   Report Post  
Posted to microsoft.public.excel.misc
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF FORMULA ISSUES - NEED FORMULA CORRECTED Debbi Excel Worksheet Functions 2 November 18th 09 04:47 AM
countif formula japc90 Excel Discussion (Misc queries) 6 July 25th 06 11:28 PM
help in countif formula. martin Excel Discussion (Misc queries) 3 June 1st 06 10:21 AM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
CountIf formula help Lucien Excel Discussion (Misc queries) 2 September 29th 05 08:14 PM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"