#1   Report Post  
Posted to microsoft.public.excel.misc
cpy cpy is offline
external usenet poster
 
Posts: 1
Default count formulas

How can I count nonblanks in column B only if column A contains certain value?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default count formulas

How can I count nonblanks in column B only if
column A contains certain value?


What's the "certain value" in column A?

=SUMPRODUCT(--(A1:A10=10),--(B1:B10<""))

=SUMPRODUCT(--(A1:A10="some_text"),--(B1:B10<""))

Or, C1 = some value

=SUMPRODUCT(--(A1:A10=C1),--(B1:B10<""))

Biff

"cpy" wrote in message
...
How can I count nonblanks in column B only if column A contains certain
value?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default count formulas

I would create a third helper column, in column C and run the following
formula down:

=IF(A1=[certain value],IF(NOT(ISBLANK(B1)),"Nonblank",""))

Then, count the number of "Nonblank" responses you get: =COUNTIF([range from
helper column]="Nonblank")

Dave
--
Brevity is the soul of wit.


"cpy" wrote:

How can I count nonblanks in column B only if column A contains certain value?

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
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
Count IF Multipile Formulas andreah New Users to Excel 2 June 23rd 05 12:44 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 01:41 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"