+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Vlookup for numbers and alphabet in the same list

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    5

    Vlookup for numbers and alphabet in the same list

    1223336545445
    Last edited by shehla.uhp1; 05-25-2012 at 12:48 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup for numbers and alphabet in the same list

    Hi and welcome to the forum.

    One way could be to use helpers and hidden columns for separating the code(Numbers & text)

    Try to upload a small sample workbook..
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    5

    Vlookup for numbers and alphabet in the same list

    abababbabababbababababba
    Last edited by shehla.uhp1; 05-25-2012 at 12:50 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Vlookup for numbers and alphabet in the same list

    The formula you have posted looks up a country code and it works fine. AT and CZ are not present in $A$74:$A$107, so the formula returns #N/A, which means the lookup value cannot be found.

    It seems that your description is about something different than the formula you posted.

  5. #5
    Registered User
    Join Date
    05-21-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup for numbers and alphabet in the same list

    dont want to show this.
    Last edited by shehla.uhp1; 05-25-2012 at 01:35 AM.

  6. #6
    Registered User
    Join Date
    05-21-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup for numbers and alphabet in the same list

    dont want to show this.
    Last edited by shehla.uhp1; 05-25-2012 at 01:35 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Vlookup for numbers and alphabet in the same list

    Vlookup will return the first match that it finds. If you have more than one CH code in your list, only the first one will be returned.

  8. #8
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Vlookup for numbers and alphabet in the same list

    you are only looking up the country code, nothing else.

  9. #9
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Vlookup for numbers and alphabet in the same list

    I need formula that use product code in such a way that the code starting with number like "1406-ST/CF" have account code ending with -016 as this is in the sheet. and the product code starting with alphabet like "Custom 3207" must have account number ending with -008.
    Can you explain the logic behind that?

    In your data there is no visible connection between "1406-ST/CF" and -016 or "Custom 3207" and -008

    I see that you have two blocks of data in your lookup table, but as I said above, the lookup criteria is only the country code. So you need to create a relationship between the country code and which block of data to use as a lookup table.

  10. #10
    Registered User
    Join Date
    05-21-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup for numbers and alphabet in the same list

    dont want to show this.
    Last edited by shehla.uhp1; 05-25-2012 at 01:36 AM.

+ 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