Index, Match limitations

SFCChase

Board Regular
Joined
Jun 25, 2013
Messages
110
Office Version
  1. 2016
Platform
  1. Windows
Is there a limitation to the size of table that can be index/matched?

I have a workbook with multiple tabs. 1 tab is solely composed of tables of data. Another tab (labeled ACFT Table) uses entered data to run a search of the data tables. The following formula works perfectly and returns correct results

=IF(F8="M",INDEX('ACFT Table'!$C$4:$L$32,MATCH($H8,'ACFT Table'!$B$4:$B$32,0),MATCH(E8,'ACFT Table'!$C$2:$L$2,1)),IF(F8="","","")))

When I change the search variables and table locations I get an #NA error.

=IF(F8="M",INDEX('ACFT Table'!$O$4:$X$128,MATCH($H8,'ACFT Table'!$N$4:$N$128,0),MATCH(E8,'ACFT Table'!$N$2:$X$2,1)),IF(F8="","","")))

I have found that if i enter data between lines 4 and 68 i will get a result, but anything past 69 gives me the #NA error.

Any suggestions would be great.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
No, it's not a size problem.

When you get the error, check your two MATCH values, i.e. MATCH($H8,'ACFT Table'!$N$4:$N$128,) and MATCH(E8,'ACFT Table'!$N$2:$X$2,1)

You should find that one (or both) have value #N/A, i.e. the match wasn't found?

Incidentally, your second match has match_type = 1. Is this what you intended? Also, if you do get a result it will be one column out, because you're indexing on O:X but matching on N:X
 
Upvote 0
No, it's not a size problem.

When you get the error, check your two MATCH values, i.e. MATCH($H8,'ACFT Table'!$N$4:$N$128,) and MATCH(E8,'ACFT Table'!$N$2:$X$2,1)

You should find that one (or both) have value #N/A, i.e. the match wasn't found?

Incidentally, your second match has match_type = 1. Is this what you intended? Also, if you do get a result it will be one column out, because you're indexing on O:X but matching on N:X
The Match being a column over is intentional. The value I'm looking for is in Column N but the data table itself starts in Column O.

The N/A error is showing up in my first MATCH portion, but only if i search for a value found below row 68.
 
Upvote 0
The N/A error is showing up in my first MATCH portion, but only if i search for a value found below row 68.

If: =MATCH($H8,'ACFT Table'!$N$4:$N$128,) returns #N/A, and you think there is a match in 'ACFT Table'!N69, say,

Then if you test: =H8='ACFT Table'!N69, you should find it returns FALSE, i.e. it's not actually a match.

This might be because:
- You're comparing text values, and there are space differences, e.g. leading or trailing space characters
- You're comparing numbers, and some of your "numbers" are actually text values
 
Upvote 0
If: =MATCH($H8,'ACFT Table'!$N$4:$N$128,) returns #N/A, and you think there is a match in 'ACFT Table'!N69, say,

Then if you test: =H8='ACFT Table'!N69, you should find it returns FALSE, i.e. it's not actually a match.

This might be because:
- You're comparing text values, and there are space differences, e.g. leading or trailing space characters
- You're comparing numbers, and some of your "numbers" are actually text value
This is driving me insane....it is returning a FALSE value for any row below N68 but i have gone into formatting on the data table, column N, and the input variable on H8 and all are set to Number with 1 decimal point. I don't understand how it's returning a FALSE
 
Upvote 0
This is driving me insane....it is returning a FALSE value for any row below N68 but i have gone into formatting on the data table, column N, and the input variable on H8 and all are set to Number with 1 decimal point. I don't understand how it's returning a FALSE
So to make things even more confusing....i went line by line with the =h8=n# for every number that is in the N column (runs from 3.5 up to 16.0 in 0.1 increments) and found that all input values between 6.0 and 10.0 return a FALSE and everything else is TRUE....I'm so confused
 
Upvote 0
Using Format Cells will not change a cell from text to a number.

Try this to change text to numbers.
Select your column N
Goto
  1. Data
  2. Text to Columns
  3. Next
  4. Next
  5. Your 3rd screen should look like below (make sure General is checked)
  6. Finish
1691087621791.png
 
Upvote 0
... or if you like keyboard shortcuts: ALT+D, E, F
So I ended up going through every line of my table column (column N) and it looks like for some reason when i used a drag to fill in values it sporadically would change them but still display whole numbers.

example: I drug down from 10.0, 9.9, 9.8 etc....to 3.0. For some reason instead of 8.2 being entered it was put in as 8.19999978 or 8.20000001. That was giving me my FALSE error. No idea why it happened, but i went in and manually entered each value and now it seems to be working again.

thanks for the help
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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