+ Reply to Thread
Results 1 to 4 of 4

LOOKUP only working w/ 8 Characters? Data from Data Table

  1. #1
    Registered User
    Join Date
    07-01-2019
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    18

    LOOKUP only working w/ 8 Characters? Data from Data Table

    I have a Table1 of Raw data with a Customer # so 8 characters long.
    As I created the Table for the use of creating a unique drop-down with no duplicates - then to create a LOOKUP to get a Carrier Name.

    DB.JPG

    From that Table I create a Formula in another sheet to pull the Customer# to create a list w/out duplicates

    You see the 8 character 33* type. Keep that in mind.

    When I use a LOOKUP - my goal is to get the Carrier Name.

    In the Table1 - i'm going to change a Number to 33700005

    Add_Num_toDB.JPG

    Then go to my Table with the LOOKUP

    Add_Num - DB View.JPG

    As you see it works -

    Now I remove the 5

    Lookup_DB.JPG

    ???????

    What is going on?
    Even if I type 12345678 it doesn't work - so it's not exactly an 8 digit issue.

    1. I have refreshed the table each time
    2. I tried many numbers (32345678)

    UGH! So while Typing this out - I just tested something and here is what's going on and maybe you can help me:

    1. The Table1 & the Lookup are conflicting with SORT ASCENDING

    So while the above was not working - I realized that the # in the first Cell was the lowest. So ANY number I used above that would work.

    When I Sort-Ascend - It all showed up perfectly~

    WHY?
    Why Do I have to have the sort to work?

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: LOOKUP only working w/ 8 Characters? Data from Data Table

    Quote Originally Posted by RLONG98 View Post
    Why Do I have to have the sort to work?
    Because then Excel can employ a binary search, as opposed to linear, the former being thousands of times faster than the latter.

    If you can't guarantee that you can sort the required column, I suggest you switch from LOOKUP to VLOOKUP, since the latter comes with the additional option of being able to choose an exact (linear) or (approximate) binary match. Linear matching does not require the array being searched to be sorted, though it is necessarily slower (especially over large ranges).

    Regards
    Click * below if this answer helped

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

  3. #3
    Registered User
    Join Date
    07-01-2019
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    18

    Re: LOOKUP only working w/ 8 Characters? Data from Data Table

    THANK YOU! Didn't know that.
    Thanks for the quick reply too

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: LOOKUP only working w/ 8 Characters? Data from Data Table

    You're welcome!

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using pivot table to lookup data from large table, but would like to edit
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2017, 12:29 PM
  2. Replies: 1
    Last Post: 03-23-2017, 03:53 PM
  3. Replies: 5
    Last Post: 05-21-2015, 02:33 PM
  4. Replies: 0
    Last Post: 05-16-2014, 11:07 AM
  5. Lookup Value has more Characters then First Column in Table Array - Not working.
    By excelquestion1234 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-03-2014, 08:29 PM
  6. Replies: 3
    Last Post: 03-09-2013, 10:23 AM
  7. Cross Tab Data to Data Table - Lookup
    By dangermouse1981 in forum Excel General
    Replies: 11
    Last Post: 09-14-2011, 03:20 AM

Tags for this Thread

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