Hi Everyone,
Hoping someone can help me out with this. I have a string of values such as the below:
12 1 2 2 3 2 2 1 13
In my template the first value is always the number you hard code in and the rest are formulas which refer to percentages from another sheet and disperse the ttl amount of units. Because this reads off of another page of percentages the last number (due to rounding) usually is not the same as the first number you enter. Normally, I would go back take one unit away from the greatest value (aka 3) and make it a 2......now the first number and last number equal 12.
12 1 2 2 2 2 2 1 12
I want to add a formula which will identify FIRST if the first and last number equal each other. NEXT, if the first number is less than the second number I want to subtract 1 unit from the highest value (MAX) in the sequence (aka the 3 above was changed to a 2). Also, if the first number is more than the second number I want to add one unit to the 4th value in. LAST, I want the last number to be updated to the new total units.
I was thinking I could maybe use a nested if/min/max/replace formula but I keep getting stuck. Can anyone help me out with this?? Thanks so much!!
Bookmarks