+ Reply to Thread
Results 1 to 7 of 7

How to make Excel look at table 1 and pick a value from table 2 based on condition.

  1. #1
    Registered User
    Join Date
    01-22-2012
    Location
    treter
    MS-Off Ver
    Excel 2007
    Posts
    23

    Lightbulb How to make Excel look at table 1 and pick a value from table 2 based on condition.

    Hi all,

    I have three lines producing three different products, the prodcut can be produced on two or more lines, but the problem is that, each line has different performance per product.

    Example: line 1 can produce X1 at a rate of 35 ton/hr and X2 @ 40 Ton/hr and x3 @ 36 t/h. so the capacity of this line is calculated based on the best demonstarted performance when producing combined prodcuts in one year. But look to the capacity if the line is producing only the highest two grades (X2 & X3 ) , then the line will have higher yearly production (higher capacity). Solver we you run it it will asume that all products are produced at the same rate
    In the attached file, you will see a simple example using solver, so the problem is that I need excel or solver when it starts to allocate the yearly production per line; first to look at the highest rate for each product and to start the production of that product first untill I the grade reached/exceed the planned amount or the line capacity, then it should look to the second highest and so on. Please put in mind that the best demonstarted rates are per hour.

    Thanks.

    Revised Example..xlsx
    Last edited by nlpman; 03-16-2012 at 07:28 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to make Excel look at table 1 and pick a value from table 2 based on condition.

    Hi nlpman,

    After reading your description in the attached workbook, I got confused about the approach using which you are filling data from Table 1 & 2 to Table 3. Please explain little more just on the approach using which the table 3 is getting filled. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-22-2012
    Location
    treter
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to make Excel look at table 1 and pick a value from table 2 based on condition.

    Dear DILIP,

    First, i would like to thank you very much for your response and willingness to support.

    please find the modified table.

    Revised Example..xlsx

    Regards,

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to make Excel look at table 1 and pick a value from table 2 based on condition.

    Hi nlpman,

    See the attached file where I have done the solver using Excel functions plus little VB Macros
    look into the column P and T where T1 has a little smiley powered by a little macro. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-22-2012
    Location
    treter
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to make Excel look at table 1 and pick a value from table 2 based on condition.

    Wooow, Thank you sir.

    Very smart way.

    What about the remaining transitions T2 T3 and T4.

    Please note that table #1 the location of the 0 and 1 is changing always but table 3 should read the corresponding value from table # 2 always.

    So table 1 is changing every year and accordingly table 3 will be changing as well, BUT table 2 will remain as is.

    Also, please note that (and to make it easy) i'm interested to get the total losses per period only and I don't care about the location. So you can tell me that P1= Sum(T1.T2,T3,T4) as one value.

    Thx

    Nlpman
    Last edited by nlpman; 03-11-2012 at 05:37 AM.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to make Excel look at table 1 and pick a value from table 2 based on condition.

    You are welcome nlpman...

    Regarding remaining transitions like T2, T3 and T4...or for any number of tables, you can use the solution provided, as a solver where you can replace the existing table with the new tables and get the output.


    Regarding total losses, you can put a sum formula in Table 3 itself and there you can get the required sum. Thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    01-22-2012
    Location
    treter
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to make Excel look at table 1 and pick a value from table 2 based on condition.

    Thank you again,

    T2, T3 and T4 are part of the whole answer, so in T1 we should see one value because we have one transition between X1 and X3. In T2 we should see 3 values and so on. the table created by you should be similar to the one I provide to represent the production plan.

    So is your answer is only part of the problem of for the whole.

    Thank you again.

    Regards,

+ 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