+ Reply to Thread
Results 1 to 5 of 5

How to return the lowest value of a series of columns when matching a record

Hybrid View

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to return the lowest value of a series of columns when matching a record

    Hey Guys

    I know it is probably possible to do this in excel 2010 with formulas, but I have no idea where to start! This is my scenario:

    I have 2 sheets:

    On sheet 1, I want to match column A with column A in sheet 2 (like a vlookup), however what I want to return is the tricky part:
    Sheet 2 has 7 additional columns next to column A with numerical data in it, when a match is made from Sheet 1 Col A to Sheet 2 Col A, I want to return the HEADER of one of the additional 7 columns of data, that has the lowest value for that record.

    For eg. if a match is made, the lowest value is then searched for in the additional 7 columns in that record, and the header for the column with the lowest value is returned.

    Can anyone give me some guidance as to how to go about doing this?

    Any help will be appreciated, thanks
    Last edited by Ozzy24; 05-10-2013 at 01:38 AM. Reason: Title error

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

    Re: Formula for this task

    Can you post a xls sample that would help
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for this task

    I used this formula in Col B with data in Sheet2

    =INDEX(Sheet2!$B$1:$H$1, MATCH(MIN(INDEX(Sheet2!$B$2:$H$9,MATCH(A2,Sheet2!$A$2:$A$9,0),)),INDEX(Sheet2!$B$2:$H$9,MATCH(A2,Sheet2!$A$2:$A$9,0),),0))

    Is that what you are looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    05-09-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula for this task

    ChemistB that was EXACTLY what I was looking for, thanks so much man!!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Formula for this task

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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