To find due days of debtors

P

pol

Hi all,

I am using office2007. I have an excel sheet with the following colimn
invoicedate amount period.

How I can give a formula i n period column as
if current month - month(invoicedate) = 0 then period='Current'
if current month - month(invoicedate) = 1 then period='30'
if current month - month(invoicedate) = 2 then period='60'
if current month - month(invoicedate) = 3 then period='90'
else
period='120'

it should taken care 30 or 31 or 28 and 29 days for correspodning month.

Please help have any idea
With thanks
Pol
 
B

Brad

What happens when you do this on the first day of the month and the invoice
is for the last day of the previous month - do you want this to be zero or one

Assuming that you want this to be zero

=MIN(4,DATEDIF(B17,TODAY(),"M"))*30

=where the invoice date is in cell B17

if you want this to be one - you would also need to compare years

Do you need this formula?
 
J

JLatham

Brad,
I was about to ask much the same question regarding last/first of the month.
And without considering years, then there are real problems when invoice
date is in the previous year (as you are obviously aware).

pol- can't you just consider number of days rather than months? By using
just number of days, then you can easily determine if it is 30, 60, 90 or 120
or more days past due.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top