+ Reply to Thread
Results 1 to 6 of 6

Creating index formula to find the Min value and heading with parameters

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    5

    Unhappy Creating index formula to find the Min value and heading with parameters

    My question is in the sheet I have provided I have relevant destination from point"A" to point "B" to meet the parameter (Weight) to match the job(Mode type) and the relevant cost (Min cost) and will need to find the heading (The Min Value supplier) that the value was found under. I tried the Index, Match, IF formulas to find a solution however it is too complicating since there is too many variables involved. If there is other ways doing this problem please advice. I have attached a sample file.
    Attached Files Attached Files

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

    Re: Creating index formula to find the Min value and heading with parameters

    Could you provide an example?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Creating index formula to find the Min value and heading with parameters

    Could you pls provide some desired input in AS column?
    How about if weight>34000, i.e 40000 in C15?
    Quang PT

  4. #4
    Registered User
    Join Date
    02-17-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Creating index formula to find the Min value and heading with parameters

    So if weight is 34000 then its best to hire a B/double load and its cheapest provider in the pool is EE company B/Double Load so the AS column should provide answer "EE B/Double Load". If weight is more than 34,000 then It needs to provide two providers with the relevant other option as well.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Creating index formula to find the Min value and heading with parameters

    I made 2 name ranges:

    Place in row 5, Ctrl-F3:

    To define Type mod arcoding to lookup table:

    TYPE=TRIM(LOOKUP(2,1/((Sheet1!$AU$5:$AU$8<Sheet1!$C5)*(Sheet1!$AW$5:$AW$8>=Sheet1!$C5)),Sheet1!$AX$5:$AX$8))

    To define Min Price:

    MIN=MIN(IF(TRIM(Sheet1!$D$4:$AR$4)=Type,IF(Sheet1!$D5:$AR5=0,"",Sheet1!$D5:$AR5),""))

    In AS5:

    =INDEX($D$3:$AR$3,LOOKUP(MATCH(Min,$D5:$AR5,0),IF($D$3:$AR$3<>"",COLUMN($D$3:$AR$3)-COLUMN($D$3)+1,"")))&" "&Type

    It still not clear to me for weight > 40000, so #N/A is returned.

    Can you give expected result in AS15?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-17-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Creating index formula to find the Min value and heading with parameters

    Hi Bebo,
    Thank you for your response on this question it works for the given parameters I'll workout how to find when there is a need for additional mode type when weight is above 40,000. Thank you

+ 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] Creating a Formula to Index/Match for Specific Data
    By fearonc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2014, 11:50 PM
  2. Creating Table of Content ( not heading / subheading )
    By davidku in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2014, 07:53 PM
  3. add in the parameters to the Find function to only find an exact match.
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 08:57 AM
  4. Use column heading and row label as sql query parameters for multiple cells
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-12-2010, 07:12 AM
  5. Find Heading & Apply Formula
    By itchock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2006, 01:01 AM

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