+ Reply to Thread
Results 1 to 4 of 4

INDEX/MATCH problem when looking up data with various prefixes (letters and numbers)...

  1. #1
    Registered User
    Join Date
    07-23-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    4

    Wink INDEX/MATCH problem when looking up data with various prefixes (letters and numbers)...

    In one workbook, I have a working sheet, and a lookup sheet containing employee information.

    I have an INDEX/MATCH formula which will look up the Associate ID, and return the first and last name of the employee. Basically, it's:
    =INDEX(lookup!D:D,MATCH(D2,lookup!C:C,0))

    The format of our Associate ID's can vary:
    • sometimes starts with a zero (example: 84062)
    • sometimes starts with a different digit (example: 08462)
    • sometimes starts with a letter(example: O8462)


    On my working sheet, sometimes I can type the Associate ID# in manually, and the formula works fine. Other times I'm pasting from an unformatted .txt list of hundreds of Associate ID#s. When clicking on any one of my pasted cells, it looks identical to any other cell (i.e., no extra spaces, same cell format), however only about 1 our of every 20 actually performs the lookup correctly (the others find nothing). Clicking manually calculate does not yield different results. However, if I type the EXACT same ID# on top, rewriting the cell, it DOES calculate correctly. What's up with that?

    What format should the Associate ID columns be, both in the lookup sheet and the working sheet? General, Number, Text, Special, Custom, or otherwise? Or do I need to give up, and remember why I chose INDEX/MATCH over VLOOKUP?

    Thank you in advance!

  2. #2
    Registered User
    Join Date
    07-23-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    4

    Re: INDEX/MATCH problem when looking up data with various prefixes (letters and numbers)..

    I THINK the =TRIM command may have worked... testing it on various cells now.

  3. #3
    Registered User
    Join Date
    07-23-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    4

    Re: INDEX/MATCH problem when looking up data with various prefixes (letters and numbers)..

    I spoke too soon. As soon as I saved, and returned to the workbook later, the same problem occurs. =TRIM doesn't seem to be working anymore.

  4. #4
    Registered User
    Join Date
    07-23-2014
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    4

    Re: INDEX/MATCH problem when looking up data with various prefixes (letters and numbers)..

    Additionally, every time I hit "calculate sheet," it seems to find and then not find different data! i.e., on my last F9 it successfully looked up one row, row 2, out of the first 20. Did it again, and row 2 turned back to #N/A's... but it successfully looked up row 3.

+ 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] Index Match with lookup values containing letters, numbers and spaces
    By makinwaves in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-18-2014, 08:06 PM
  2. Match inputs in one column with data from another if >50% of their consec letters match
    By TaskinRahman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-24-2012, 01:47 AM
  3. [SOLVED] matching index of an array - works for numbers not letters
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2012, 10:43 AM
  4. [SOLVED] Problem with INDEX, MATCH, and a function to count data from a table
    By Pentasyllabic in forum Excel General
    Replies: 10
    Last Post: 05-22-2012, 05:16 PM
  5. Sorting numbers that have 2 prefixes
    By CNN in forum Excel General
    Replies: 14
    Last Post: 05-10-2012, 10:35 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