+ Reply to Thread
Results 1 to 6 of 6

INDEX AND MATCH - what am I doing wrong?

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 365 (Insider Beta)
    Posts
    18

    INDEX AND MATCH - what am I doing wrong?

    Hello Excel people,

    I'm trying to merge data about schools across several different spreadsheets using INDEX and MATCH.

    In the attached example, I'm trying to look up a DFES number (Column B) using the formula:

    =INDEX('URN lookup'!$D$2:$D$1461,MATCH(L2,'URN lookup'!$K$2:$K$1461,0))

    It isn't working, and I can't work out why.

    I'll also need to merge other data - including a URN for each school and about another 15 columns in total. Hopefully with a bit of a prompt I'll be able to work that out on my own!

    Any and all help much appreciated.

    Thanks,

    Philip
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: INDEX AND MATCH - what am I doing wrong?

    You're postcodes on col L have a space before them, either get rid of the space, or use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,364

    Re: INDEX AND MATCH - what am I doing wrong?

    Leading spaces!

    Try this:

    =INDEX('URN lookup'!$D$2:$D$1461,MATCH(TRIM(L2),'URN lookup'!$K$2:$K$1461,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    09-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 365 (Insider Beta)
    Posts
    18

    Re: INDEX AND MATCH - what am I doing wrong?

    Argh! Thanks!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: INDEX AND MATCH - what am I doing wrong?

    Glad to help & thanks for the feedback.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,364

    Re: INDEX AND MATCH - what am I doing wrong?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who helped.

+ 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. Index Match (wrong result)
    By Median in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2018, 03:51 PM
  2. Index/Match wrong?
    By Lugashz in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 07-25-2017, 10:09 AM
  3. [SOLVED] =INDEX($N$3:$Q$100,MATCH(1,($A$2=$N$2:$N$100)*($B$2=$Q$2:$Q$100),0)) what wrong
    By hktom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2015, 11:10 PM
  4. [SOLVED] Index/Match wrong result
    By spinkung in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2015, 05:20 AM
  5. [SOLVED] Row and column match? (IF INDEX MATCH) What am I doing wrong.
    By Noop1887 in forum Excel General
    Replies: 2
    Last Post: 01-04-2015, 09:16 AM
  6. [SOLVED] Index Match Question - What am I doing wrong?
    By JackieAdams in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-27-2012, 04:43 PM
  7. Index and Match-wrong value
    By Steved in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2005, 07:06 PM

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