+ Reply to Thread
Results 1 to 7 of 7

Lookup minimum value in a column for referred Cell

  1. #1
    Registered User
    Join Date
    07-03-2011
    Location
    Mumbai, India
    MS-Off Ver
    2007
    Posts
    18

    Lookup minimum value in a column for referred Cell

    A list is generated as per the sample workbook. There are purchase dates and respective payment dates. I want a formula to have the earliest payment date for each set of purchase dates as shown. The list can be of around 3000 rows.
    Attached Files Attached Files

  2. #2
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Re: Lookup minimum value in a column for referred Cell

    Not sure if this is the best solution, but couldn't think a better alternative right now. So if anyone has a better option, please do share. Meanwhile I will also do some brain storming at my end to find a better alternative. Please let me know if the attached book solves your purpose or not.

    Vikas B
    Attached Files Attached Files

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Lookup minimum value in a column for referred Cell

    Try this-attached
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Lookup minimum value in a column for referred Cell

    Yet another option
    //Ola

    Formula in cell E2 is an Array formula. It has to be confirmed with Ctrl+Shift+Enter not just Enter.
    Attached Files Attached Files

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Lookup minimum value in a column for referred Cell

    To all 3 responders in this thread:

    A user recently raised the point that he (she) didn't have a newer version of Excel and, therefore, couldn't open any of the xlsx files being attached. So he was missing out on all the solutions being offered. Please keep that in mind (as well as the other reasons - restrictions on downloading, etc) when attaching files without mentioning what solution they contain. By showing your formulas (or describing your approach), in addition to attaching files, more users can benefit from your ideas.

  6. #6
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Lookup minimum value in a column for referred Cell

    As per moderator request:


    =MIN($D11:INDEX(D11:$D$100,MATCH(1,IF(D11:$D$100="",1,""),0)-1))

    CSE formula-confirm Control+Shift+Enter
    Then just copy and paste to the cell you required
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-03-2011
    Location
    Mumbai, India
    MS-Off Ver
    2007
    Posts
    18

    Re: Lookup minimum value in a column for referred Cell

    I will be careful next time I upload, it will be in els format.
    I am thankful to everyone who spared their valuable time to help me. Getting cues from all of you, I managed to work out the solution exactly the way I wanted.
    I am sharing the same here.
    I used Column A as a helper column to number each set of purchases as 1, 2, 3 and so on. After putting 1 manually in A2,
    I used the code in A3:
    =IF(B3="","",IF(AND(B3<>"",B2=""),A1+1,A2))
    and copied down to get numbered each set of purchases.

    In G2, I used the code
    =IF(OR(A2="",A1=A2),"",MIN(IF(ISNUMBER($D$2:$D$35)*($A$2:$A$35=A2),$D$2:D$35)))
    Control+Shift+Enter, copied down to get the dates I wanted.
    I am attaching the file herewith.
    I am thankful to everyone once again.
    sfshah
    Attached Files Attached Files
    Last edited by sfshah; 07-09-2012 at 11:48 AM.

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Lookup minimum value in a column for referred Cell

    No, sorry sfshah, I wasn't referring to your file type. By all means upload the file type that you're using. And responders should also attach the same file type that you upload. My point was that responders should, in addition to attaching a file, mention in their posts what approach they used and, if it's formulas, show them. That way everyone can see the formulas and may have a better idea without relying on downloading.

    I'm glad you got the solution you needed. And thanks for showing it. Sorry for the confusion I caused.

    Please remember to mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Last edited by Cutter; 07-09-2012 at 11:14 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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