I'm trying to build on this concept and I think the additional variable is throwing me off.

http://www.excelforum.com/excel-form...mula-help.html