date formula

E

edwardpestian

I'm having trouble with a date formula. What I have is a column listin
the date, every two weeks. 05/14/2006, 05/28/2006, 06/11/2006, etc.
need to lookup in that range, the cell containing the date that is les
than today.

In other words if today is less than 06/11/2006, then move up one cel
to 05/28/2006. Or if today is less than 05/28/2006, then move up on
cell to 05/14/2006.

Thanks in advance.

E
 
B

Bob Phillips

=MIN(IF(A1:A100<TODAY(),A1:A100))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"edwardpestian" <[email protected]>
wrote in message
news:[email protected]...
 
E

edwardpestian

The formula seems to find the earliest date in the range as opposed t
the latest date less than today. If I have 06/01/2006, 06/02/2006 an
06/03/2006, and today is the 06/10/2006, the formula should retur
06/03/2006.

Thanks Again.

E
 
H

Heather Heritage

Can't see the original formula, but the array formula

=MAX(IF(D2:D4<TODAY(),D2:D4,0))

replace D2:D4 with the actual range you want to use, and press Ctrl Shift
Enter to get the value. If no dates match, you will get a Zero returned.
"edwardpestian" <[email protected]>
wrote in message
news:[email protected]...
 
R

Ron Rosenfeld

I'm having trouble with a date formula. What I have is a column listing
the date, every two weeks. 05/14/2006, 05/28/2006, 06/11/2006, etc. I
need to lookup in that range, the cell containing the date that is less
than today.

In other words if today is less than 06/11/2006, then move up one cell
to 05/28/2006. Or if today is less than 05/28/2006, then move up one
cell to 05/14/2006.

Thanks in advance.

EP

A simple VLOOKUP formula should do that:

=VLOOKUP(TODAY(),DateRangeList,1)


--ron
 

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