+ Reply to Thread
Results 1 to 6 of 6

Max Yield Formula

  1. #1
    Registered User
    Join Date
    09-25-2015
    Location
    Wesdt Greenwich, RI
    MS-Off Ver
    2013
    Posts
    6

    Question Max Yield Formula

    I have looked for a solution, but I cannot seem to find it; I might not be searching the correct terms so I apologize if this has been answered before.

    I need to figure out how many units across I can print at one time on a standard size roll. The size of the units are variable so there is a field (cell) that can be changed manually. I have an array with the standard roll sizes (6", 8", 10"). I am trying to figure out the max yield with least amount of waste.

    For example, if I need to print 3.5" units, a 6" roll will yield only 1 at a time, an 8" roll will yield 2 at a time, and a 10" roll will also yield 2 at a time (with more wast than an 8" roll). Based on the unit size and the given roll sizes, I'd like the formula to tell me I should use an 8" roll.

    I definitely consider myself an advanced Excel user, but cannot seem to figure this one out! Should I be using VBA?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Max Yield Formula

    Hi, welcome to the forum

    This got a bit messy, probably someone can think up an array formula to do this, but this seems to work...
    =IF(MIN(IF(A2>6,99,INT(6/A2))*MOD(6,A2),IF(A2>8,99,INT(8/A2))*MOD(8,A2),IF(A2>10,99,INT(10/A2))*MOD(10,A2))=IF(A2>6,99,INT(6/A2))*MOD(6,A2),6,
    IF(MIN(IF(A2>6,99,INT(6/A2))*MOD(6,A2),IF(A2>8,99,INT(8/A2))*MOD(8,A2),IF(A2>10,99,INT(10/A2))*MOD(10,A2))=IF(A2>8,99,INT(8/A2))*MOD(8,A2),8,10))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Max Yield Formula

    Hi
    Try this
    C3:C5={6,8,10}
    E3=3.5
    Use the following array formula =INDEX(C3:C5,MATCH(MAX(INT(C3:C5/$E$3)*$E$3/C3:C5),INT(C3:C5/$E$3)*$E$3/C3:C5,0))
    I hope it helps
    Regards

  4. #4
    Registered User
    Join Date
    09-25-2015
    Location
    Wesdt Greenwich, RI
    MS-Off Ver
    2013
    Posts
    6

    Re: Max Yield Formula

    Thank you Ford / Obrigado José!

    I used José's array formula as it was a lot cleaner and it works well with the roll widths I mentioned on my original post. For some reason, however, it does not calculate well when I use different roll sizes (different material).

    My example:
    Unit size: 2.5" Roll widths 3.375", 5", and 6". This should calculate to 3.375" roll with a yield of 1, however it is coming up with a roll width of 5" with a yield of 1. Any ideas?

    Also, José, would you please explain how that formula is working? If I understand exactly what is going on, I may be able to tweak it myself to account for waste between the units. Obrigado!

    Regards,
    Rui

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Max Yield Formula

    Hi Rui

    To explain further as I thought, I decided to expose the formula calculating the percentage of waste.

    See explanation in the file MaxYieldFormula.xlsx

    Regards

  6. #6
    Registered User
    Join Date
    09-25-2015
    Location
    Wesdt Greenwich, RI
    MS-Off Ver
    2013
    Posts
    6

    Re: Max Yield Formula

    Thank you again José!

    This worked perfectly (in fact the first formula you provided worked well; I was confused as I had made a modification to it and THOUGHT I removed it but had not; I apologize for my confusion!)

    Ès o maior!

    Regards,
    Rui

+ 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] Yield vs XIRR formula
    By jetablack4 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2016, 08:13 AM
  2. Help in writing formula to calculate yield of a fluid ounce product
    By jacob@thepenpoint in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-13-2014, 03:17 PM
  3. Bond Yield to Maturity using the Yield function in Excel
    By rahulk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2009, 03:32 PM
  4. formula to return payment to yield desired IRR
    By suki0522 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2008, 06:40 PM
  5. [SOLVED] [SOLVED] Have a formula yield a true blank that disconnects graph line
    By Mr. Owl in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-12-2006, 08:35 AM
  6. [SOLVED] Can I modify the YIELD formula to use a monthly frequency?
    By DDR in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2006, 07:15 PM
  7. yield function
    By Ron Rosenfeld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  8. [SOLVED] yield function
    By jeff4860 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2005, 10:05 PM

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