You will see that it is not really all that complex or pretty. just a quick way to apply your rules to the different series, to create a data file to import into an Access table.
If you think you are gonna do this more than once, then I would definitely make something a little more robust...