Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default counting non blank cells for "sum(if" formula

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default counting non blank cells for "sum(if" formula

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 he
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
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
Formula for "counting" numbers - not cells! Willyum Excel Worksheet Functions 3 January 13th 08 01:27 PM
Formula for "counting" numbers - bot cells! Willyum Excel Worksheet Functions 5 January 11th 08 05:08 PM
In excel counting cells in a range which meet condition "Xand<X" Uncivil Servant Excel Worksheet Functions 1 May 19th 06 02:37 PM
Automatically add "0" to blank cells without a formula in the cel. LuLu Excel Worksheet Functions 0 May 9th 06 03:13 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


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