• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Why the match returns #NA ?

aamirsq

Member
Why my match is returning #N/A in this formula ?

INDEX('Project'!B:B,MATCH(IF(LEN(A5)=1,A5,left(A5)),'Project'!A:A,1))
 
Hi Aamirsq,

Without having a look of data it is difficult to tell. But any how try changing the third argument of MATCH function to 0 as show below.

INDEX('Project'!B:B,MATCH(IF(LEN(A5)=1,A5,left(A5)),'Project'!A:A,0))

Regards,
 
Hi Aamir!

If your Project Sheet, is like below.. then your formula will work fine..

upload_2014-6-9_12-48-22.png
  • Data should be sorted A - Z,
  • And only one character should be in Column A..
 
Try below formula and enter with Just Enter.

=INDEX(Project!B:B,MATCH(IF(LEN(A3)=1,A3,LEFT(A3))+0,Project!A:A,0))

Regards,
 
In all the cases the lenth was more than 1 so IF function was returning the result of LEFT function which was converting the number to text say "1" and in your lookup sheet they are number so #N/A error, so adding 0 will convert back the string number to number and MATCH can do the job.

Just on note the function will not work for heading 2.02. Just check it.

Regards,
 
Back
Top