+ Reply to Thread
Results 1 to 3 of 3

Get cell in the same column as the minimum number in row

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Get cell in the same column as the minimum number in row

    Heya!

    I have some troubles finding a function for this. I have a large matrix of numbers representing the cost of different quantities in the columns and products in the rows. I want to minimize the costs and get the quantity connected to that value, i.e. first entry in the same column.

    I thought I would be able to use something like =column(min(array)).
    But that doesn't seem to work.
    Any ideas?

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Get cell in the same column as the minimum number in row

    Hello Lustig,

    Welcome to the forum!

    If you can attach a dummy file with the desired result, it would be help.

    Anyway, assume A2 to down starts the products.
    B1:H1 is Quantity columns, So use this in I2 & copy down.

    =INDEX(B$1:H$1,MATCH(MIN(B2:H2),B2:H2,0))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Get cell in the same column as the minimum number in row

    Quote Originally Posted by Haseeb A View Post
    Hello Lustig,

    Welcome to the forum!

    If you can attach a dummy file with the desired result, it would be help.

    Anyway, assume A2 to down starts the products.
    B1:H1 is Quantity columns, So use this in I2 & copy down.

    =INDEX(B$1:H$1,MATCH(MIN(B2:H2),B2:H2,0))
    Thank you! This worked perfectly

+ 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