Please help me in using the vlookup function.
Example sheet attached.
Please help me in using the vlookup function.
Example sheet attached.
In B2 of Sheet1 in your file enter and copy down:
=VLOOKUP(REPLACE(A2,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1,"")+0,$G$2:$H$149,2,0)
Another way, in B2 and copy down:
Formula:Please Login or Register to view this content.
It's not pretty, but it works.
BSB.
Great, this is working
What did you pick out?
Both are working fine for me
but if i add a digit anywhere before the lookup value then Aladin formula return to #Value error
and if add any thing after lookup value, both formula return with error.
If error trapping is not what you are after, that is:
try to provide examples of look up values that are also to be found in your look up table?Please Login or Register to view this content.
Last edited by Aladin Akyurek; 12-23-2014 at 06:40 AM.
Example sheet attached
Would you agree that no code matches the ones listed below?
TRF CHA-SCB :- 01871030000000107
and
CHA-SCB :- 02711030000000019
each code working fine. But no one is working if
"TRF CHA-SCB :- 01871030000000107" will become "TRF CHA :- 01871030000000107 SCB"
I don't follow. Did you see my question in post #9?
Please see the Example sheet in post #10,
I have change the data in cell A2, A3, A4 cells and the formula return to error massage
see the attached file in Yellow Color
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
Now this is this working with my every condition,
Thanks Siva, Aladin and BSB
So, the answer to my question would have been yes...
The formula then I had for you is:
=LOOKUP(9.99999999999999E+307,FIND($G$2:$G$13,$A2),$H$2:$H$13)
Or:
=IFERROR(LOOKUP(9.99999999999999E+307,FIND($G$2:$G$13,$A2),$H$2:$H$13),"")
which should be faster.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks