+ Reply to Thread
Results 1 to 17 of 17

Index Match two worksheets

  1. #1
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Index Match two worksheets

    Hi! First time poster! Thank you so much for offering this forum.

    Question: I would like to use the Index Match with multiple criteria across two worksheets. My other index match formulas work among other schedules however this time my second worksheet is full of other data which I wonder if is causing my formula to fail. Essentially, I need the fuel data from Sheet 2 to populate in Sheet 1 by unit. Sheet 2 worksheet is not setup like a standard schedule; I didn't create it- its received from a different department.

    Attached is a sample.

    Any insight is greatly appreciated!

    Christina
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Index Match two worksheets

    Try this

    =INDEX(Sheet2!$C$7:$C$12, MATCH(1,(Sheet1!A4=Sheet2!$A$5)*(Sheet1!F2=Sheet2!$E$7:$E$10),0))

  3. #3
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Index Match two worksheets

    Unless I am doing something wrong in the test sheet, it didn't work.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: Index Match two worksheets

    Formula needs to entered as below ....

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. 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.

  5. #5
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Index Match two worksheets

    Thanks @JohnTopley, I was pulled into a meeting needed to submit the formula

  6. #6
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Index Match two worksheets

    Attached the file with the {}, still not functioning.

    Thanks so much for your help!
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Index Match two worksheets

    Please note the difference

    The formula I posted was:
    =INDEX(Sheet2!$C$7:$C$12, MATCH(1,(Sheet1!A4=Sheet2!$A$5)*(Sheet1!F2=Sheet2!$E$7:$E$10),0))

    Your formula is:
    =INDEX(Sheet2!C7:E12,MATCH(Sheet1!A4,Sheet2!A2:A12,0),MATCH(Sheet1!F2,Sheet2!C7:E11,0))

    Copy and paste my formula into the cell, then follow the final step as @JohnTopley mentioned.

    Thanks
    Last edited by Syrkrasi; 07-20-2017 at 08:29 AM.

  8. #8
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Index Match two worksheets

    My apologies. The formula works for the sample sheet. However it doesn't work among the other cells after I adjust the formula ranges highlighted:
    =INDEX(Sheet2!$C$7:$C$12, MATCH(1,(Sheet1!A4=Sheet2!$A$5)*(Sheet1!F2=Sheet2!$E$7:$E$10),0)) With my adjustments the formula continues to pull the first lookup. Could it have something to do with : ...,MATCH(1,(...?

    Kindly advise.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: Index Match two worksheets

    Post file showing incorrect results.

  10. #10
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Index Match two worksheets

    Attached.

    Thank you!
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: Index Match two worksheets

    Your layout is a nightmare when it comes to creating formulae: I will look at shortly to try and find a solution.

  12. #12
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Index Match two worksheets

    OMG I know!!! But I cant recreate the wheel of the other department's long standing schedule. Thank you so much for your help!

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: Index Match two worksheets

    in F6

    =IFERROR(INDEX(Sheet1!$C$1:$C$1000,MATCH($A6,Sheet1!$A$1:$A$1000,0)+MATCH($F$4,OFFSET(Sheet1!$A$1,MATCH($A6,Sheet1!$A$1:$A$500,0),4,1000),0)),0)

    Copy to F12 etc

    I saved file as XLSX but you may want it as XLS (as per your original).
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Index Match two worksheets

    You are amazing for coming up with this however the sheet is so convoluted that the Quarles fuel is sometimes split between multiple states and also needs to be recorded as such - something I failed to mentioned and didn't realize ( again) until I updated it with your new formula.

    This master sheet I have shared with you is used to report interstate fuel tax - mileage is also needed to complete this exercise. Perhaps you could assist with that? The mileage sheet is setup less whacky.

    My index match formula "works" in that it returns a value but not the monthly total value needed. I haven't figured out how to fix that.
    Please see attached.

    Thank you so much!

    Christina
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: Index Match two worksheets

    For your mileage:

    in U6 and copy across to AC

    =IFERROR(INDEX(Sheet3!$H$1:$P$1000,MATCH($A6,Sheet3!$A$1:$A$1000,0)+MATCH("Total",OFFSET(Sheet3!$A$1,MATCH($A6,Sheet3!$A$1:$A$1000,0),0,1000),0),MATCH('1ST QTR'!U$4,Sheet3!$H$7:$P$7,0)),0)

    Copy to other ranges as before

  16. #16
    Registered User
    Join Date
    07-19-2017
    Location
    DC
    MS-Off Ver
    Office 2013
    Posts
    8

    Thumbs up Re: Index Match two worksheets

    The mileage formula worked wonderfully!! Thank you!! You are an absolute genius!

    Lost cause with the fuel, right?


  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: Index Match two worksheets

    in E6

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. 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.

    Copy across to I6

    Select E6:I6 and copy/paste to other ranges.
    Last edited by JohnTopley; 07-21-2017 at 11:45 AM.

+ 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 across several worksheets
    By Twingo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2016, 01:26 PM
  2. [SOLVED] INDEX/MATCH across several worksheets
    By hennakao in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-25-2016, 08:07 AM
  3. Index Match Function across different worksheets
    By Shay_mt in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 10:57 PM
  4. INDEX and MATCH across two worksheets
    By murleyj in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 07-13-2014, 01:41 PM
  5. Index and Match from different worksheets
    By djbcktt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2013, 03:27 PM
  6. Index and Match across multiple worksheets
    By GTHORE in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-09-2013, 01:05 PM
  7. Need to use MATCH and INDEX over 2 worksheets
    By khedger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2012, 09:55 AM

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