Dumbo,
As you said, Mike's solution is the way to go here. Shoud you need more help, please post your spreadsheet and I am sure one of us here at DE can assist you further. The more specific a question is, the easier it is to answer it. As you will discover, very often answers are given as example VI's. Good luck!
/Mikael Garcia