I am trying to pick the best scenario from data in two columns: Column 1 contains values for 20 rows (4, 6, 8, 10.5, 13, etc). Column 2 contains values for the same 20 rows (1100, 950, 800, 750, etc).
I need to look for the 6 lowest possible average value in column 1 while not exceeding a specific value in column 2. e.g. 5000. The goal is to have the lowest value for column 1 while getting as close to 5000 in column 2.
Example: Row1 4, 1100, Row3 8, 800, etc. This would be avg 6 total of 1900. (I just did 2 rows, but I need the best of 6.) I tried to post a screenshot, but I don't have enough reputation points. :(
Any help would be greatly greatly appreciated!