+ Reply to Thread
Results 1 to 3 of 3

Tweaking a SUMIF formula

  1. #1
    Forum Contributor
    Join Date
    01-26-2008
    Posts
    124

    Tweaking a SUMIF formula

    The following formula finds the lowest five values in row 6 from column H to W. However if there are less than five values in the row the formula returns 0.
    I need to tweak it to return the smallest 5 values weather there is one or a full row of 16. Also if there are any of the same values I still want only the five lowest.

    Please Login or Register  to view this content.
    Thanks,

    Jim O
    Last edited by JOGIER; 05-30-2009 at 06:53 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Tweaking a SUMIF formula

    Try like this

    =SUMPRODUCT(SMALL(H6:W6,ROW(INDIRECT("1:"&MIN(5,COUNT(H6:W6))))))

  3. #3
    Forum Contributor
    Join Date
    01-26-2008
    Posts
    124

    Re: Tweaking a SUMIF formula

    daddylonglegs,

    That works perfect.

    Thank You.

    Jim O

+ 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