Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default SUMPRODUCT Can I use less than or equal to with this function

Hi there,

I'm using this formula but can I amend it so that it counts less than or
equal to 35 rather thatn just 35?

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010=35))

Grateful for any help

Cheers
--
Mifty
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: SUMPRODUCT Can I use less than or equal to with this function

Hi Mifty,

Yes, you can definitely use less than or equal to with the SUMPRODUCT function. To modify your formula to count values less than or equal to 35, you can use the less than or equal to operator (<=) instead of the equal to operator (=) in the last criteria of your formula.

Here's the modified formula:
  1. =SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010<=35))

This formula will count all the values in column K that meet the following criteria:
  1. The corresponding value in column C equals the value in cell R2
  2. The corresponding value in column E equals "Mat"
  3. The corresponding value in column F equals "AT1"
  4. The corresponding value in column K is less than or equal to 35
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default SUMPRODUCT Can I use less than or equal to with this function

Try this:

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010<=35))

I prefer this method. Though the result is the same.
=SUMPRODUCT(--($C$2:$C$16010=R2),--($E$2:$E$16010="Mat"),--($F$2:$F$16010="AT1"),--($K$2:$K$16010<=35))

HTH,
Paul

--

"Mifty" wrote in message
...
Hi there,

I'm using this formula but can I amend it so that it counts less than or
equal to 35 rather thatn just 35?

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010=35))

Grateful for any help

Cheers
--
Mifty



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT Can I use less than or equal to with this function

Su

...........*($K$2:$K$16010<=35))

However, if there are any empty cells in that range they will meet the
condition of <=35. If you don't want the empty cells counted then you need
to add another test:

...........*($K$2:$K$16010<=35)*($K$2:$K$16010<"" ))


--
Biff
Microsoft Excel MVP


"Mifty" wrote in message
...
Hi there,

I'm using this formula but can I amend it so that it counts less than or
equal to 35 rather thatn just 35?

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010=35))

Grateful for any help

Cheers
--
Mifty



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default SUMPRODUCT Can I use less than or equal to with this function

Thank you Paul :-)

Cheers
--
Mifty


"PCLIVE" wrote:

Try this:

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010<=35))

I prefer this method. Though the result is the same.
=SUMPRODUCT(--($C$2:$C$16010=R2),--($E$2:$E$16010="Mat"),--($F$2:$F$16010="AT1"),--($K$2:$K$16010<=35))

HTH,
Paul

--

"Mifty" wrote in message
...
Hi there,

I'm using this formula but can I amend it so that it counts less than or
equal to 35 rather thatn just 35?

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010=35))

Grateful for any help

Cheers
--
Mifty






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default SUMPRODUCT Can I use less than or equal to with this function

You're welcome. However, please make note of T. Valko's point about column
K values that are either empty.

--

"Mifty" wrote in message
...
Thank you Paul :-)

Cheers
--
Mifty


"PCLIVE" wrote:

Try this:

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010<=35))

I prefer this method. Though the result is the same.
=SUMPRODUCT(--($C$2:$C$16010=R2),--($E$2:$E$16010="Mat"),--($F$2:$F$16010="AT1"),--($K$2:$K$16010<=35))

HTH,
Paul

--

"Mifty" wrote in message
...
Hi there,

I'm using this formula but can I amend it so that it counts less than
or
equal to 35 rather thatn just 35?

=SUMPRODUCT(($C$2:$C$16010=R2)*($E$2:$E$16010="Mat ")*($F$2:$F$16010="AT1")*($K$2:$K$16010=35))

Grateful for any help

Cheers
--
Mifty






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 not equal to... Brigitte Excel Worksheet Functions 2 July 24th 06 06:19 PM
SUMPRODUCT - How can I use does not equal in an array? DG Excel Worksheet Functions 3 December 30th 05 06:53 PM
GREATER OR EQUAL TO BUT LESS THAN Problem using Sumproduct Ragdyer Excel Worksheet Functions 0 September 29th 05 05:39 AM
SumProduct - Value ISN'T equal to Andibevan Excel Discussion (Misc queries) 1 May 19th 05 05:04 PM
IF function... not equal to cj_singer Excel Worksheet Functions 0 March 24th 05 03:37 PM


All times are GMT +1. The time now is 08:16 PM.

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"