+ Reply to Thread
Results 1 to 3 of 3

Formula to extract digits and VLOOKUP help

  1. #1
    Registered User
    Join Date
    12-11-2008
    Location
    Kalamazoo
    Posts
    17

    Formula to extract digits and VLOOKUP help

    On Sheet3 in Column C I have a list of 8 digit numbers, such as 18340134. In Column D I'd like to take just the first 2 digits of that number, copy that into a separate cell and add 6 zeros to the end of that number. In Column E I'd like to do the same thing, but this time grab the first 4 digits and then add 4 zeros to the end of it. For instance:
    C D E
    18340134 18000000 18340000
    23090256 23000000 23090000
    85110315 85000000 85110000

    Once that's done, I'd like to do a VLOOKUP (I think) to Sheet4. Each of those numbers is found in column A with an description in column B (for instance, 1800000 would be "Machinery", 18340000 would be "turbines" and 18340134 would be "hydraulic turbines"). I'd like to return the descriptions in columns F, G, and H.

    Thanks,
    Zack

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

    Re: Formula to extract digits and VLOOKUP help

    Try these:

    =LEFT(C2,2)&"000000"

    =LEFT(C2,4)&"0000"

    =VLOOKUP(D2,Sheet4!A:B,2,0)

    =VLOOKUP(E2,Sheet4!A:B,2,0)
    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.

  3. #3
    Registered User
    Join Date
    12-11-2008
    Location
    Kalamazoo
    Posts
    17

    Re: Formula to extract digits and VLOOKUP help

    Solved.
    Thank you for your quick response!

+ 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