+ Reply to Thread
Results 1 to 7 of 7

Index match function without array formula for multiple rows.

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Index match function without array formula for multiple rows.

    Hi,

    I have an index match function that updates a field in Table One based on whether a value in Table One is within the range of values in two fields in Table Two.
    Whilst I have managed to get a working function when I try and copy the formula into the other rows within Table one it pulls out the same value for each row which shouldn't happen.
    The function is as follows:
    =INDEX(Sheet2!F$3:F$589,MATCH(1,IF(P2>=Sheet2!M$3:M$589,IF(P22<=Sheet2!Q$3:Q$589,1)),0))

    I have tried it without the array formula and it returns #N/A

    What I want to do is paste the function into cells P3, P4, P5 and at the same time P2 change to the relevant row number. Is this possible with this formula or will I have re-write it?

    Any suggestion and help is greatly appreciated.

    Mark.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Index match function without array formula for multiple rows.

    Hi and welcome to the forum!

    Are you able to upload a sample workbook to illustrate your query? If not, perhaps a reduced, mocked-up version which at least exhibits the same issue.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    01-29-2014
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Index match function without array formula for multiple rows.

    Sure. The tables below are not a copy of the data but it is representative of issue. Colunm 2 in Table 1 should be populated with Colunm 3 of Table 2 if Table 1 Column 1 is within Column 1 and 2 of Table 2.

    Whilst 0.48 and 0.49 will have same value in Table 1 Colunm 2 the rest shouldnt however this is what is happening when I use an array formula.

    Table one.

    Column 1 Column 2
    Mileage as decimal Year
    0.48
    0.49
    1.37
    1.52
    etc

    Table two

    Column 1 Column 2 Column 3
    Start Mileage decimal End Mileage decimal Year
    0.25 0.50 2008
    0.50 1.00 1989
    1.00 1.50 1965
    1.50 2.00 2010


    I hope what I have provided is enough to clarify my issue.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Index match function without array formula for multiple rows.

    Sorry. I meant an actual workbook.

    Regards

  5. #5
    Registered User
    Join Date
    01-29-2014
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Index match function without array formula for multiple rows.

    I can't upload the workbook because its data from work, which I cant share. Sorry about this.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Index match function without array formula for multiple rows.

    That's why I said in my first post "If not, perhaps a reduced, mocked-up version which at least exhibits the same issue.".

    Regards

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index match function without array formula for multiple rows.

    Your IF functions are referencing 2 different cells:

    IF(P2>=Sheet2!M$3:M$589

    IF(P22<=Sheet2!Q$3:Q$589

    Is that correct?

    Not quite sure what this means:

    What I want to do is paste the function into cells P3, P4, P5 and at the same time P2 change to the relevant row number
    Are you entering the formula in cell P2? If so, that'll cause a circular reference.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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 and Match Function across multiple array
    By Ray Park in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-04-2023, 03:28 AM
  2. Array formula - index and match with multiple statements
    By A[L]C in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-06-2013, 11:13 AM
  3. Replies: 1
    Last Post: 05-10-2013, 12:25 AM
  4. [SOLVED] INDEX MATCH array formula that matches substring n gives multiple matches
    By bkwins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 04:57 AM
  5. Replies: 3
    Last Post: 09-30-2011, 02:50 AM

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