If-iteration based on averages Excel -


i'm trying find how if-iteration in excel. have 5 products, let's bread, milk, butter, eggs , chocolate. average flow time of these products should equal or lower 21, being maximized each of products. in beginning of iteration, order 33 pallets of each product (column t). 33 pallets, flow time of each product is:

bread: 7,4 days

milk 39,2 days

butter 16,4 days

eggs 45,8 days

chocolate 25,9 days

the average flowtime 27.0, high. want choose product highest flow time , order 1 unit less.

what want this: have order: t2; t3; t4; t5; t6.

if " =average(t2; t3; t4; t5; t6)" > 21, order - max(order) + (t 1 column left particular product)

in case, highest flow time eggs. want order 32 pallets instead of 33 eggs makes new order: t2; t3; t4; s5; t6.

now want check again if order has flow time > 21, , if is, need iteration.

can me on problem? have no experience vba or macros, nice if solvable within excel.

regards.

image comments:

image of data


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -