• 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.

Problem Lookup

Kenshin

Member
Hell guys nice meeting you again, I need help with lookup stuff with difficult lay out, please see my attachment file

thank you
 

Attachments

  • Sample.xlsx
    10.1 KB · Views: 7
Thanks Bosco, but that not I want, what if column B is not blank but fill with data the formula will not works, Iam sorry for not clear
 

Attachments

  • Sample.xlsx
    10.2 KB · Views: 7
Appreciate, but i have last request, what if the row is not the same amount? PLeas take a look at the file, thanks again
 

Attachments

  • Sample (1).xlsx
    10.6 KB · Views: 8
Appreciate, but i have last request, what if the row is not the same amount? PLeas take a look at the file, thanks again
Try,

=IF(COUNTA(OFFSET(B1,MATCH("Tax number "&D3,A1:A12,0)-1,0,MATCH("Tax",INDEX(A1:A100,MATCH("Tax number "&D3,A1:A100,0)+1,0):A100,0)))>0,"",OFFSET(B1,MATCH("Tax number "&D3,A1:A12,0)+MATCH("Tax",INDEX(A1:A100,MATCH("Tax number "&D3,A1:A100,0)+1,0):A100,0)-1,0))

Regards
 
But when I change this part
=IF(COUNTA(OFFSET(B1,MATCH("Tax number "&D3,A1:A12,0)-1,0,MATCH("Tax",INDEX(A1:A100,MATCH("Tax number "&D3,A1:A100,0)+1,0):A100,0)))>0

to

=IF(COUNTA(OFFSET(B1,MATCH("Tax number "&D3,A1:A12,0)-1,0,MATCH("Tax",INDEX(A1:A100,MATCH("Tax number "&D3,A1:A100,0)+1,0):A100,0)))=0

the results is okay

thanks you
 
Change A12 to A100,

=IF(COUNTA(OFFSET(B1,MATCH("Tax number "&D3,A1:A100,0)-1,0,MATCH("Tax",INDEX(A1:A100,MATCH("Tax number "&D3,A1:A100,0)+1,0):A100,0)))=0

Regards
 
Or...

=IFERROR(VLOOKUP("Tax",INDEX(A:A,MATCH(IF(D3="",NA(),"*"&D3),A:A,0)):B1000,2,0),"Not Found")

Change B1000 to last unused cell.

The below version will look for last unused cell dynamically.

=IFERROR(VLOOKUP("Tax",INDEX(A:A,MATCH(IF(D3="",NA(),"*"&D3),A:A,0)):INDEX(B:B,MATCH("zzz",A:A)),2,0),"Not Found")
 
Back
Top