Thread
:
VLOOKUP, a table with text and numerics
View Single Post
#
8
Posted to microsoft.public.excel.worksheet.functions
Claus Busch
external usenet poster
Posts: 3,872
VLOOKUP, a table with text and numerics
Hi Duncan,
Am Thu, 13 Dec 2012 08:07:47 -0800 (PST) schrieb
:
A B C D E F
Code1 Value Code2 Value Code3 Value
010101NN 140132NN 147006NN
to get the number from A2, format the cell "000000" and try:
=LOOKUP(9^9,1*LEFT(A2,COLUMN(1:1)))
or without formatting you have to use:
=TEXT(LOOKUP(9^9,1*LEFT(A2,COLUMN(1:1))),"000000")
You can put your VLOOKUP aroundto find the value.
It doesn't mind if COLUMN(1:1) changes to COLUMN(2:2)
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Reply With Quote
Claus Busch
View Public Profile
Find all posts by Claus Busch