Create an aged column

G

Grd

Hi there,

I'm trying to create a formula that shows me the following based on the date
of invoice.

Aged 30
Aged 60
Aged 90
Aged 120
Aged 180
Aged 240 etc upto 360 then
Aged Over 1 year

This is a really tough if statement I think but I'm not so great at anything
other than basic if statements.

Any help would greatly appreciated.

Tx

Suzanne
 
B

BoniM

=HLOOKUP(TODAY()-A2,{0,30,60,90,120,180,240,300,360;"","Aged 30","Aged
60","Aged 90","Aged 120","Aged 180","Aged 240","Aged 300","Aged Over 1
Year"},2)

This function will subtract an invoice date in cell A2 (adjust as needed)
from today. If it has been less than 30 days, it will display nothing in the
cell, if it has been between 30 and 59 days, it will display - Aged 30,
between 60 and 89 - Aged 60, etc.
Until 360 or over - Aged Over 1 Year.
If it's only close to what you were looking for, let me know...
 
S

Sandy Mann

With the invoice date in A1 try:

=IF(OR(A1="",A1>=TODAY()),"",IF(DATEDIF(A1,TODAY(),"y")>0,
"Over 1 year","Aged "&TODAY()-A1))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
P

Pete_UK

Do you mean if the invoice is more than 30 days old, but less than 60 you
want to show Aged 30, or does this apply to any invoice up to 30 days old?
(Sorry, I'm not an accountant).

Pete
 
G

Grd

Perfect and a very elegant formula

Tx
S

BoniM said:
=HLOOKUP(TODAY()-A2,{0,30,60,90,120,180,240,300,360;"","Aged 30","Aged
60","Aged 90","Aged 120","Aged 180","Aged 240","Aged 300","Aged Over 1
Year"},2)

This function will subtract an invoice date in cell A2 (adjust as needed)
from today. If it has been less than 30 days, it will display nothing in the
cell, if it has been between 30 and 59 days, it will display - Aged 30,
between 60 and 89 - Aged 60, etc.
Until 360 or over - Aged Over 1 Year.
If it's only close to what you were looking for, let me know...
 

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