Yes. In your example, if you put "red" in the cell B1, your starting length in the cell B2, and the lengths used in cells B3, B4, B5, etc, then in cell B6, or whatever the one below the last length used is, you type something like "=B1-(SUM:B3-B5)" and excel will do the math for you. That may not be the exact syntax, but it's close. (I use open office at home now, so I can't double check it). Then you can copy the formula to all the other cells along the bottom. When it copies, it should give you the option to change the columns to C, D, E, etc, rather than copying the formula for column B.
Yes, I am kind of a geek about stuff like this. It's leftover from my days of doing IT support stuff at a college
