A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I match a calculated date to closest date from a list?



 
 
Thread Tools Display Modes
  #1  
Old January 22nd, 2007, 11:01 AM posted to microsoft.public.excel.worksheet.functions
David P
external usenet poster
 
Posts: 6
Default How can I match a calculated date to closest date from a list?

I'm trying to match a calculated date to the next meeting date from a list of
meeting dates.

Any help greatly received

Thanks

David
  #2  
Old January 22nd, 2007, 11:19 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips
external usenet poster
 
Posts: 1,032
Default How can I match a calculated date to closest date from a list?

=MATCH(myDate,Range(A1:A100,0)

will return the index in A1:A100 of the found value.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"David P" David wrote in message
...
I'm trying to match a calculated date to the next meeting date from a list
of
meeting dates.

Any help greatly received

Thanks

David



  #3  
Old January 22nd, 2007, 12:05 PM posted to microsoft.public.excel.worksheet.functions
RichardSchollar
external usenet poster
 
Posts: 139
Default How can I match a calculated date to closest date from a list?

Hi David

As Bob says, MATCH is probably your best bet. Assuming your meeting
dates are sorted in ascending order, then the following construct is
most likely to suit:

=MATCH(A1,$B$1:$B$100,-1)

where A1 houses your calculated date, B1:B100 holds your meeting dates,
and the -1 specifies a value equal to or the next higher value than
your calculated date (ie so the 'next' meeting date).

Hope this helps!

Richard


David P wrote:

I'm trying to match a calculated date to the next meeting date from a list of
meeting dates.

Any help greatly received

Thanks

David


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:29 PM.


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