Count number of days from the last entry?

M

MD

I need a formula to count the number of days from TODAY() to the last entry
in column "J".
Column "A" is date column.
 
M

Max

This will grab the date in col A corresponding to the last entry in col J
=LOOKUP(2,1/(J2:J100<>""),A2:A100)

Hence you could use this:
=TODAY()-LOOKUP(2,1/(J2:J100<>""),A2:A100)

Adapt the ranges to suit
 
M

MD

Many thanks Max that works ok

Max said:
This will grab the date in col A corresponding to the last entry in col J
=LOOKUP(2,1/(J2:J100<>""),A2:A100)

Hence you could use this:
=TODAY()-LOOKUP(2,1/(J2:J100<>""),A2:A100)

Adapt the ranges to suit
 

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