Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default greater than less than

How do I insert (F2:F1050) into the formula? Percentage of numbers between
50 and 100

SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b")

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default greater than less than

Try

=SUMPRODUCT((M2:M10="b")*(F2:F1050)*(F2:F10<100))/COUNTIF(M2:M10,"b")

Mike

"Rene" wrote:

How do I insert (F2:F1050) into the formula? Percentage of numbers between
50 and 100

SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b")

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default greater than less than

Hi,

Or to continue using the -- approach

=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100)*(--(F2:F1050))/COUNTIF(M2:M10,"b"))

--
Thanks,
Shane Devenshire


"Rene" wrote:

How do I insert (F2:F1050) into the formula? Percentage of numbers between
50 and 100

SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b")

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default greater than less than

Both returned 0% when it should of returned 20%

"ShaneDevenshire" wrote:

Hi,

Or to continue using the -- approach

=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100)*(--(F2:F1050))/COUNTIF(M2:M10,"b"))

--
Thanks,
Shane Devenshire


"Rene" wrote:

How do I insert (F2:F1050) into the formula? Percentage of numbers between
50 and 100

SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b")

Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default greater than less than

If you've got the wrong answer, then presumably your data values aren't what
you thought they were, or your original formula wasn't what you needed for
your purpose. What values are in M2:M10 and in F2:F10?

The formula might be clearer as
=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100),--(F2:F1050))/COUNTIF(M2:M10,"b"),or as =SUMPRODUCT((M2:M10="b")*(F2:F10<100)*(F2:F1050))/COUNTIF(M2:M10,"b")but the result will be the same as Shane's if the data is good.Also, I think you meant "should have", rather than "should of".--David Biddulph"Rene" wrote in ... Both returned 0% when it should of returned 20% "ShaneDevenshire" wrote: Hi, Or to continue using the -- approach=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100)*(--(F2:F1050))/COUNTIF(M2:M10,"b")) -- Thanks, Shane Devenshire "Rene" wrote: How do I insert (F2:F1050) into the formula? Percentage of numbersbetween 50 and 100 SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b") Thanks in advance.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default greater than less than

umm...my apologies.

I changed the data. It works. Averageif works, but I haven't solved MIN

=AVERAGEIF(M2:M10,"b",F2:F10)




"David Biddulph" wrote:

If you've got the wrong answer, then presumably your data values aren't what
you thought they were, or your original formula wasn't what you needed for
your purpose. What values are in M2:M10 and in F2:F10?

The formula might be clearer as
=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100),--(F2:F1050))/COUNTIF(M2:M10,"b"),or as =SUMPRODUCT((M2:M10="b")*(F2:F10<100)*(F2:F1050))/COUNTIF(M2:M10,"b")but the result will be the same as Shane's if the data is good.Also, I think you meant "should have", rather than "should of".--David Biddulph"Rene" wrote in ... Both returned 0% when it should of returned 20% "ShaneDevenshire" wrote: Hi, Or to continue using the -- approach=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100)*(--(F2:F1050))/COUNTIF(M2:M10,"b")) -- Thanks, Shane Devenshire "Rene" wrote: How do I insert (F2:F1050) into the formula? Percentage of numbersbetween 50 and 100 SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b") Thanks in advance.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default greater than less than

Hi,

There are advantages in 2007!

--
Thanks,
Shane Devenshire


"Rene" wrote:

umm...my apologies.

I changed the data. It works. Averageif works, but I haven't solved MIN

=AVERAGEIF(M2:M10,"b",F2:F10)




"David Biddulph" wrote:

If you've got the wrong answer, then presumably your data values aren't what
you thought they were, or your original formula wasn't what you needed for
your purpose. What values are in M2:M10 and in F2:F10?

The formula might be clearer as
=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100),--(F2:F1050))/COUNTIF(M2:M10,"b"),or as =SUMPRODUCT((M2:M10="b")*(F2:F10<100)*(F2:F1050))/COUNTIF(M2:M10,"b")but the result will be the same as Shane's if the data is good.Also, I think you meant "should have", rather than "should of".--David Biddulph"Rene" wrote in ... Both returned 0% when it should of returned 20% "ShaneDevenshire" wrote: Hi, Or to continue using the -- approach=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100)*(--(F2:F1050))/COUNTIF(M2:M10,"b")) -- Thanks, Shane Devenshire "Rene" wrote: How do I insert (F2:F1050) into the formula? Percentage of numbersbetween 50 and 100 SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b") Thanks in advance.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default greater than less than

I'm using 2007

"ShaneDevenshire" wrote:

Hi,

There are advantages in 2007!

--
Thanks,
Shane Devenshire


"Rene" wrote:

umm...my apologies.

I changed the data. It works. Averageif works, but I haven't solved MIN

=AVERAGEIF(M2:M10,"b",F2:F10)




"David Biddulph" wrote:

If you've got the wrong answer, then presumably your data values aren't what
you thought they were, or your original formula wasn't what you needed for
your purpose. What values are in M2:M10 and in F2:F10?

The formula might be clearer as
=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100),--(F2:F1050))/COUNTIF(M2:M10,"b"),or as =SUMPRODUCT((M2:M10="b")*(F2:F10<100)*(F2:F1050))/COUNTIF(M2:M10,"b")but the result will be the same as Shane's if the data is good.Also, I think you meant "should have", rather than "should of".--David Biddulph"Rene" wrote in ... Both returned 0% when it should of returned 20% "ShaneDevenshire" wrote: Hi, Or to continue using the -- approach=SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100)*(--(F2:F1050))/COUNTIF(M2:M10,"b")) -- Thanks, Shane Devenshire "Rene" wrote: How do I insert (F2:F1050) into the formula? Percentage of numbersbetween 50 and 100 SUMPRODUCT(--(M2:M10="b"),--(F2:F10<100))/COUNTIF(M2:M10,"b") Thanks 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
Greater than # but less than # ph3nom3nalwoman Excel Worksheet Functions 3 May 26th 08 08:47 PM
If sum greater than 12 use 12 Smudge Excel Discussion (Misc queries) 7 April 26th 07 12:22 PM
if value is greater than # * by 20% if less * by 40 sypher New Users to Excel 1 November 9th 06 06:10 PM
Greater Than but Less than KaraGilsdorf Excel Worksheet Functions 5 October 18th 06 08:42 PM
IF greater than Zero dtruelove Excel Worksheet Functions 6 September 21st 06 03:06 PM


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