As much as I hate to admit, baldy is right. I've made a whole mess of different spreadsheets and there isn't one formula that does everything I'm afraid. I hate to think how many hours I've spent on this and now work has picked up, I just don't have much time to spend on it.
I may come back to it, but for now it's on hold.