+ Reply to Thread
Results 1 to 16 of 16

MinIFS() for older versions of excel help.

  1. #1
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    MinIFS() for older versions of excel help.

    After 2 hours this morning trying to solve this, I turn to those with a clearer mind.

    I'm looking for a formula that would work like the new 2016 MinIFS function.

    I have groups of 4 golfers who are on two different teams. I need to give each golfer the Min score for their team in each group of 4 players. I need this formula in cell A2 so I can pull it down for all players.

    I worked on an array solution this morning and kept getting zeros, not being able to make zero go to blank.

    See the attached and the yellow cells (pulled down to the bottom) need the formula.

    MinIFS function for older versions Help.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: MinIFS() for older versions of excel help.

    Are you talking about sth like this ?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and CSE

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: MinIFS() for older versions of excel help.

    Hi Marvin,

    you can use this array* formula in D2:

    =MIN(IF(($A$2:$A$48=A2)*($B$2:$B$48=B2)*($C$2:$C$48<>0),$C$2:$C$48))

    *Use CSE to commit, as I'm sure you know.

    The term in red isn't strictly needed if all the data in column C is above zero, but I extended the ranges (shown in blue) to include the null data at the bottom just to check it works okay with larger ranges.

    Hope this helps.

    Pete

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: MinIFS() for older versions of excel help.

    Right Pete, I forgot about 0 values

    but: kept getting zeros, not being able to make zero go to blank

    If I understand Marivn want blank not zero
    so If(formula=0,"",formula) I think.

    But maybe I'm wrong (English isn't my native lang)
    Last edited by sandy666; 05-12-2016 at 05:16 PM.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MinIFS() for older versions of excel help.

    Ok, this one should kill all zeros
    Array formula must be entered with CSE
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: MinIFS() for older versions of excel help.

    Great answers. After searching the net for more here are possible answers.
    CSE type answers are:

    =MIN(IF(($A$2:$A$45=A2)*($B$2:$B$45=B2)*($C$2:$C$45<>0),$C$2:$C$45)) - Pete

    =IFERROR(1/(1/MIN(IF((B$2:B$48=B2)*(A$2:A$48=A2),C$2:C$48))),"") - AlKey

    =MIN(IF($A$2:$A$45=A2,IF($B$2:$B$45=B2,$C$2:$C$45,""),"")) - net search

    Non CSE answer is:

    =SUMPRODUCT(MIN($C$2:$C$45*(($A$2:$A$45=A2)*($B$2:$B$45=B2)*-10+11))) - net search

    Thanks so much for the replies. I like how AlKey creates blanks using the division error and the IfError( ,"") combo.

    I think I'll go with the nested if CSE answer because my brain works like that. Why couldn't I see that a few hours ago??

    Thanks again to all who replied. Any better answers than the above????

    MinIFS function for older versions answers.xlsx

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MinIFS() for older versions of excel help.

    Glad to be of help Marvin. Thanks for the feedback

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: MinIFS() for older versions of excel help.

    Hi Guys,

    I spoke too soon and couldn't make any of the possible answers work when I tried to pull them across columns. See the revised problem that is what I really need. Sorry for the first question. I must be on an off day as most of my day has been spent on this problem....

    See the attached for the sample. I need to put a formula in the yellow cell and pull it down and across to fill in 18 columns. I can do it if I can get the first 3.

    MinIFS function for older versions Now Across.xlsx

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: MinIFS() for older versions of excel help.

    using AlKey's formula :
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and CSE oc

    if I understand well

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: MinIFS() for older versions of excel help.

    Just a matter of setting the $ signs correctly - put this in G2:

    =MIN(IF(($A$2:$A$45=$A2)*($B$2:$B$45=$B2)*(C$2:C$45<>0),C$2:C$45))

    using CSE. Then copy across and down as required.

    Hope this helps.

    Pete

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: MinIFS() for older versions of excel help.

    Hi Guys,

    I spoke too soon and couldn't make any of the possible answers work when I tried to pull them across columns. See the revised problem that is what I really need. Sorry for the first question. I must be on an off day as most of my day has been spent on this problem....

    See the attached for the sample. I need to put a formula in the yellow cell and pull it down and across to fill in 18 columns. I can do it if I can get the first 3.

    Attachment 460488

  12. #12
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MinIFS() for older versions of excel help.

    Since the title of the thread is "MinIfs for older versions of Excel"
    Can you attach a book that shows the actual Minifs working as you desire?
    That would make it much easier to work out an alternative.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: MinIFS() for older versions of excel help.

    Post #11 is exactly the same as #8 so I think it's something wrong with server or forum scripts.

  14. #14
    Registered User
    Join Date
    08-30-2020
    Location
    Vietnam
    MS-Off Ver
    2019
    Posts
    1

    Re: MinIFS() for older versions of excel help.

    hi Marvin,

    i would to ask, in Non-CSE answer: what mean "-10+11" ?

    thank you

  15. #15
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: MinIFS() for older versions of excel help.

    Quote Originally Posted by hoangtan1312 View Post
    i would to ask, in Non-CSE answer: what mean "-10+11" ?
    Hello, welcome!
    the whole pic is
    ($A$2:$A$45=A2)*($B$2:$B$45=B2)*-10+11
    generate list of 1(where column A=A2 and column B=B2) and 11.
    Then multiply to C2:C45.
    As a result, which value in C2:C45 with column A and B those do not match A2 and B2, will be 11 time greater than the others, and kicked out of the results by MIN function.
    Quang PT

  16. #16
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: MinIFS() for older versions of excel help.

    Because of Sumproduct goes wrong if:
    Score is small enough that *11 is still smallest.
    In attachment: C5=0.01 then F2=0.11 (expected to be: C4=4)
    That's why the other helper (hoangtan 1312) 'd like to dig it up

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Simulating conditions of older Excel versions
    By chengafni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2016, 10:21 AM
  2. Drop-down lists in older versions of Excel
    By nclark52 in forum Excel General
    Replies: 1
    Last Post: 09-29-2015, 05:52 PM
  3. [SOLVED] Code takes 10 sec to run in excel 2010 but only 1 sec in older versions, why
    By p1awn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2013, 12:07 AM
  4. Replies: 1
    Last Post: 01-23-2013, 08:03 PM
  5. [SOLVED] How can I verify that an Excel file will work with older versions
    By Tony English in forum Excel General
    Replies: 3
    Last Post: 01-30-2006, 11:00 AM
  6. [SOLVED] Using Older versions of ms excel with 2003
    By BassJay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 02:05 PM
  7. Older versions of Excel
    By Jaygirl44 in forum Excel General
    Replies: 0
    Last Post: 05-13-2005, 06:21 PM

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