Hi all
Here goes.. I have posted many times on here before but I think this is my biggest problem to date. I am hoping there is a sympathetic expert out there as what I am trying to achieve may be tricky to complete – if at all possible!
I am trying to build a model which builds an accrual based on utility charges received to date. The model has two tabs, one of the tabs (“Summary”) will list 20 odd branches along with a monthly charge and accrual calculation. The “Invoices” tab will be a direct dump from a database which will list invoices (actual Charges recieved to date).
The tricky part… What I need the model to do is match billing periods to calendar months on the "Summary Sheet" and then calculate any possible accrual if we have not been billed for the whole period.
e.g. Our water supplier bills us randomly throughout the year for random periods e.g. we could receive a bill in February for £2100 for the period 15/1/13 to 5/2/13. I would need (on my summary tab) for a formula to calculate the number of days billed for and the charge and assign it by month e.g. Billed £1600 for Jan and £500 for February – is this possible?
The accrual part is the easy bit I really need help with matching the billed period number of days and charges (£) to a calendar month.
One thing to note is that the formula will need some sort of lookup as although the “invoices” tab does have some structure currently in my example it will have a whole list of invoices for various branches all for different periods being posted at different times. One thing that is unique is the branch number e.g. 111 or 222.
I have uploaded an example file. In the cells I have highlighted I have manually worked out the number of days and cost – here is where I need the formulas.
Can any one help in any way – I am in need of some real direction with this.
Bookmarks