Index match configured to ignore blank rows

pbarr

New Member
Joined
Mar 6, 2018
Messages
2
I have a large file with numerous “VLOOKUP” functions that I would like to change to “INDEX/MATCH” for efficiency. To do so, the INDEX/MATCH equation apparently must ignore blank rows in the data. Can this be done?

Here is my initial attempt which only works on the first item (row 4 (HRL)) but will not work on row 43 (UTX), apparently because of the intervening blank rows.

Formula in J4 - {=INDEX('Stock Input'!$X$4:$AA56,,4,MATCH(Alerts!B4,Alerts!$B$4:$B$56))}

Link to Spreadsheet in Dropbox – https://www.dropbox.com/s/i7fhvvs7nntrtt8/INDEX MATCH TEST v1.xlsm?dl=0

SHEETNAME "ALERTS"

[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]#[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4[/TD]
[TD]HRL[/TD]
[TD]{=INDEX('Stock Input'!$X$4:$AA56,,4,MATCH(Alerts!B4,Alerts!$B$4:$B$56))}[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]43[/TD]
[TD]UTX[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]56[/TD]
[TD]CNMX[/TD]
[TD]???[/TD]
[/TR]
</tbody>[/TABLE]

SHEETNAME "STOCK INPUT"

[TABLE="class: outer_border, width: 300"]
<tbody>[TR]
[TD]COL
#[/TD]
[TD]X[/TD]
[TD]Y[/TD]
[TD]Z[/TD]
[TD]AA[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4[/TD]
[TD]HRL[/TD]
[TD]HORMEL[/TD]
[TD]29.35[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16[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]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Can anyone help with a solution? Thanks in advance.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Rich (BB code):
=INDEX('Stock Input'!$AA$4:$AA56,MATCH(Alerts!B4,Alerts!$B$4:$B$56))
I'm pretty sure that should be
Rich (BB code):
=INDEX('Stock Input'!$AA$4:$AA56,MATCH(Alerts!B4,'Stock Input'!$X$4:$X$56))
 
Last edited:
Upvote 0
Thanks for your reply Jonmo1. Unfortunately, that didn't work either. I have converted a number of my Vlookup formulas to Index,Match, but can't seem to get this one to work. The working formula is:
=vlookup(B6,'Stock Input'!$x$4:$ax$5591,10) where "B6" = Row Number, "x4:ax5591" = Database, and "10" is the Column Number of the potential answer. Any suggestions for converting this to index,match would be appreciated. Thanks in advance for your assistance.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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