Closed Thread
Results 1 to 6 of 6

Applying Vlookup on cell characteristic

  1. #1
    earthworm
    Guest

    Smile Applying Vlookup on cell characteristic

    Guys i have a data

    in colum A i have random 11 digit numbers
    and in same colum i have random 16 digit numbers
    all mix together so i dont know what to do

    i am thinking of applying pivot but for that i want someone to tell me the formula.


    like =if the vaalue of cell a1 contains 11 digit number then if the value is true then "11 Digit Data", if the value is false then "16 digit data" this i want on the cell to be appear . how will i input this command

    i want to apply vlookup / lookup and if formula as well

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Applying Vlookup on cell characteristic

    =len(a1) & " digits"
    Entia non sunt multiplicanda sine necessitate

  3. #3
    earthworm
    Guest

    Re: Applying Vlookup on cell characteristic

    Quote Originally Posted by shg View Post
    =len(a1) & " digits"
    wow thanks .

    ok suppose i want to pick only 3-5 digits from whole numbers how to do that

    the numbers will vary in length .

    like some have 16 , some have 9 ,

    but the starting 4-5 digits are unique so i want to pick only staring 4-5 digit count out of total number

    example

    3245643843215678 ( 324564) is unique
    5443567554344 ( 54435) is unique
    34534545235 (34534) is unique

    i know i can use the formula of =left() but i want to use the len to show selected digit count only
    Last edited by earthworm; 01-07-2010 at 03:02 PM.

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Applying Vlookup on cell characteristic

    Quote Originally Posted by earthworm View Post
    i know i can use the formula of =left() but i want to use the len to show selected digit count only
    I'm not exactly sure what this part means. What do you want to the result of the formula to be? Do you want to determine if the number is 11 digits and then show 5 (the number of digits that make it unique) or 6 if it's 16 digits long? Something else?

  5. #5
    earthworm
    Guest

    Re: Applying Vlookup on cell characteristic

    Quote Originally Posted by darkyam View Post
    I'm not exactly sure what this part means. What do you want to the result of the formula to be? Do you want to determine if the number is 11 digits and then show 5 (the number of digits that make it unique) or 6 if it's 16 digits long? Something else?
    i set limit that if the digit is 16 then pick starting 3 or 15 then pick first 4 digit and so on...

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Applying Vlookup on cell characteristic

    Perhaps =LEFT(A1,19-LEN(A1))

Closed 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