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

Lookup with Common Value

Shabbo

Member
Dear Sir,

My Invoice Number is M1516-1104 and my customer Invoice number is 17/11/2015 MBR/1516/EXD/SER/01827 1104 the common thing is only 1104 in both how do I lookup the same.
 

Attachments

  • 22 March.xls
    17 KB · Views: 8
Try something like below.
=INDEX($C$6:$C$13,MATCH(TRUE,ISNUMBER(SEARCH(RIGHT(F6,4),$B$6:$B$13)),0))

Confirmed as array (CSE).

EDIT: If you are only interested in last 4 digit of Invoice number and if there is chance same string occurring within another location in the string use below.
=INDEX($C$6:$C$13,MATCH(TRUE,ISNUMBER(SEARCH(RIGHT(F6,4),RIGHT($B$6:$B$13,4))),0))

Confirmed as array (CSE)
 
On second thought second formula in above can be simplified to...
=INDEX($C$6:$C$13,MATCH(TRUE,RIGHT(F6,4)=RIGHT($B$6:$B$13,4),0))

Also CSE.
 
On second thought second formula in above can be simplified to...
=INDEX($C$6:$C$13,MATCH(TRUE,RIGHT(F6,4)=RIGHT($B$6:$B$13,4),0))

Also CSE.
Dear Sir,
sometimes its needed revert way as well what would be amount for M1516-1104 ?
 

Attachments

  • Lookhelp.xls
    16.5 KB · Views: 10
Back
Top