Forum Discussion
Average days to pay invoice.
Hello.
So I have this task where I need to calculate after how many days on average each company pays their bills. Between the set date to pay the invoice and actual day when it's paid for each company. C collumn is date set to pay invoice, D is actual date when invoice was paid and E is companies.
6 Replies
- PeterBartholomew1Silver Contributor
I'd use a pivot table.
I added a column Dienų skaičius to the source data with formula =D2-C2.
The pivot table calculates the average of this column for each company.
See the attached version.
- linards2000Copper ContributorAmazing. Thanks!
- Jpalaci1Brass Contributor
linards2000 Something like this?
I just did date due (column C)-date paid (column D). That will give me the the days paid per sale/invoice. Positive being paid before and negative being days late.
Then created a Pivot Table with the companies (column E) in the rows and the new calculation in the values and formatted to be an average. If you look at screenshot with the data you'll see the average matches. You could also format the pivot value as a whole number if you need a rounded value as in a whole day.
You can even see at the invoice level by adding in column A and then you can see how it will average with the total averaging in the subtotal. This isn't what you asked but you can from there customize the data and even search for a company via the filter in the Pivot.
- linards2000Copper Contributor
Super. Thank you so much. Jpalaci1
- Jpalaci1Brass Contributor