#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
edwardpestian
 
Posts: n/a
Default date formula


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


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=548491

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default date formula

=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"
wrote in message
news:edwardpestian.28x7ka_1149496501.8576@excelfor um-nospam.com...

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


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile:

http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=548491



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
edwardpestian
 
Posts: n/a
Default date formula


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

Thanks Again.

EP


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=548491

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Heather Heritage
 
Posts: n/a
Default date formula

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"
wrote in message
...

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

Thanks Again.

EP


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile:

http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=548491



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
edwardpestian
 
Posts: n/a
Default date formula


Thanks, does just what I need.

Regards,

EP


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=548491



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default date formula

On Mon, 5 Jun 2006 03:30:02 -0500, edwardpestian
wrote:


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
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default date formula

then just use MAX

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

--
HTH

Bob Phillips

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

"edwardpestian"
wrote in message
...

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

Thanks Again.

EP


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile:

http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=548491



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


All times are GMT +1. The time now is 10:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"