+ Reply to Thread
Results 1 to 8 of 8

Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was Found

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was Found

    The MIN function could not work for me, because my data consist of zeros blank spaces and other non-numeric data. However, SMALL((AN5, AP5), FREQUENCY((AN5,AP5),{0})+1) is working for me. My problem is, when I apply the SMALL/FREREQUENCY functions I get a value. That is fine, I need that value but I also need to get a reference of the address where that small value was found since what I really need is the value in the column immediately to the left of the location where SMALL/FREQUENCY found the small value. So example, if the minimum value found by the SMALL/FREQUENCY function was found in cell C5, I also need to get the value in cell B5. How can this be done? The OFFSET does not appear to have the syntax/format to accommodate this requirement.

    Thanks.
    Last edited by RocklyV; 04-16-2013 at 10:00 AM. Reason: Wrong info

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    If this is your data in the range A2:B10...

    Data1.....0
    Data2.....0
    Data3.....63
    Data4.....[empty cell]
    Data5.....0
    Data6.....7
    Data7.....98
    Data8.....0
    Data9.....80

    This formula will return Data6:

    =INDEX(A2:A10,MATCH(SMALL(B2:B10,COUNTIF(B2:B10,0)+1),B2:B10,0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    Thanks for the reply, the problem is that my data is not contiguous; implying arrays cannot be used. Here is an actual example of the function I am using to get my initial minimum value:
    SMALL((AN5, AP5, AR5, AV5), FREQUENCY((AN5,AP5,AR5,AV5),{0})+1). Once this minimum value is determine from these set of cells (AN5, AP5, AR5, AV5), I would then like to get the value in the cell on the same row immediately to the left of where the minimum value was found.
    Thanks.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    Can you post a SMALL sample file so we can see how your data is arranged?

    SMALL = only enough data to demonstrate what you want to do!

    Make sure you tell/show us what result you expect.

  5. #5
    Registered User
    Join Date
    04-16-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    Please see the attached sample spreadsheet. The SMALL/FREQUENCY function is in L2. Think that columns are grouped in two’s. For this test, I compared columns D, F, H. Note, F2 is why MIN could not work. I used SMALL/FREQUENCY (in L2) to find the smallest value (H2) of this set. Since H2 is the smallest numeric from this test, I want to reference the value of H2 (done) but most important, I want to reference the adjacent value in G2. If D2 was the smallest value, I would need the value of D2 and C2 etc. The real data has about fifteen columns paired and I am not searching all the columns in any one instance, I am only searching a select group of columns and the group of columns are not immediately adjacent which is why arrays could not be used.

    Thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    Try this:

    =INDEX(A2:J2,MATCH(L2,A2:J2,0)-1)

  7. #7
    Registered User
    Join Date
    04-16-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    Biff,

    Thanks for the reply. The INDEX function will not work since my data is disjointed and not continuous across columns (arrays). In the attached spreadsheet, I am comparing data from columns D2, F2, H2 to determine the minimum of these three values. Note F2 value is xxxx (not numeric therefore, MIN could not work). So with the SMALL/FREQUENCY, the minimum of D2, F2 and H2 is found in H2, which is correct, and then what I am also looking for is the value in the column before H2 which is the value in G2. I do not know how to get this value. Remember my real spreadsheet has about fifteen paired columns so I will be applying SMALL/FREQUENCY to any subset of these columns. I will select the minimum and the value at the offset one column to the left of the minimum value. Please see attached.

    Thanks.
    Attached Files Attached Files

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding Minimum Value, Then locate Value to Immediate left of Cell where Minimum was F

    As long as there are no duplicates of the min value in the range the INDEX formula should work.

    Judging from the values in the sample file it looks like duplicates are not possible.

+ 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