+ Reply to Thread
Results 1 to 3 of 3

Sum one column to the right with a Small function

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Sum one column to the right with a Small function

    How do I get the offset of this formula to return the sum of column F after establishing the four smallest numbers in column E?

    =SUM(SMALL(E1:INDEX(E:E,MATCH(BigNum,E:E)),{1,2,3,4}))

    Also, on the array part for the smallest four, how can this be converted so it looks at cell G4 which contains the number of smallest numbers to look for. In this case, G4 contains the number 4.
    HTH
    Regards, Jeff

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Sum one column to the right with a Small function

    Well that was silly. I don't need the offset of column E, I just look at the column F for the top x, but I can't seem to find how I can make the top x variable based off of the contents from cell G4.

    G4 contains the number 4, so how to incorporate that number into...

    =SUM(LARGE(F1:F20,{1,2,3,4}))

    ...so it can be the top 4

    Any thoughts?

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Sum one column to the right with a Small function

    Ok I got it.

    I had this...

    =SUM(LARGE(F1:F20,ROW(INDIRECT("1:"&G4))))

    ...and it wasn't working until I realized it had to be commited with the Ctrl + Shift + Enter.

+ 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