+ Reply to Thread
Results 1 to 5 of 5

Vlookup First Two Digits

Hybrid View

Cleman04 Vlookup First Two Digits 03-06-2009, 01:15 PM
Cleman04 Re: Vlookup First Two Digits 03-06-2009, 01:18 PM
jhamil Re: Vlookup First Two Digits 03-06-2009, 01:22 PM
NBVC Re: Vlookup First Two Digits 03-06-2009, 01:24 PM
Cleman04 Re: Vlookup First Two Digits 03-10-2009, 12:16 PM
  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    Lester, IA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Vlookup First Two Digits

    Here' s what I believe will be fairly simple question for some of you, but has me struggling. I would like to take the first three digits of column A and do a lookup of column B that would return the corresponding number from column C. For example, if I entered the formula for 103PH, the lookup would find the 103 in column B and return "2775.00" from column C. Any ideas on the formula to use?

    A B C
    137MX 102 1081.01
    139TH 103 2775.00
    103PH (604084) 104 2775.00
    402TH (603943) 105 1121.20
    124DK 106 19A1.00
    383MX 107 1121.20
    151PH (604058) 116 2652.00
    130PH (604083) 117 2641.00
    136PH (604082) 121 265H.01
    410CA 123 2641.00
    139CA 125 2665.01
    121PH (604080) 126 2665.01
    165PH (604070) 129 4145.20
    402PH (604057) 130 18P5.2
    165NZ 131 2110.00
    355PH(604081) 132 2110.00
    274CA 133 2863.00
    402TH (603943) 133 2863.01

    Thank you!
    Last edited by Cleman04; 03-10-2009 at 12:15 PM.

  2. #2
    Registered User
    Join Date
    03-05-2009
    Location
    Lester, IA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Vlookup First Two Digits

    Sorry, I didn't realize my table wouldn't display properly when posted. Attached is the example I was referring to.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    california,usa
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Vlookup First Two Digits

    =vlookup(103ph,a1:c18,3)

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup First Two Digits

    Something like this:

    =VLOOKUP(LEFT(A1,3)+0,$C$1:$D$18,2,0)

    adjust range to suit entire table
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    03-05-2009
    Location
    Lester, IA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Vlookup First Two Digits

    =VLOOKUP(LEFT(A1,3)+0,$C$1:$D$18,2,0) works perfectly! Thank you for your assistance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1