JonElCanche
Board Regular
- Joined
- Aug 25, 2011
- Messages
- 59
I have created a UDF to calculate the Economic Order Quantity with the given inputs being Annual Demand, Order Costs, and Holding Costs. The formula works because I know the required inputs, but in Excel if i use the formula, =EOQ(, it allows me to enter inputs but does not say what inputs are required. I would like it to act as the DATE formula for example, prompting the user for the year, month, day. Below is the code in the module:
Code:
Function EOQ(AnnualDemand, OrderCost, HoldingCost)
EOQ = Sqr(2 * AnnualDemand * OrderCost / HoldingCost)
End Function
[code]
-- removed inline image ---