Picking out old dates

C

Connie

What formula would I use for this?

If M5 is more than one month but less than six months from
current date, put a * in N5; if M5 is more than 6 months
but less than 12 months from current date, put ** in N5;
if M5 is more than 12 months but less than 18 months from
current date, put *** in N5; if M5 is more than 18 months
but less from 24 months from current date, put **** in N5.

"otherwise leave blank" would be at the end of each IF
statement

I can get some of it figured out but I'm missing something.

Thank you. Connie
 
P

Peo Sjoblom

One way

=IF(OR(DATEDIF(M5,TODAY(),"m")<1,DATEDIF(M5,TODAY(),"m")>=24),"",VLOOKUP(DAT
EDIF(M5,TODAY(),"m"),{1,"*";6,"**";12,"***";18,"****"},2))

change the >=24 to >24 if you want to include 24 months for ****
 
C

Connie

This works! Thank you so much! With a worksheet of over
300 rows and a great conglomeration of dates, this save a
lot of work. Thanks again!

Connie
 
P

Peo Sjoblom

My Pleasure.

--

Regards,

Peo Sjoblom


Connie said:
This works! Thank you so much! With a worksheet of over
300 rows and a great conglomeration of dates, this save a
lot of work. Thanks again!

Connie
 

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