Excel formula required to calculate debtor days using the count back method

RD1567

New Member
Joined
Jun 5, 2018
Messages
1
Hi

I am trying to create a spreadsheet to calculate debtor days using the count back method - but cant seem to get the correct answer. please see formula being used currently and data i am trying to work with:


The formula i am using for the days is shown at the bottom - but is obviously not correct!

Essentially in some cases i may need to count back 3 mths and in some cases up to 4 mths so the formula needs to account for any number of months.

Can anyone help?!

Best regards

PQRSTUVWXYZAAABACADAEAF
Jan'18Feb'18Mar'18Apr'18May'18Jun'18Jul'18Aug'18Sep'18Oct'18Nov'18Dec'18Jan'19Feb'19Mar'19Apr'19
Days in Month31.00283130313031313031303131283130
4Fees billed in Month
5 Company 3,000,000.00 2,000,000.00 2,500,000.00 4,200,000.00
6 Dept 1 300,000.00 100,000.00 150,000.00 300,000.00
7 Dept 2 300,000.00 250,000.00 300,000.00 300,000.00
8 Dept 3 185,000.00 150,000.00 190,000.00 200,000.00
9 Dept 4 420,000.00 450,000.00 500,000.00 1,300,000.00
10 Dept 5 420,000.00 165,000.00 233,000.00 620,000.00
11 Dept 6 150,000.00 100,000.00 50,000.00 120,000.00
12 Dept 7 150,000.00 100,000.00 120,000.00 86,000.00
13 Dept 8 150,000.00 200,000.00 180,000.00 750,000.00
14 Dept 9 150,000.00 100,000.00 130,000.00 100,000.00
15 Dept 10 300,000.00 200,000.00 180,000.00 100,000.00
16 Dept 11 300,000.00 200,000.00 275,000.00 350,000.00
17 Dept 12 30,000.00 30,000.00 30,000.00 45,000.00
18 Dept 13 - - - 500.00
19 £ 2,855,000.00 £ 2,045,000.00 £ 2,338,000.00 £ 4,271,500.00 £ - £ - £ - £ - £ - £ - £ - £ - £ - £ - £ - £ -
20
21Debtors at the end of current month
22
23Company 8,400,000.00
24Dept 1 500,000.00
25Dept 2 400,000.00
26Dept 3 500,000.00
27Dept 4 2,000,000.00
28Dept 5 1,600,000.00
29Dept 6 400,000.00
30Dept 7 300,000.00
31Dept 8 900,000.00
32Dept 9 400,000.00
33Dept 10 300,000.00
34Dept 11 1,000,000.00
35Dept 12 100,000.00
36Dept 13 -
37 £ - £ - £ - £ 8,400,000.00 £ - £ - £ - £ - £ - £ - £ - £ - £ - £ - £ - £ -
38
39Debtor Days - countback
40
41Company 96#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
42Dept 1 80#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
43Dept 2 42#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
44Dept 3 86#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
45Dept 4 105#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
46Dept 5 120#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
47Dept 6 115#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
48Dept 7 72#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
49Dept 8 105#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
50Dept 9 96#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
51Dept 10 31#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
52Dept 11 109#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
53Dept 12 97#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
54Dept 13 0000000000000
Formula
(MIN(T23,Q5)/Q5*Q$3)
PLUS(MIN(T23-Q5,R5)/R5*(T23>=Q5)*R$3)
PLUS(MIN(T23-SUM(Q5:R5),S5)/S5*(T23>=SUM(Q5:R5))*S$3)
PLUS(MIN(T23-SUM(Q5:S5),T5)/T5*(T23>=SUM(Q5:S5))*T$3)

<colgroup><col><col><col><col><col><col><col><col span="11"></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,429
Messages
6,119,424
Members
448,896
Latest member
MadMarty

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top