+ Reply to Thread
Results 1 to 10 of 10

Find minimum SUM if no minimum number in row

  1. #1
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Find minimum SUM if no minimum number in row

    I want in A1 to find minimum SUM if no minimum number in row.

    Here is example attached:

    Book1.xls
    Last edited by zbor; 12-25-2009 at 05:03 AM.

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

    Re: Find minimum SUM if no minimum number in row

    How it is? i thought minimum number always exist. For example u have thousand and thousand numbers, can't u get min number amogst them?
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Find minimum SUM if no minimum number in row

    Please Login or Register  to view this content.
    Minimum sum is 6 but it contains minimum number (1) so minimum sum is 15

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

    Re: Find minimum SUM if no minimum number in row

    think I understand

    try this one

    Please Login or Register  to view this content.
    EDIT

    I REALLY SAW AFTER POSTING

    Very funny
    Thank for greeting
    Last edited by contaminated; 12-24-2009 at 02:28 PM.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Find minimum SUM if no minimum number in row

    Someone else?

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Find minimum SUM if no minimum number in row

    In testing the formula by ContaminatedWithExcel there are instances where it returns a result although the minimum number is in the same row as the result. Not what zbor is looking for.

    I admit it's not a pretty formula given the use of volatile functions , but it seems to be working as far as I can tell. I resorted to the use of helper cells, of which the formulas you may want to consolidate into a single formula.

    =IF(OFFSET(INDIRECT(ADDRESS(MATCH(MIN($L$3:$L$12),$L$3:$L$12,0)+2,12)),0,4,1,1)=FALSE,SMALL($L$3:$L$12,1),SMALL($L$3:$L$12,2))

    EDIT: After further testing (repeatedly forcing recalculation), my solution also returns an occasional incorrect result, albeit much fewer instances.
    Last edited by Palmetto; 12-24-2009 at 07:48 PM. Reason: Add comment about formula results
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

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

    Re: Find minimum SUM if no minimum number in row

    Hey zbor, I like the hidden message.......

    You can use this array formula

    =MIN(IF(COUNTIF(OFFSET(C3:K3,ROW(C3:K12)-ROW(C3),0),M3),"",L3:L12))

    ...or this one.....

    =MIN(IF(MMULT((C3:K12=M3)+0,TRANSPOSE((COLUMN(C3:K3)>1)+0))=0,L3:L12))
    Last edited by daddylonglegs; 12-24-2009 at 08:15 PM.

  8. #8
    Registered User
    Join Date
    12-22-2009
    Location
    Damietta, Egypt
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find minimum SUM if no minimum number in row

    god! there will be always a minimum value. if you are good enough to input the same value in all the cells in arow

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Find minimum SUM if no minimum number in row

    Try this

    Please Login or Register  to view this content.
    Committed with Ctrl+Shift+Enter.

    You can also see attached file.

    Hope this help,

    WindKnife

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Find minimum SUM if no minimum number in row

    Thanks to fastest. They got their reward

+ 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