+ Reply to Thread
Results 1 to 4 of 4

Excel formula for number selection

  1. #1
    Registered User
    Join Date
    02-11-2007
    Posts
    2

    Excel formula for number selection

    Hi

    Can I write a formula to pick 2 or 3 or 4 of the smallest numbers out of a range of 10

    Thank you

    Ernest35

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This returns the 2nd smallest value

    =SMALL(A1:A7,2)

    this returns the sum of the 3 smallest values

    =SUM(SMALL(A1:A7,{2,3,4}))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-11-2007
    Posts
    2

    Excel formula for number selection

    Hi again, so soon

    Thank you for the quick reply.

    Unfortuantly, I'm am posting with a computer that does not have Excel, so I can't confirm it works.

    However, I'm curious about the (A1:A7), if the range of numbers is 10?

    Ernest35

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    As your post was lacking info I took a random range e.g A1:A7

    If you have a range of 10 cells then use that with the large function.

    Use excel's help to learn more on the large function

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1