Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
bman342
 
Posts: n/a
Default Help creating Formula (or macro)

I have a range of five numbers, say A1:A5.
I want to identify the three lowest numbers in that range,
and then return the sum of those three numbers.
Was trying to use sumif, but could not figure it out.

I then set up a simple (follow me) macro which copied the range, pasted the
values,
then sorted, and then I just added the bottom three cells. That works fine,
except I have 30 such ranges, and cannot now figure out how to step the macro
to the next range (it keeps returning to the original range), hence why I am
trying to do this through a formula.

Any help would be appreciated.

-b
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Help creating Formula (or macro)

Hi!

Try this:

=SUM(SMALL(A1:A5,{1,2,3}))

Biff

"bman342" wrote in message
...
I have a range of five numbers, say A1:A5.
I want to identify the three lowest numbers in that range,
and then return the sum of those three numbers.
Was trying to use sumif, but could not figure it out.

I then set up a simple (follow me) macro which copied the range, pasted
the
values,
then sorted, and then I just added the bottom three cells. That works
fine,
except I have 30 such ranges, and cannot now figure out how to step the
macro
to the next range (it keeps returning to the original range), hence why I
am
trying to do this through a formula.

Any help would be appreciated.

-b



  #3   Report Post  
Posted to microsoft.public.excel.misc
bman342
 
Posts: n/a
Default Help creating Formula (or macro)

Biff:

Works like a charm, thanks so much.

-b

"Biff" wrote:

Hi!

Try this:

=SUM(SMALL(A1:A5,{1,2,3}))

Biff

"bman342" wrote in message
...
I have a range of five numbers, say A1:A5.
I want to identify the three lowest numbers in that range,
and then return the sum of those three numbers.
Was trying to use sumif, but could not figure it out.

I then set up a simple (follow me) macro which copied the range, pasted
the
values,
then sorted, and then I just added the bottom three cells. That works
fine,
except I have 30 such ranges, and cannot now figure out how to step the
macro
to the next range (it keeps returning to the original range), hence why I
am
trying to do this through a formula.

Any help would be appreciated.

-b




  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Help creating Formula (or macro)

You're welcome. Thanks for the feedback!

Biff

"bman342" wrote in message
...
Biff:

Works like a charm, thanks so much.

-b

"Biff" wrote:

Hi!

Try this:

=SUM(SMALL(A1:A5,{1,2,3}))

Biff

"bman342" wrote in message
...
I have a range of five numbers, say A1:A5.
I want to identify the three lowest numbers in that range,
and then return the sum of those three numbers.
Was trying to use sumif, but could not figure it out.

I then set up a simple (follow me) macro which copied the range, pasted
the
values,
then sorted, and then I just added the bottom three cells. That works
fine,
except I have 30 such ranges, and cannot now figure out how to step the
macro
to the next range (it keeps returning to the original range), hence why
I
am
trying to do this through a formula.

Any help would be appreciated.

-b






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
Macro or Custom button to fill in the same formula TJ Excel Worksheet Functions 4 March 15th 06 10:33 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Macro Formula revision? Mark Excel Worksheet Functions 1 November 28th 04 01:43 AM


All times are GMT +1. The time now is 03:25 AM.

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"