formula help please

K

karen

I have a list of invoices that have a colume of dates , then a colume of
amounts . I can conditional format it so that if its more than 30 days then
it changes the date to red. but is there a way of formating it so that it
adds up what is due?
 
D

David Biddulph

Formatting doesn't change the value in a cell. If you want to do that, use
a formula.
 
K

karen

Yes formula , i think thats what i meant to ask. I just confused myself with
saying formatting . doh
 
P

Pete_UK

Assume your dates are in column A and amounts in column B and that you
have 100 rows in your range. This formula (in C1 ??) will give you the
total amount that is more than 30 days old compared with today's date:

=SUMPRODUCT((A1:A100<TODAY()-30)*(B1:B100))

Hope this helps.

Pete
 
Top