I get a #REF! error with the following formula:
=VLOOKUP($M2,INDIRECT(TEXT($AZ2,"DDD")&"1"),17,0)
M2 is a date, so the range will be called "Sun1" when the date is a Sunday. The range "Sun1" 'refers to':
=INDEX(Sun!$C:$C,1):INDEX(Sun!$CA:$CA,COUNTA(Sun!$A:$A))
When I type "Sun1" in the named range box, it highlights the correct area on a sheet called "Sun". When I evaluate the VLOOKUP, the range evaluates correctly to "Sun1".
I'm stumped - any ideas?
Thanks in advance.
Bookmarks