#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SS
 
Posts: n/a
Default Help Counting

I am trying to have a cell count based on the conditions of two other cells
on a different sheet. Lets say my sheet names are Data and Stats, and I need
a cell in my Stats page to only count cells which are on the Data sheet range
C2:C450 and equal to "ACompany" AND cells which are on the Data sheet range
G2:G450 and not null.

I know this should be easy, but I haven't worked in excel in a long time. A
followup to this question would be the same thing except the cells G2:G450
would be between two specified dates.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Help Counting

One way:

=SUMPRODUCT(--('Data'!C2:C450="ACompany"),--('Data'!G2:G450<""))


In article ,
SS wrote:

I am trying to have a cell count based on the conditions of two other cells
on a different sheet. Lets say my sheet names are Data and Stats, and I need
a cell in my Stats page to only count cells which are on the Data sheet range
C2:C450 and equal to "ACompany" AND cells which are on the Data sheet range
G2:G450 and not null.

I know this should be easy, but I haven't worked in excel in a long time. A
followup to this question would be the same thing except the cells G2:G450
would be between two specified dates.

Many Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Help Counting


So you are trying to count the number of times that both conditions are
met?

=SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G45 00))

For between dates.

=SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G45 0DATE(2006,3,1))*(Data!G2:G450<DATE(2006,3,13)))


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=522283

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SS
 
Posts: n/a
Default Help Counting

Great help guys!
This is the first time I have used this forum and was suprised with the fast
and helpful responses.
Best Regards,
SS

"SteveG" wrote:


So you are trying to count the number of times that both conditions are
met?

=SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G45 00))

For between dates.

=SUMPRODUCT((Data!C2:C450="ACompany")*(Data!G2:G45 0DATE(2006,3,1))*(Data!G2:G450<DATE(2006,3,13)))


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=522283


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
conditional counting with Excel LeicaElmar Excel Worksheet Functions 1 October 17th 05 10:23 PM
Double Counting in Pivot Tables CYB Excel Discussion (Misc queries) 0 August 11th 05 12:18 AM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM


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