Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default Counting cells basesd on multiple criteria

Ok so i have two sheets
In SHEET 1 column A i have a list of about 1000 different alarms.
Then In SHEET 2 i have a log for 30 days with the alarms that occured in
those thirty days. The log takes up 35465 thousand rows. Column D has the
name of the alarm and Column C has if the alarm was an IN or OUT alarm.

What i want to do is in SHEET 1 column 2 display how many times each of
these 1000 alarms occured in the last 30 days but only when it was an IN
alarm.

I cant use something that refrences the name of the alarm i need a formula
that can actually refrence the cell because it would be very time consuming
to go in and type a formula for 1000 alarms.

is there a way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default Counting cells basesd on multiple criteria

=SUMPRODUCT(--(Sheet2!$D$2:$D$36000=$A2),--(Sheet2!$C$2:$C$36000="IN"))

--
HTH

Bob

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

"Bertha needs help" wrote in
message ...
Ok so i have two sheets
In SHEET 1 column A i have a list of about 1000 different alarms.
Then In SHEET 2 i have a log for 30 days with the alarms that occured in
those thirty days. The log takes up 35465 thousand rows. Column D has the
name of the alarm and Column C has if the alarm was an IN or OUT alarm.

What i want to do is in SHEET 1 column 2 display how many times each of
these 1000 alarms occured in the last 30 days but only when it was an IN
alarm.

I cant use something that refrences the name of the alarm i need a
formula
that can actually refrence the cell because it would be very time
consuming
to go in and type a formula for 1000 alarms.

is there a way to do this?



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default Counting cells basesd on multiple criteria

works great thanks

"Bob Phillips" wrote:

=SUMPRODUCT(--(Sheet2!$D$2:$D$36000=$A2),--(Sheet2!$C$2:$C$36000="IN"))

--
HTH

Bob

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

"Bertha needs help" wrote in
message ...
Ok so i have two sheets
In SHEET 1 column A i have a list of about 1000 different alarms.
Then In SHEET 2 i have a log for 30 days with the alarms that occured in
those thirty days. The log takes up 35465 thousand rows. Column D has the
name of the alarm and Column C has if the alarm was an IN or OUT alarm.

What i want to do is in SHEET 1 column 2 display how many times each of
these 1000 alarms occured in the last 30 days but only when it was an IN
alarm.

I cant use something that refrences the name of the alarm i need a
formula
that can actually refrence the cell because it would be very time
consuming
to go in and type a formula for 1000 alarms.

is there a way to do this?




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
Counting Criteria in Cells in Multiple Ranges WalterK Excel Worksheet Functions 4 May 20th 08 03:33 AM
Counting cells using multiple criteria andrew.curley Excel Worksheet Functions 4 June 12th 06 04:41 PM
Counting multiple cells using a criteria John Excel Discussion (Misc queries) 1 June 14th 05 04:51 PM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


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