Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Christopher
 
Posts: n/a
Default Count cells with specific values in the cells next to them?

I have two columns similar to below:

Status Days Overrun
Released 0
Released 5
Planning 0
Build 1

I am trying to count up the number of projects (rows) that are released and
have 0 days overrun. I can use COUNTIF to count the number of Days Overrun
cells that equal zero. But what I can't seem to do is to only count the Days
Overrun items that have been Released based on the cell value right next to
it. Does anyone know of a way to do this? It seems similar to a SQL Query
WHERE clause but I'm new to using functions in this way. Thank you so much I
appreciate it!

Christopher


  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Try this, Christopher:
http://www.officearticles.com/excel/...ft_excel.h tm
************
Anne Troy
www.OfficeArticles.com

"Christopher" wrote in message
...
I have two columns similar to below:

Status Days Overrun
Released 0
Released 5
Planning 0
Build 1

I am trying to count up the number of projects (rows) that are released
and
have 0 days overrun. I can use COUNTIF to count the number of Days
Overrun
cells that equal zero. But what I can't seem to do is to only count the
Days
Overrun items that have been Released based on the cell value right next
to
it. Does anyone know of a way to do this? It seems similar to a SQL
Query
WHERE clause but I'm new to using functions in this way. Thank you so
much I
appreciate it!

Christopher




  #3   Report Post  
bj
 
Posts: n/a
Default

try sumproduct()
=sumproduct(--(statusrange = "Released"),--(overunrange = 0))
the arrays in eacch section must be the same size, but cannot be the
shorthand for full columns or rows(A:A won't work)
the --( changes the logical true false to a numeric 1 0

"Christopher" wrote:

I have two columns similar to below:

Status Days Overrun
Released 0
Released 5
Planning 0
Build 1

I am trying to count up the number of projects (rows) that are released and
have 0 days overrun. I can use COUNTIF to count the number of Days Overrun
cells that equal zero. But what I can't seem to do is to only count the Days
Overrun items that have been Released based on the cell value right next to
it. Does anyone know of a way to do this? It seems similar to a SQL Query
WHERE clause but I'm new to using functions in this way. Thank you so much I
appreciate it!

Christopher


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 unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM
paste special | values should work with merged cells PastingSpecial Excel Discussion (Misc queries) 1 June 20th 05 06:51 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Count how many different text values in an array. OVERLOAD Excel Worksheet Functions 3 April 14th 05 04:12 PM
Function to list values of last 3 non-blank cells in a vertical bl ANJ Excel Worksheet Functions 1 April 14th 05 12:53 AM


All times are GMT +1. The time now is 04:08 AM.

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"