+ Reply to Thread
Results 1 to 7 of 7

return selected Cell ; minimze function

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    Nederland
    MS-Off Ver
    2010
    Posts
    3

    return selected Cell ; minimze function

    Hello everybody,

    I am facing the following problem; but i am not sure if it is even possible.
    within excel I made a double MIN function for example :

    Min ( Min( A1 + A2; A3 +A4 ); min (B1+B2; B3+B4) ).

    The answer for instance gives me the value 8 because

    However i want to know which combination generated 8. Is there a method so that i can get a report that the answer was for instance generated by B1+B2

    Thanks in advance

    Tom

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: return selected Cell ; minimze function

    Hi, welcome to the forum

    The only way I can think of to do that, is to have each small calc in its own cell, and test it that way
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,329

    Re: return selected Cell ; minimze function

    = Min ( Min( A1 + A2; A3 +A4 ); min (B1+B2; B3+B4) )
    This can be shortened to
    =MIN(A1+A2;A3+A4;B1+B2;B3+B4)

    May be you need the 'SOLVER' tool to get B1+B2
    I never used it so i can't help you
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    05-20-2015
    Location
    Nederland
    MS-Off Ver
    2010
    Posts
    3

    Re: return selected Cell ; minimze function

    It is a good solution. However my double min function is much bigger than stated over here so it would be take to much time;

    Thanks anyway.

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,329

    Re: return selected Cell ; minimze function

    However my double min function is much bigger
    I don't think that make any difference

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

    Re: return selected Cell ; minimze function

    Quote Originally Posted by popipipo View Post
    I don't think that make any difference
    Agreed.

    If the 'simplfied' version is an accurate represantation of what the 'real' version does, then the logic is sound.
    There's no need to NEST Min functions.

    Anyway, posting simplified versions of a formula is usually not a great idea.
    Solutions to the 'simplified' version are often difficult or impossible to apply to the 'real' version.

    I'd suggest posting a sample book with a realistic sample of data, and your expected results.

  7. #7
    Registered User
    Join Date
    05-20-2015
    Location
    Nederland
    MS-Off Ver
    2010
    Posts
    3

    Re: return selected Cell ; minimze function

    I see; i noticed that i stated the problem in a slightly different way; in that case it is not possible to do so.

+ 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. [SOLVED] Return row number of selected cell
    By zanguard80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2014, 06:42 PM
  2. [SOLVED] Function to return 2 columns based on 2 user selected criteria
    By lax2734 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-07-2013, 04:36 PM
  3. Return selected cell from Combo box
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2010, 01:27 PM
  4. Replies: 0
    Last Post: 09-27-2007, 07:22 PM
  5. Function to return # of column with min value in selected rows
    By mr_espresso in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-24-2006, 04:00 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