Index & Match Help

spyldbrat

Board Regular
Joined
May 5, 2002
Messages
211
Office Version
  1. 365
I have two spreadsheets: 2017-08-03 Compliance Response and Current Compliance. Both spreadsheets have the same column and column headers.

2017-08-03 COMPLIANCE RESPONSE/NJN Tab - I need to add the data from column K using column L as my lookup value to column H of the "CURRENT COMPLIANCE". I cannot move my lookup value column on the spreadsheets.

I tried and Index/Match formula but it's not working. This is the formula I have in column H of CURRENT COMPLIANCE. What is wrong with my formula?

=INDEX($A$8:$M553,MATCH(L8,'Compliance Response.xlsm]NJN'!$A8:$M500,0),12)
 
I am no longer getting an error, but it's displaying the incorrect data for the value look up. Below are two examples:

Look up value on spreadsheet with formula: 21277 NJ EE Stmt Rcvd in Corp
Displaying the Value Lookup for "12961 NJ SM Form/Rcpt Rcvd in Corp" from the source spreadsheet

Look up value on spreadsheet with formula: 21508 NJ EE Stmt Rcvd in Corp
Displaying the Value Lookup for "12961 NJ Temp Cert Rcd in Corp" from the source spreadsheet

Below is the formula I have entered. My data does not start until row 8 and does not go beyond 500.

=INDEX('[Compliance Response.xlsm]NJN'!$H8:$H500,MATCH(L8,'[Compliance Response.xlsm]NJN'!$L8:$L500,0))
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I am no longer getting an error, but it's displaying the incorrect data for the value look up. Below are two examples:

Look up value on spreadsheet with formula: 21277 NJ EE Stmt Rcvd in Corp
Displaying the Value Lookup for "12961 NJ SM Form/Rcpt Rcvd in Corp" from the source spreadsheet

Look up value on spreadsheet with formula: 21508 NJ EE Stmt Rcvd in Corp
Displaying the Value Lookup for "12961 NJ Temp Cert Rcd in Corp" from the source spreadsheet

Below is the formula I have entered. My data does not start until row 8 and does not go beyond 500.

=INDEX('[Compliance Response.xlsm]NJN'!$H8:$H500,MATCH(L8,'[Compliance Response.xlsm]NJN'!$L8:$L500,0))

Probably because the ranges are not abosute. Try...

=INDEX('[Compliance Response.xlsm]NJN'!$H$8:$H$500,MATCH($L8,'[Compliance Response.xlsm]NJN'!$L$8:$L$500,0))
 
Upvote 0
If you are copying the formula down then you want the H8:H500 to be absolute references so that it always looks at the same range.
Code:
=INDEX('[Compliance Response.xlsm]NJN'!$H[B]$[/B]8:$H[B]$[/B]500,MATCH(L8,'[Compliance Response.xlsm]NJN'!$L8:$L500,0))
 
Upvote 0
I tried both of your formulas and it's still not working. The data that was displaying came from rows 13 and 14 from the source spreadsheet. After I made the cells absolute, the data that is displaying is coming from rows 8 and 9 of my source data. This happened with both of your suggestions.

=INDEX('[Compliance Response.xlsm]NJN'!$h$8:$h$500,MATCH(L8,'[Compliance Response.xlsm]NJN'!$L8:$L500,0))
 
Upvote 0
I tried both of your formulas and it's still not working. The data that was displaying came from rows 13 and 14 from the source spreadsheet. After I made the cells absolute, the data that is displaying is coming from rows 8 and 9 of my source data. This happened with both of your suggestions.

=INDEX('[Compliance Response.xlsm]NJN'!$h$8:$h$500,MATCH(L8,'[Compliance Response.xlsm]NJN'!$L8:$L500,0))

You need:

=INDEX('[Compliance Response.xlsm]NJN'!$H$8:$H$500,MATCH($L8,'[Compliance Response.xlsm]NJN'!$L$8:$L$500,0))

 
Last edited:
Upvote 0
You have the same problem with your L8:L500 range it should also be absolute.

Code:
=INDEX('[Compliance Response.xlsm]NJN'!$H[B]$[/B]8:$H[B]$[/B]500,MATCH(L8,'[Compliance Response.xlsm]NJN'!$L[B]$[/B]8:$L[B]$[/B]500,0))
 
Upvote 0
I tried that too. Same result.

=INDEX('[Compliance Response.xlsm]NJN'!$H$8:$H$500,MATCH($L8,'[Compliance Response.xlsm]NJN'!$L$8:$L$500,0)) <!-- edit note -->
means:

compare L8 with $L$8:$L$500
if L8 is in $L$8:$L$500, give its position to INDEX which picks out a value from the same position in $H$8:$H$500.

If this is indeed what you want, care to post what you have in L8, not L8 of $L$8:$L$500?
 
Upvote 0
Oh my gosh - I just realized what I did. I was testing data that didn't actual start until line 162 of my spreadsheet. I was putting L8 instead of L162 into this cell. I am so sorry for all the confusion but I do truly appreciate everyone's help and patience!!!!! Thank you all!!!!!
 
Upvote 0
Oh my gosh - I just realized what I did. I was testing data that didn't actual start until line 162 of my spreadsheet. I was putting L8 instead of L162 into this cell. I am so sorry for all the confusion but I do truly appreciate everyone's help and patience!!!!! Thank you all!!!!!

You are welcome.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top