Discussion Re: Need help figuring an Excel formula for order fulfillment in Excel
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226547#M93832
An image is helpful to a very limited extent. Can you post a copy of the actual spreadsheet? Otherwise you're, in effect, asking us to recreate one from the image...Sun, 21 Mar 2021 20:43:18 GMTmathetes2021-03-21T20:43:18ZNeed help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226427#M93829
<P>Please see attached images of the 2 spreadsheets containing data..</P><P> </P><P>Essentially what I want to do is calculate in row "T" how many trays total needed to fulfill the orders placed by customers, per crop.</P><P> </P><P>On the "Crop Data" sheet you can see the average yield per tray of Amaranth, Red Garnet is 500g, and 450g for Crop 2.</P><P>It is not on the spreadsheet but:</P><P>Small(S) contains 100g of crop</P><P>Medium(M) contains 150g of crop</P><P>Large(L) contains 200g of crop</P><P> </P><P>Assuming more customers were added and ordered perhaps the same crops or different, my goal is to calculate how many total trays per crop ordered I will need to produce to fulfill the weights required. </P><P> </P><P>I thought perhaps I would need to give each size (S, M, L) their respective values(100, 150, 200) somehow and multiply them by the "Qty". I am just unsure how to formulate that. Especially to calculate each crop individually like I would prefer. </P><P> </P><P>Hopefully I have provided enough information for those trying to help. More info if needed.</P><P>Thanks in advance!</P>Sun, 21 Mar 2021 19:01:38 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226427#M93829coltenpratt2021-03-21T19:01:38ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226547#M93832
An image is helpful to a very limited extent. Can you post a copy of the actual spreadsheet? Otherwise you're, in effect, asking us to recreate one from the image...Sun, 21 Mar 2021 20:43:18 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226547#M93832mathetes2021-03-21T20:43:18ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226753#M93846
<P><LI-USER uid="425987"></LI-USER> Of course my apologies. Attached is the workbook containing the sheets. Thanks for your response!</P>Mon, 22 Mar 2021 01:33:41 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2226753#M93846coltenpratt2021-03-22T01:33:41ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2227906#M93920
<P><LI-USER uid="999784"></LI-USER> </P><P> </P><P>I've made a start, but came up against my own ignorance. So let me tell you what I have done, and then pose the question about what isn't at all clear to me.</P><P> </P><OL><LI>I radically changed your "Crops" sheet--don't worry, I left the original untouched. This is essentially a database, however, and the conventional way to do databases is with the "entities" down the vertical axis, and the "attributes" of those entities across the horizontal. You'd done it the other way around. Either way is workable, but I'd just point out that doing it the conventional way allows for a large number of entities to be included and still have the table be intelligible. I don't know how many different crop categories you're going to be working with, but I seriously recommend keeping my <STRONG>Crops2</STRONG> table going. (And now that it's an official table, you can add rows and they'll automatically be included in any LOOKUP or INDEX/MATCH formulas).</LI><LI>I added the Small/Medium/Large tray sizes to that table. Assuming the numbers will vary for different crops, this will enable the various values to be recognized by any formulas that refer to them.</LI></OL><P> </P><P>But now we come to what was for me a block: I started to fill in the "Orders" sheet, but very quickly realized there are headings there that don't refer (at least not that I could tell) to data that's in the <STRONG>Crops</STRONG> table. Such things as <STRONG>Type</STRONG> and <STRONG>Price</STRONG>, for example. They need to be somewhere so they can be looked up.</P><P> </P><P>And then, finally, that Column for "Trays," your presenting request for help, I realized I had no idea how to connect it mathematically with the yield data in the table. So I'm asking you for clarification:</P><P>Do I see that Jerry is ordering M (medium) size, and that Amaranth tray yield is 500, so does that mean 3 1/3 medium trays? You see the problem. You've got tray sizes as a measurement in two different ways: you know what you mean, but it's confusing and I don't want to create a formula based on crazy assumptions.</P><P> </P><P>Going by your own use of INDEX and MATCH, it would appear to me that you'd be able to resolve this on your own, but if not, come back with clarification on my puzzlement.</P>Mon, 22 Mar 2021 16:14:34 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2227906#M93920mathetes2021-03-22T16:14:34ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2228114#M93931
<P><LI-USER uid="425987"></LI-USER> Ah, this seems to be the right track for sure! I very much appreciate your help in this matter. I would like to clarify though as I'm still not quite sure how to formulate the "<STRONG>Trays"</STRONG> problem..</P><P> </P><P>But first note I have added a "ddl" page updating a few of the cells with drop down menus such as the "<STRONG>Type</STRONG>" as you've previously mentioned, as well as the "<STRONG>Size</STRONG>". These are planned to be used to calculate the "<STRONG>Price</STRONG>" in row J with the respective price for Retail, Wholesale, or Restaurant chef clients. That is my plan once I finish the Excel sheet for calculating the price for each. Apologies for a half finished workbook.</P><P> </P><P>As for calculating the "<STRONG>Trays</STRONG>"...</P><P>If you view the "<STRONG>Crops2</STRONG>" page you created there is a header in the table that says "<STRONG>Tray Size</STRONG>", both crops are currently documenting the 500g average yield from being grown in a 10"x20"x1.25" tray, <STRONG>NOT</STRONG> a medium tray.</P><P>The S, M, L are the size containers in which I will be selling my harvested crop in.</P><P> </P><P>Going back to Jerry, he is ordering 2 Medium containers of ARG containing 150g, and 3 Small containers of C2 containing 100g. You can see that I would only need 1 single tray of each crop to fulfil the orders as each 10"x20"x1.25" tray yields enough product for multiple containers.</P><P> </P><P><EM>Example: If ARG average yield per tray is 500g, I can get 5 Smalls at 100g each, 3 Mediums at 150g each and 2 Larges at 200g each. </EM></P><P> </P><P>You can see however as more orders come in for a certain crop it may require more than a single tray. If someone, or multiple people ordered a combined total of 7 Small ARG totalling 700g of ARG needed, I would like the "<STRONG>Trays</STRONG>" row to round up to "<STRONG>2</STRONG>" because it would require 2 full trays rather than 1 full tray and 20% of another.</P><P> </P><P>Hopefully this clears up any confusion</P><P>Thanks again</P>Mon, 22 Mar 2021 18:14:04 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2228114#M93931coltenpratt2021-03-22T18:14:04ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2228230#M93938
<P><LI-USER uid="999784"></LI-USER> </P><P> </P><P>OK we're moving in the right direction. BUT I don't think you want it to round on each row (although that's the way this revision is going now).</P><P> </P><P>I think we need a more complete description of how this Order sheet is going to be used. With it be Tom AND Jerry ordering, along with Tom2, **bleep** and Harry, etc. or might you have on any given morning, enough orders so that there are several of the Order sheets filled out, and you want to be efficient with the Whole set of orders?</P><P> </P><P>I'm assuming the latter, which really means a separate "Dashboard" that gives the instructions for how many full "growing trays" (I'm going to call them) you need to pull in order to fill the orders for the "selling trays"</P><P> </P><P>So flesh out the work flow here, if you would. The formula per se is pretty easy; it's still a matter of clarifying what is at the front end.</P>Mon, 22 Mar 2021 19:28:08 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2228230#M93938mathetes2021-03-22T19:28:08ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2228342#M93943
<LI-USER uid="425987" login="mathetes"></LI-USER> So the plan once the formulas were figured out, I was going to add more columns downward for more capacity of orders. Then copy the whole chart down for a total of 52. Hence the “1” in the top left cell. The copied graph below will be “2”, then “3” and so on. This giving me the dates of each Monday of the year in the long cell at the top. As Mondays will be my harvest day.<BR /><BR />In short meaning the order sheet being worked on is for just 1 of 52 weeks of the year.<BR /><BR />As I’m creating this for a small business I’m just starting, each graph will not have to accommodate a mass of space for orders.<BR /><BR />Hope this helps!Mon, 22 Mar 2021 20:26:27 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2228342#M93943coltenpratt2021-03-22T20:26:27ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2229973#M94033
<P><LI-USER uid="999784"></LI-USER> </P><P> </P><P>I hope you have the most recent version of Excel. I use the recently introduced function <STRONG>UNIQUE</STRONG> in this version. Use it twice, first to produce a summary of the dollars of each customer's order; second to produce a list of the products involved in all the orders, from that the total product quantity, and from that the total number of "growing trays" needed.</P><P> </P><P>I added three columns (by the way, you have used the word "column" where the real word is "row" ...a vertical array of cells is a <STRONG>column</STRONG>, a horizontal array is a <STRONG>row)...</STRONG>I added three columns just to make clear the progression. I'm sure it'd be possible to consolidate all those into a single formula, but that kind of "behind the scenes magic" isn't clear to you, the user. This is therefore more maintainable by you.</P><P> </P><P>Let me know if this works.</P><P> </P>Tue, 23 Mar 2021 14:57:46 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2229973#M94033mathetes2021-03-23T14:57:46ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2230266#M94059
Perfect! Everything works great. I'm glad you were able to solve this as I would likely never have achieved it, as I'm sure you've noticed I'm quite new to using excel haha. As well as I noticed to calculate the total trays needed you use the LET function which never would have crossed my mind.<BR /><BR />I thank you very much for taking the time to help me solve this.<BR />cheersTue, 23 Mar 2021 16:49:11 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2230266#M94059coltenpratt2021-03-23T16:49:11ZRe: Need help figuring an Excel formula for order fulfillment
https://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2230316#M94064
<P>Good, I'm glad it worked for you. It was fun to do.<BR /><BR />I just went back and looked at that LET formula and realized in looking closer that it does nothing of value. This simpler formula does the exact same thing.</P><P> </P><P>=IFERROR(VLOOKUP(R6,CropData,2,0),"")</P><P> </P><P>So switch it out.</P><P> </P><P>LET is fun to use, but I got carried away. It only would have made sense had I needed the VLOOKUP to happen several times.</P>Tue, 23 Mar 2021 17:13:01 GMThttps://techcommunity.microsoft.com/t5/excel/need-help-figuring-an-excel-formula-for-order-fulfillment/m-p/2230316#M94064mathetes2021-03-23T17:13:01Z