+ Reply to Thread
Results 1 to 7 of 7

Vlookup text values

  1. #1
    Anne Troy
    Guest

    Re: Vlookup text values

    My suggestion: Format ALL of your SCC codes as "00000000000000", then you
    won't have to worry about it.
    *******************
    ~Anne Troy

    www.OfficeArticles.com


    <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I am having a difficulty that has been bugging me for some time.
    >
    > I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    > Numbers stating with 0's have to be set up as text or the 0 disappears.
    > Whenever I set up a number as text and I do a vlookup, those numbers
    > are not being recognized as matching by the vlookup function. My
    > question is: "how can I have a 14 digit number displaying zeros in
    > front and still be able to compare it to another spreadsheet with the
    > same number using the vlookup function. Please help.
    >
    >
    >
    > Mike
    >




  2. #2
    Damon Longworth
    Guest

    Re: Vlookup text values

    All of the data in your lookup array need to have the same format. Where do
    these numbers originate? I would format the column as text before the data
    is inserted. Then the leading 0's will be preserved.


    --
    Damon Longworth

    Don't miss out on the 2005 Excel User Conference
    Sept 16th and 17th
    Stockyards Hotel - Ft. Worth, Texas
    www.ExcelUserConference.com


    <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I am having a difficulty that has been bugging me for some time.
    >
    > I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    > Numbers stating with 0's have to be set up as text or the 0 disappears.
    > Whenever I set up a number as text and I do a vlookup, those numbers
    > are not being recognized as matching by the vlookup function. My
    > question is: "how can I have a 14 digit number displaying zeros in
    > front and still be able to compare it to another spreadsheet with the
    > same number using the vlookup function. Please help.
    >
    >
    >
    > Mike
    >




  3. #3
    RagDyeR
    Guest

    Re: Vlookup text values

    You could try something like this:

    =VLOOKUP(TEXT(A1,"00000000000000"),Sheet1!A1:B10,2,0)
    --

    HTH,

    RD
    ==============================================
    Please keep all correspondence within the Group, so all may benefit!
    ==============================================


    <[email protected]> wrote in message
    news:[email protected]...
    Hi,

    I am having a difficulty that has been bugging me for some time.

    I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    Numbers stating with 0's have to be set up as text or the 0 disappears.
    Whenever I set up a number as text and I do a vlookup, those numbers
    are not being recognized as matching by the vlookup function. My
    question is: "how can I have a 14 digit number displaying zeros in
    front and still be able to compare it to another spreadsheet with the
    same number using the vlookup function. Please help.



    Mike



  4. #4

    Vlookup text values

    Hi,

    I am having a difficulty that has been bugging me for some time.

    I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    Numbers stating with 0's have to be set up as text or the 0 disappears.
    Whenever I set up a number as text and I do a vlookup, those numbers
    are not being recognized as matching by the vlookup function. My
    question is: "how can I have a 14 digit number displaying zeros in
    front and still be able to compare it to another spreadsheet with the
    same number using the vlookup function. Please help.



    Mike


  5. #5
    Anne Troy
    Guest

    Re: Vlookup text values

    My suggestion: Format ALL of your SCC codes as "00000000000000", then you
    won't have to worry about it.
    *******************
    ~Anne Troy

    www.OfficeArticles.com


    <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I am having a difficulty that has been bugging me for some time.
    >
    > I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    > Numbers stating with 0's have to be set up as text or the 0 disappears.
    > Whenever I set up a number as text and I do a vlookup, those numbers
    > are not being recognized as matching by the vlookup function. My
    > question is: "how can I have a 14 digit number displaying zeros in
    > front and still be able to compare it to another spreadsheet with the
    > same number using the vlookup function. Please help.
    >
    >
    >
    > Mike
    >




  6. #6
    Damon Longworth
    Guest

    Re: Vlookup text values

    All of the data in your lookup array need to have the same format. Where do
    these numbers originate? I would format the column as text before the data
    is inserted. Then the leading 0's will be preserved.


    --
    Damon Longworth

    Don't miss out on the 2005 Excel User Conference
    Sept 16th and 17th
    Stockyards Hotel - Ft. Worth, Texas
    www.ExcelUserConference.com


    <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I am having a difficulty that has been bugging me for some time.
    >
    > I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    > Numbers stating with 0's have to be set up as text or the 0 disappears.
    > Whenever I set up a number as text and I do a vlookup, those numbers
    > are not being recognized as matching by the vlookup function. My
    > question is: "how can I have a 14 digit number displaying zeros in
    > front and still be able to compare it to another spreadsheet with the
    > same number using the vlookup function. Please help.
    >
    >
    >
    > Mike
    >




  7. #7
    RagDyeR
    Guest

    Re: Vlookup text values

    You could try something like this:

    =VLOOKUP(TEXT(A1,"00000000000000"),Sheet1!A1:B10,2,0)
    --

    HTH,

    RD
    ==============================================
    Please keep all correspondence within the Group, so all may benefit!
    ==============================================


    <[email protected]> wrote in message
    news:[email protected]...
    Hi,

    I am having a difficulty that has been bugging me for some time.

    I have 14 digits SCC codes. Some start with 1-9, some start with 0's.
    Numbers stating with 0's have to be set up as text or the 0 disappears.
    Whenever I set up a number as text and I do a vlookup, those numbers
    are not being recognized as matching by the vlookup function. My
    question is: "how can I have a 14 digit number displaying zeros in
    front and still be able to compare it to another spreadsheet with the
    same number using the vlookup function. Please help.



    Mike



+ 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