Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kev Kev is offline
external usenet poster
 
Posts: 46
Default Count functions with multiple conditions/ranges

I'm trying to count the number of instances a "house" for example in B1
falls within a "rent" value of between 20 and <32 in D1
and need to change instances to "flat" and ranges, please see example
below
Type RENT
House 58.98
Flat 31.50
Flat 36.50

answer would be count of 1 (flat with rent greater than 20 and less than
32
i'm trying to use
Sumproduct(--(B1:B500="house"),--(D1:D500="<32")),--(D1:D500="20"))
just
by reading other peop[les posts but am unable to get it to work despite
changing the formula slightly

can anyone please help, greatly appreciated
thankyou in advance


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Count functions with multiple conditions/ranges

Remove your quotes on your numerical values......
=SUMPRODUCT(--(D1:D500="House"),--(E1:E500<32),--(E1:E50020))


--
John C


"kEV" wrote:

I'm trying to count the number of instances a "house" for example in B1
falls within a "rent" value of between 20 and <32 in D1
and need to change instances to "flat" and ranges, please see example
below
Type RENT
House 58.98
Flat 31.50
Flat 36.50

answer would be count of 1 (flat with rent greater than 20 and less than
32
i'm trying to use
Sumproduct(--(B1:B500="house"),--(D1:D500="<32")),--(D1:D500="20"))
just
by reading other peop[les posts but am unable to get it to work despite
changing the formula slightly

can anyone please help, greatly appreciated
thankyou in advance


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Count functions with multiple conditions/ranges

=SUMPRODUCT(--(A2:A50="House"),--(B2:B5020),--(B2:B20<32))




--


Regards,


Peo Sjoblom

"kEV" wrote in message
...
I'm trying to count the number of instances a "house" for example in B1
falls within a "rent" value of between 20 and <32 in D1
and need to change instances to "flat" and ranges, please see example
below
Type RENT
House 58.98
Flat 31.50
Flat 36.50

answer would be count of 1 (flat with rent greater than 20 and less than
32
i'm trying to use
Sumproduct(--(B1:B500="house"),--(D1:D500="<32")),--(D1:D500="20"))
just
by reading other peop[les posts but am unable to get it to work despite
changing the formula slightly

can anyone please help, greatly appreciated
thankyou in advance




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kev Kev is offline
external usenet poster
 
Posts: 46
Default Count functions with multiple conditions/ranges

thats great thankyou both very much, however, now i would like to sum all of
the amounts that fall between 20 and 32 for each condition i.e flat, house
etc,
can anyone help
many thanks

"kEV" wrote:

I'm trying to count the number of instances a "house" for example in B1
falls within a "rent" value of between 20 and <32 in D1
and need to change instances to "flat" and ranges, please see example
below
Type RENT
House 58.98
Flat 31.50
Flat 36.50

answer would be count of 1 (flat with rent greater than 20 and less than
32
i'm trying to use
Sumproduct(--(B1:B500="house"),--(D1:D500="<32")),--(D1:D500="20"))
just
by reading other peop[les posts but am unable to get it to work despite
changing the formula slightly

can anyone please help, greatly appreciated
thankyou in advance


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
Multiple IF functions, different ranges Scott Kieta[_2_] Excel Discussion (Misc queries) 2 March 25th 08 09:10 PM
Use OFFSET and COUNT functions within Named Ranges [email protected] Excel Discussion (Misc queries) 2 October 26th 06 04:01 AM
Multiple Functions and conditions Biocellguy Excel Worksheet Functions 3 July 25th 06 09:48 PM
sum of multiple ranges andmultiple conditions... Herman56 Excel Discussion (Misc queries) 2 January 31st 06 09:19 PM
COUNTIF Statement with Multiple Conditions in Different Ranges KJA Excel Worksheet Functions 2 April 26th 05 05:14 PM


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