+ Reply to Thread
Results 1 to 5 of 5

INDEX/MATCH function

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    33

    INDEX/MATCH function

    Hi!

    I'm wondering if someone could help me with a problem i have with INDEX/MATCH function. I am trying to match text in two columns and retreive what is in the third/forth/fifth column.
    If you look at the attached file and look in cell B6, B7 and I4->I13 there is the code i'm using to retrieve it. If you look at cell B4 it's a dropdown list with different cities to search for in M/N columns, together with cell B3.
    The code I'm using is;
    Please Login or Register  to view this content.
    This works well with Shanghai, Hong Kong and Seoul but not Xiamen, Beijing and Ho Chi Minh City. Why is it not working with these cities?
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: INDEX/MATCH function

    hi crakter, welcome to the forum & a Merry Christmas to you. N3:N5 has an extra space behind the text "Oslo". remove them & you'll be fine

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-24-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: INDEX/MATCH function

    Hi benishiryo,

    Thank you so much. That worked well with both Beijing and Ho Chi Minh City but i can't get Xiamen to get matched it seems. (I added TRIM function to the array, also tried to remove it manually)

    Merry Christmas to you too!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: INDEX/MATCH function

    Xiamen in M3 and A19 both have trailing spaces as well. you need to be more careful entering the data
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    12-24-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: INDEX/MATCH function

    This is actually apart of a protected workbook so I haven't entered this just copied.
    But thank you for checking and helping me!

+ 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