Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Countif(Not blank)

Trying to count cells in the indicated cell that are not blank. This is what
I tried, but it still counts blank cells.

=(COUNTIF(AB4,"<""")+COUNTIF(AG4,"<""")+COUNTIF( AL4,"<""")+COUNTIF(AQ4,"<"""))

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Countif(Not blank)

Just use "<" rather than "<"""

Regards,
Fred.

"David" wrote in message
...
Trying to count cells in the indicated cell that are not blank. This is
what
I tried, but it still counts blank cells.

=(COUNTIF(AB4,"<""")+COUNTIF(AG4,"<""")+COUNTIF( AL4,"<""")+COUNTIF(AQ4,"<"""))

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Countif(Not blank)

Try this:

=SUMPRODUCT(--(MOD(COLUMN(AB4:AQ4),5)=3),--(AB4:AQ4<""))


"David" wrote:

Trying to count cells in the indicated cell that are not blank. This is what
I tried, but it still counts blank cells.

=(COUNTIF(AB4,"<""")+COUNTIF(AG4,"<""")+COUNTIF( AL4,"<""")+COUNTIF(AQ4,"<"""))

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Countif(Not blank)

To work, your formula would have to be

=COUNTIF(AB4,"<"&"")+COUNTIF(AG4,"<"&"")+COUNTIF (AL4,"<"&"")+COUNTIF(AQ4,"<"&"")

However, as Fred said, you can use the simpler

=COUNTIF(AB4,"<")+COUNTIF(AG4,"<")+COUNTIF(AL4," <")+COUNTIF(AQ4,"<")

Note that there is no need for parentheses around the whole formula

Tyro


"David" wrote in message
...
Trying to count cells in the indicated cell that are not blank. This is
what
I tried, but it still counts blank cells.

=(COUNTIF(AB4,"<""")+COUNTIF(AG4,"<""")+COUNTIF( AL4,"<""")+COUNTIF(AQ4,"<"""))

Thanks



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 a corresponding value is not equal to zero or blank raphiel2063 Excel Worksheet Functions 1 April 4th 08 03:18 PM
countif, blank if zero eugene Excel Worksheet Functions 3 February 22nd 08 01:33 PM
COUNTIF & Blank Cells laurie g Excel Discussion (Misc queries) 2 September 18th 06 08:01 PM
How to COUNTIF blank cells? Soapman Excel Worksheet Functions 6 March 31st 06 10:27 PM
Countif not blank Darby Excel Worksheet Functions 3 September 7th 05 08:30 PM


All times are GMT +1. The time now is 07:29 PM.

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

About Us

"It's about Microsoft Excel"