+ Reply to Thread
Results 1 to 4 of 4

getting error using =index formula

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    256

    getting error using =index formula

    I am having problem with my =INDEX formula
    I am using =INDEX(L2:L30;MATCH(B4;K2:K30;0))
    the problem is that not all shows up. if the value is letter, the formula works fine but if it is number the i am getting #N/A results
    fyi: I am trimming the text first, I tried to use =left formula and =trim formula but both have the same problem


    TRIM FORMULA PROBLEM.xlsx

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: getting error using =index formula

    When converting you should get numbers (not text) then it will work (i.e. =--LEFT(A4, 1)

    Other way is like this (comfirmed with ctrl+shift+enter):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: getting error using =index formula

    hi Elainefish. when you do a LEFT/RIGHT/MID, you are making numbers become texts too. so column B are all texts while column K contains numbers & texts. few ways:
    1. array formula in C3
    =INDEX($L$2:$L$30,MATCH(B3,$K$2:$K$30&"",0))
    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    2. change formula in B3:
    =IFERROR(LEFT(A3,1)+0,LEFT(A3,1))

    3. change column K to be all Text format.

    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

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: getting error using =index formula

    select column K (do not include merge cell..)
    go to text-to-colum,
    delimeted
    next
    choose "TEXT",
    ok
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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