Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Multiple criteria - count if or sumproduct?

Hi all, hoping someone out there can help with a formula question.

I have a set of data similar to the following

A B C
D E

1 East West North East
North
2 45 40 51 35
20


Row 1 refers to the locality, and row two to the opening hours a week.

I want to be able to ask, how many places are in the east and are open less
than or equal to 40 hours a week (2 criteria), and then build on this by
asking how many places in the east are are open more than 40 hours a week and
less than 60 hours a week (3 criteria).
I have tried several versions of countif and sumproduct but all to no avail.
Would be far simpler to use countifs (as in 2007) but my employers only use
2003!
Any help very much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Multiple criteria - count if or sumproduct?

---how many places are in the east and are open less
than or equal to 40 hours a week (2 criteria),


=SUMPRODUCT(--(1:1="East"),--(2:2<=40),--(2:20))

---how many places in the east are are open more than 40 hours a week and
less than 60 hours a week (3 criteria).


=SUMPRODUCT(--(1:1="East"),--(2:240),--(2:2<60))

If this post helps click Yes
---------------
Jacob Skaria


"dizzyflossy" wrote:

Hi all, hoping someone out there can help with a formula question.

I have a set of data similar to the following

A B C
D E

1 East West North East
North
2 45 40 51 35
20


Row 1 refers to the locality, and row two to the opening hours a week.

I want to be able to ask, how many places are in the east and are open less
than or equal to 40 hours a week (2 criteria), and then build on this by
asking how many places in the east are are open more than 40 hours a week and
less than 60 hours a week (3 criteria).
I have tried several versions of countif and sumproduct but all to no avail.
Would be far simpler to use countifs (as in 2007) but my employers only use
2003!
Any help very much appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Multiple criteria - count if or sumproduct?


Try these formulas

=SUMPROUCT((A1:E1="East")*(A2:E2<=40))

and

=SUMPROUCT((A1:E1="East")*(A2:E2<60)*(A2:E240))


--
barry houdini
------------------------------------------------------------------------
barry houdini's Profile: http://www.thecodecage.com/forumz/member.php?userid=72
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=127811

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Multiple criteria - count if or sumproduct?

Hi there, thanks for your almost instant response! The 3 criteria one worked
perfectly. The 2 criteria one returned "0", until I took off the third part
of the formula, the bit that says "(2:20))", now returning expected result!

Fabulous, thanks so much for your help!!!

"Jacob Skaria" wrote:

---how many places are in the east and are open less
than or equal to 40 hours a week (2 criteria),


=SUMPRODUCT(--(1:1="East"),--(2:2<=40),--(2:20))

---how many places in the east are are open more than 40 hours a week and
less than 60 hours a week (3 criteria).


=SUMPRODUCT(--(1:1="East"),--(2:240),--(2:2<60))

If this post helps click Yes
---------------
Jacob Skaria


"dizzyflossy" wrote:

Hi all, hoping someone out there can help with a formula question.

I have a set of data similar to the following

A B C
D E

1 East West North East
North
2 45 40 51 35
20


Row 1 refers to the locality, and row two to the opening hours a week.

I want to be able to ask, how many places are in the east and are open less
than or equal to 40 hours a week (2 criteria), and then build on this by
asking how many places in the east are are open more than 40 hours a week and
less than 60 hours a week (3 criteria).
I have tried several versions of countif and sumproduct but all to no avail.
Would be far simpler to use countifs (as in 2007) but my employers only use
2003!
Any help very much appreciated.

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
SUMPRODUCT - Count Various criteria in same column (exclude other) EricB Excel Worksheet Functions 8 September 5th 08 07:44 AM
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria kazoo Excel Discussion (Misc queries) 2 August 21st 08 06:22 PM
Sumproduct multiple criteria Scott Kieta[_2_] Excel Worksheet Functions 6 May 29th 08 08:44 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 07:19 AM.

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"