ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using MATCH with dates (https://www.excelbanter.com/excel-worksheet-functions/98175-using-match-dates.html)

[email protected]

Using MATCH with dates
 
I'm having trouble getting a match with dates for some reason:

For example:

Jan-06 Feb-06 Mar-06 ...etc.
in A1-A3 etc...

And "Feb-06" in B1
(Note: The "Feb-06" is generated from a formula using DATEVALUE, MONTH
and DAY vs. just having a date typed into a cell)

=MATCH(B1,A1:A3,0)
should give me "2", but for some reason it doesn't find the matching
date.

Am I not able to use a reference to another cell as the lookup_value?
Even if I do type in direct dates into the reference cell, it doesn't
match.

Any ideas?


KL

Using MATCH with dates
 
...The "Feb-06" is generated from a formula using DATEVALUE, MONTH
and DAY vs. just having a date typed into a cell)


what is the formula exactly? I guess the result is text and then it is not
date and will not be found in a list of dates. If the result is really a
date then the day which is is hidden (and potentially the time) of the date
searched is not the same as the one in the list.

Regards,
KL




All times are GMT +1. The time now is 04:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com