Hi Domenic,
Thanks for reply and your assistance. Cell AB4 does just contain a one or
two digit number.
So, I'm using your second suggestion:
($AB$4&"/"&TEXT($B22,"mmm/yy"))+0
What does the +0 actually do?
Cell AB4 contains the two digit number 31 and the month in B22 is June. It
returns has #N/A. Should it have returned #VALUE as the 31 June does not
exist?
=INDEX(OFFSET(Data,0,0,,10),MATCH($AB$4&"/"&TEXT($B22,"mm/yy")+0,Date,0),
COLUMN(A:A))
Cheers,
Sam
Domenic wrote:
Does AB4 contain a true date value formatted to display the day, or does
it actually contain a one or two digit number. If the former, try
replacing...
DATE(YEAR($B22),MONTH($B22),DAY($AB$4))
with
(TEXT($AB$4,"d")&"/"&TEXT($B22,"mmm/yy"))+0
Otherwise, try...
($AB$4&"/"&TEXT($B22,"mmm/yy"))+0
Note that the formula will return #VALUE! when the date doesn't exist,
such as 31/06/2006, and will return #N/A when the date is not found. If
so desired, the formula can be amended to trap error values.
Hope this helps!
--
Message posted via
http://www.officekb.com