+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    06-25-2009
    Location
    Spokane, WA
    MS-Off Ver
    Excel 2003
    Posts
    7

    "small" function

    I am creating a golf handicap formula, the number of scores used is based on the number of rounds played. I have set up a table with the values to use a vlookup to see how many scores it should use. To complete the handicap formula i need to average the scores and then multiply by .96. The formula i am using is =(AVERAGE(SMALL(chEntries,{})))*(0.96) The problem is the "k" area of the "small" function does not seem to allow a vlookup function to provide the {1,2,3,4} or however many scores i am trying to enter. Does anyone know a way around this or maybe a different function that would work better?

    Thank you for your help,

    Ian

  2. #2
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,335

    Re: "small" function

    Try
    SMALL(...,COLUMN(INDIRECT("1:20")))
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    9,493

    Re: "small" function

    I don't think you'll get the correct result with COLUMN, try ROW..............

  4. #4
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,335

    Re: "small" function

    I think it depends on the table
    I have used ROW() when data were stored by columns. I didn't get the result I needed. When I replaced it with COLUMN() I got what I want....
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  5. #5
    Registered User
    Join Date
    06-25-2009
    Location
    Spokane, WA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: "small" function

    That did not seem to work correctly... Attached is the file I am working on. The formula should be in the data sheet B2. You will find the Vlookup formula in B488, that number determines how many of the Course Handicaps (scores) to average.
    Attached Files Attached Files

  6. #6
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    9,493

    Re: "small" function

    You can use this formula

    =AVERAGE(SMALL(chEntries,ROW(INDIRECT("1:"&B488))))*0.96

    This is an "array formula" that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar

  7. #7
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,335

    Re: "small" function

    Maybe this one in B1 of DATA sheet

    =(AVERAGE(IF(chEntries<>"",SMALL(chEntries,COLUMN(chEntries)-COLUMN(A8)),""))*(0.96))
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  8. #8
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,335

    Re: "small" function

    I thinl I misunderstood...
    Sorry
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  9. #9
    Registered User
    Join Date
    06-25-2009
    Location
    Spokane, WA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: "small" function

    Quote Originally Posted by daddylonglegs View Post
    You can use this formula

    =AVERAGE(SMALL(chEntries,ROW(INDIRECT("1:"&B488))))*0.96

    This is an "array formula" that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar
    This did not seem to work correctly, when i fill in the "K" section of the "small" function with {1,2,3,4} I get a different result then your formula. Attached is the most updated spreadsheet.
    Attached Files Attached Files

  10. #10
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: "small" function

    {=AVERAGE(SMALL(chEntries,ROW(INDIRECT("1:"&B488))))*0.96}
    it should look like that
    see my sig for how to enter arrays
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  11. #11
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    9,493

    Re: "small" function

    As Martin says, my suggested formula needs to be "array entered".

    There's a difference when you use {1,2,3,4}, that doesn't need "array entering" so you get the correct result without it. When you replace the "array constant" {1,2,3,4} with a "calculated array" like ROW(INDIRECT("1:"&B488)) then you need CSE.......

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.2.0