Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Vlookup... (2000 sr 1)

    assuming i have this in column G and H, and have this function to find a value:

    G H

    OI34536 ABBAGNALE GIUSEPPE
    OI38696 ACIERNO MARCELLO
    OI31356 ACOCELLA TONINO
    OI31558 AFELTRA VINCENZO
    OI24190 AFFINITO LUIGI
    OI25661 AFFINITO PIETRO
    OI32867 AGLIATA CRISTOFARO
    OI29083 ALAGIA NICOLA
    OI34993 ALBANO DOMENICO
    OI29054 ALBERTO PAOLO

    and have this function to find a value:


    UTENTE = Right((UTENTE), 5)

    Range("AD" & Trim(Str(CONTA))).Value = Application.WorksheetFunction.VLookup(UTENTE, Worksheets("TABELLA").Range(Worksheets("TABELLA"). Range("G2"), Worksheets("TABELLA").Range("H1000").End(xlUp)), 2, False)

    How to modify the vlookup?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Vlookup... (2000 sr 1)

    If I understand you correctly, you want to search on the last 5 characters of column G. You could insert a new column between G and H with formulas such as =RIGHT(G3,5). You can then use this column in the VLookup.

Posting Permissions

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