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
>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!
Domenic - 20 Oct 2006 22:29 GMT
> Hi Domenic,
>
[quoted text clipped - 5 lines]
>
> What does the +0 actually do?
That part of the formula returns the date as a text string. The +0 bit
coerces it into a true date value.
> 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))
Opening and closing brackets for the lookup value have been omitted.
The formula should be as follows...
=INDEX(OFFSET(Data,0,0,,10),MATCH(($AB$4&"/"&TEXT($B22,"mm/yy"))+0,Date,0
),COLUMN(A:A))
Hope this helps!
Sam - 20 Oct 2006 23:20 GMT
Hi Domenic,
Thank you very much for explanation and corrected Formula. That's Great!
Cheers,
Sam
>> Hi Domenic,
>[quoted text clipped - 5 lines]
>> What does the +0 actually do?
>That part of the formula returns the date as a text string. The +0 bit
>coerces it into a true date value.
>> 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))
>Opening and closing brackets for the lookup value have been omitted.
>The formula should be as follows...
>=INDEX(OFFSET(Data,0,0,,10),MATCH(($AB$4&"/"&TEXT($B22,"mm/yy"))+0,Date,0
>),COLUMN(A:A))
>Hope this helps!