PC Review


Reply
Thread Tools Rate Thread

counting non blank cells for "sum(if" formula

 
 
hostonthecoast
Guest
Posts: n/a
 
      25th Jun 2008
I've been reading through previous threads and can't find the solution to my
problem. I need to count the number of cells that are "not blank" in column G
after columns C and D meet the criteria ie:

=SUM(IF('ALL WO List'!$C$1:$C$11716="FBR",1)*(IF('ALL WO
List'!$D$1:$D$11716="MECH",1)*(IF('ALL WO List'!$G$1:$G$11716="not
blank",1))))

Wild cards (?*) and "counta" don't seem to work....what am I missing?
--
thanks,
hostonthecoast
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      25th Jun 2008
I'd use =sumproduct() to avoid having to array enter the formula:

=SUMproduct(--('ALL WO List'!$C$1:$C$11716="FBR"),
--('ALL WO List'!$D$1:$D$11716="MECH"),
--('ALL WO List'!$G$1:$G$11716<>""))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

If you're using xl2007, you may want to read about =countifs() in Help.

hostonthecoast wrote:
>
> I've been reading through previous threads and can't find the solution to my
> problem. I need to count the number of cells that are "not blank" in column G
> after columns C and D meet the criteria ie:
>
> =SUM(IF('ALL WO List'!$C$1:$C$11716="FBR",1)*(IF('ALL WO
> List'!$D$1:$D$11716="MECH",1)*(IF('ALL WO List'!$G$1:$G$11716="not
> blank",1))))
>
> Wild cards (?*) and "counta" don't seem to work....what am I missing?
> --
> thanks,
> hostonthecoast


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Counting cells that have a formula with "" Steve Microsoft Excel Worksheet Functions 6 22nd Apr 2009 10:26 PM
Re: Avoid counting Blank cells as "0" Bob Phillips Microsoft Excel Worksheet Functions 1 19th Jan 2009 12:06 PM
Re: Avoid counting Blank cells as "0" Jarek Kujawa Microsoft Excel Worksheet Functions 0 19th Jan 2009 11:25 AM
Formula for "counting" numbers - not cells! Willyum Microsoft Excel Worksheet Functions 3 13th Jan 2008 01:27 PM
Formula for "counting" numbers - bot cells! Willyum Microsoft Excel Worksheet Functions 5 11th Jan 2008 05:08 PM


Features
 

Advertising
 

Newsgroups
 


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