LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
jb jb is offline
external usenet poster
 
Posts: 11
Default CountIF or SumIf Question

Wow, that's out there! I'll give that a bid. Thanks very much.

John

"Bob Phillips" wrote in message
...
Not too bad

=SUMPRODUCT(--(OFFSET(A2,,,COUNTA(A:A)-1,1)=""),--(OFFSET(B2,,,COUNTA(A:A)-1,1)=0),--(OFFSET(C2,,,COUNTA(A:A)-1,1)=0))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"jb" wrote in message
...
Perfect. Saw that function but had no idea to use it like that, not in
100 years.

Reading the help screen and finding this out on my own, it appears that
the range has to be the same for all arrays (a1:a100, b1:b100, etc.) In
the spreadsheet I am referencing, new data is imported regularly so that
the number of rows will most likely change. Is there a way to determine
the number of rows in that spreadsheet to get the second half of the
array number (that is, I know that their will always be a header in row 1
so the data will start in row 2. I do not know where it will end
A2:A????)

Thanks a lot - not a big deal if this is very complex.

John
"Bob Phillips" wrote in message
...
=SUMPRODUCT(--(A1:A100=""),--(B1:B100=0),--(C1:C100=0))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"jb" wrote in message
...
Hello,
Following up on previous help provided and which as worked great:

Without having to add a column to a spreadsheet, I need to count the
number
of rows that match criteria based on three columns. That is, If column
A is
blank AND column B=0 AND column C=0, this would count as 1 valid row,
otherwise 0 valid row. It looks like I could do this somehow with IF()
and
I'd like to use one of the functions you guys have been referencing
(sumIF,
countIF, etc.). I do not know how to use compound criteria. I thought
I
could do something like =Sum(IF(A="" AND B=0 AND C=0, 1, 0)), but that
doesn't
seem to work. I see there is an AND function: AND(A="",B=0,C=0) or
something like
that. I know I could use a DCount() function, but I was hoping to
avoid using
criteria columns in my spreadsheet. Very confused.

Thanks for any help!

John












 
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 or SUMIF question Bindy Excel Worksheet Functions 1 December 2nd 09 07:45 PM
function question (sumif countif conditional) Norbert Excel Worksheet Functions 0 February 25th 08 09:37 PM
countif/sumif question Gary Keramidas Excel Programming 5 July 20th 07 06:47 PM
sumif / countif question Gary Keramidas[_2_] Excel Programming 4 June 29th 05 02:58 AM
Countif/Sumif function question psyd Excel Worksheet Functions 0 November 5th 04 06:09 AM


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