View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.newusers
pol pol is offline
external usenet poster
 
Posts: 129
Default To find due days of debtors

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