Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Find closest future date from list ...

Hi -

I've got a list of 26 dates, each one 2 weeks after the next (these
are pay-days). What I want to do is find the next paydate from
today. Here's the data I'd like to have:
cell d2: today's date (DD-MM-YY)
cell e2: next paydate (DD-MM-YY)
cell f2: days until next paydate

Thanks for your help!

Regards, ray

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Find closest future date from list ...

One other thing ..... paydates would be in another column, say
Z2:Z27 ...

thanks again!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Find closest future date from list ...

Hi,

Try formulas below:

in the cell D2: =TODAY()

in the cell E2: =MIN(IF(Z2:Z27D2,Z2:Z27,"")) enter as array formula
Ctrl+Shift+Enter

in the cell F2: =DATEDIF(D2,E2,"d")

Thanks,
--
Farhad Hodjat


"Ray" wrote:

Hi -

I've got a list of 26 dates, each one 2 weeks after the next (these
are pay-days). What I want to do is find the next paydate from
today. Here's the data I'd like to have:
cell d2: today's date (DD-MM-YY)
cell e2: next paydate (DD-MM-YY)
cell f2: days until next paydate

Thanks for your help!

Regards, ray


  #4   Report Post  
Posted to microsoft.public.excel.misc
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Find closest future date from list ...

Thanks very much, Farhad ... worked perfectly!

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
Find closest match and copy saman110 via OfficeKB.com Excel Discussion (Misc queries) 3 August 31st 07 06:30 AM
How can I match a calculated date to closest date from a list? David P Excel Worksheet Functions 2 January 22nd 07 12:05 PM
finding a date/time in a list that is closest to an existing date/ Jamie Excel Discussion (Misc queries) 1 May 27th 06 08:54 PM
How do I find a column entry closest to a particular value feman007 Excel Worksheet Functions 2 March 9th 05 03:48 PM
How do I find a column entry closest to a particular value feman007 Excel Discussion (Misc queries) 1 March 8th 05 10:22 PM


All times are GMT +1. The time now is 01:31 AM.

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

About Us

"It's about Microsoft Excel"