PC Review


Reply
Thread Tools Rate Thread

adding 4 smallest numbers greater than zero

 
 
Tangyteacher
Guest
Posts: n/a
 
      14th Jan 2010
I am a high school golf coach making a spreadsheet for my golfers stats using
excell 2007. I need to be able to add the 4 lowest values in a data table
that are greater than 0
Ex.
75,76,77,78,79,0,0 are the values. I need a formula that will automaticly
ignore the zero's and add the 4 smallest values. In this case it would be
75,76,77,78.

Any help would be appreciated!
Thanks!
 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      14th Jan 2010
Try this array formula**.

Assuming there are at least 4 numbers >0.

=SUM(SMALL(IF(A1:G1>0,A1:G1),{1,2,3,4}))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Tangyteacher" <(E-Mail Removed)> wrote in message
news:CA4F74F3-D67B-4D42-B1F5-(E-Mail Removed)...
>I am a high school golf coach making a spreadsheet for my golfers stats
>using
> excell 2007. I need to be able to add the 4 lowest values in a data table
> that are greater than 0
> Ex.
> 75,76,77,78,79,0,0 are the values. I need a formula that will automaticly
> ignore the zero's and add the 4 smallest values. In this case it would be
> 75,76,77,78.
>
> Any help would be appreciated!
> Thanks!



 
Reply With Quote
 
Luke M
Guest
Posts: n/a
 
      14th Jan 2010
Might be able to shorten this somehow, but this array** formula works:

=SUM(SMALL(IF(A2:A10>0,A2:A10),1),SMALL(IF(A2:A10>0,A2:A10),2),SMALL(IF(A2:A10>0,A2:A10),3),SMALL(IF(A2:A10>0,A2:A10),4))

**Array formulas must be confirmed using Ctrl+Shift+Enter, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Tangyteacher" wrote:

> I am a high school golf coach making a spreadsheet for my golfers stats using
> excell 2007. I need to be able to add the 4 lowest values in a data table
> that are greater than 0
> Ex.
> 75,76,77,78,79,0,0 are the values. I need a formula that will automaticly
> ignore the zero's and add the 4 smallest values. In this case it would be
> 75,76,77,78.
>
> Any help would be appreciated!
> Thanks!

 
Reply With Quote
 
Tangyteacher
Guest
Posts: n/a
 
      14th Jan 2010
Thanks Luke M... I really appreciate your help!

"Luke M" wrote:

> Might be able to shorten this somehow, but this array** formula works:
>
> =SUM(SMALL(IF(A2:A10>0,A2:A10),1),SMALL(IF(A2:A10>0,A2:A10),2),SMALL(IF(A2:A10>0,A2:A10),3),SMALL(IF(A2:A10>0,A2:A10),4))
>
> **Array formulas must be confirmed using Ctrl+Shift+Enter, not just Enter.
> --
> Best Regards,
>
> Luke M
> *Remember to click "yes" if this post helped you!*
>
>
> "Tangyteacher" wrote:
>
> > I am a high school golf coach making a spreadsheet for my golfers stats using
> > excell 2007. I need to be able to add the 4 lowest values in a data table
> > that are greater than 0
> > Ex.
> > 75,76,77,78,79,0,0 are the values. I need a formula that will automaticly
> > ignore the zero's and add the 4 smallest values. In this case it would be
> > 75,76,77,78.
> >
> > Any help would be appreciated!
> > Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SMALL function to find X smallest number greater than Y kittronald Microsoft Excel Worksheet Functions 6 15th Jun 2011 12:35 AM
Visual Script to find smallest number greater than 0 Jeremy Microsoft Excel Misc 3 30th Oct 2009 08:32 PM
Identifing smallest numbers M Moore Microsoft Excel Misc 1 29th Aug 2006 02:34 PM
How to add the 10 smallest numbers out of a range of 20 numbers. =?Utf-8?B?SlByZWVzaGw=?= Microsoft Excel Worksheet Functions 3 10th Jul 2005 02:01 PM
smallest numbers tarius Microsoft Excel Worksheet Functions 3 5th Jul 2004 11:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:12 AM.