+ Reply to Thread
Results 1 to 8 of 8

Index / Match problem

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Index / Match problem

    The other day I saw a formula from "ChemistB", and I am having a problem with it that I cant seem to figure out.

    In the example attached, everything works fine for the first 2 selections (numbers 100 & 101 from the dropdown box) I cant get values to return for selections above 101. I don't know if it is something in the formula or the structure of the sheets or something else I don't see.

    Thanks in advance.

    Jim O


    Thread I got the formulas from.
    HTML Code: 
    Attached Files Attached Files
    Last edited by JO505; 05-05-2013 at 05:48 PM.

  2. #2
    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
    52,926

    Re: Index / Match problem

    Somehow you got the formula a bit messed up...

    =IFERROR(INDEX('LOG 1'!N$2:N$1000,MATCH(ROW($E1),'LOG 1'!$T$2:$T$1000,0)),"")
    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

  3. #3
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Index / Match problem

    Hello,

    This is your formula
    =IFERROR(INDEX('LOG 1'!N$2:N$1000,MATCH(ROW(E3),'LOG 1'!$T$2:$T$1000,0)),"")

    And this is how it should have been
    =IFERROR(INDEX('LOG 1'!N$2:N$1000,MATCH(ROW(E1),'LOG 1'!$T$2:$T$1000,0)),"")

    I have fixed all of your formula on the attached file.

    Also, sorry about the format, I was dragging the formula ...
    Attached Files Attached Files
    (copy pasta from Ford)
    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

    Regards,
    Lem

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Index / Match problem

    FDibbins,

    Thank you very much. That works much better.


    Obviously I don't understand the formula as well as I thought. Would you explain what ROW($E1) does? I thought it was referencing the number I wanted to search for like a cell reference "$cell number". I don't quite understand how the reference is being made.

    Jim O

  5. #5
    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
    52,926

    Re: Index / Match problem

    Thats exactly what it's doing, you are correct. We use ROW(E1)...could be any column...to increase a count in a formula as it gets copied down. ROW(E1) = 1, ROW(E2) = 2 etc. BUT by referencing row(E3) right from the start, instead of E1, it is returning a 3 instead of a 1.

    Actually because of that, even when it was returning values, it was missing the 1st 2 matches every time - you only picked up the error when you asked for something that only has 1 entry on sheet1.

    Hope that helped?

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,290

    Re: Index / Match problem

    ROW(E3)-2 returns the value of 1
    or put just the formula ROW(E1) in row 3
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Index / Match problem

    Thanks to both of you for your response.

    I'll try to remember that, but as "they" say when you get older memory is the second thing to go..... I forget the first!

    Jim O

  8. #8
    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
    52,926

    Re: Index / Match problem

    Im not sure that "they" say that or not, I cant remember any more

+ 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