INDEX and MATCH formula help - can't get range to expand, and trouble with multiple criteria

amyb2703

New Member
Joined
Aug 24, 2018
Messages
18
At my new job, I inherited a spreadsheet that displays features on our product orders. The order specs are uploaded into a tab name DATA in the file, and the spreadsheet on the main tab looks up items on the DATA tab and then marks X in the field on the main tab when it finds a match for that particular sales code. Results look like this:



Here is an example from column I.

=IFERROR(IF(N771="X","X",INDEX(
Data!$A$2:$N$2000​
,MATCH(1,(Data!$B$2:$B$2000=B771)*(Data!$I$2:$I$2000="TCO302"),0),14)),"")

My first issue is around finding multiple criteria (red item). Recently our product offerings have been increased, and we now have multiple sales codes in each category. The formula today looks for a single item to match and then inserts an "X" in the field. I need it to create the "X" in the field for multiple sales codes. In the example below for column I, it only inserts "X" when TCO302 is found. I need it to insert "X" when either TCO302 or TCO332 or TCO333 is found.


My second issue is increasing the range (green item). Currently the formula only looks for items through row 2000. Our business has grown, and I have order information that is beyond that. Seems like I should just be to change the $N$2000 to $N$5000 or whatever I like, but it doesn't seem to want to work.

Thanks in advance for any help!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Here is a portion of the table:

Order DateOrder #Build #SchedCustomerSalesVINModel302, 332, 333702902, 903
ORDER INFOOPTIONS
8/1TCE408887402yesC C Distributors, Inc - Corpus ChristiT-3SLT - CUSTOM
8/1TCE409017403yesJ&R Ransom Trucking Inc. - Rose CreekT-8BDF1200-P
8/2TCE409237404yesSTOCKT-99CT100
8/2TCE409247405yesSTOCKT-99CT100
8/2TCE409257406yesSTOCKT-99CT100
8/8TCE409727407yesEldon C. Stutsman, Inc. - HillsT-5TCO690M-G3xXx
8/8TCE409737408yesRDO Equipment - Fargo - Corp.T-8TCO690M-G3Xx
8/9TCE409947409yesTalco Enterprises, LLC - NottinghamT-4TCO690M-G3X
8/9TCE410047410yesMaicom, LLC. - North AndoverT-4TCO920M-G3X
8/10TCE410187411yesAg Resources - MaddockT-8CustomxX
8/10TCE410157412yesGrowmark, Inc. - BloomingtonT-5584TCO990EVX
8/13TCE410237413yesBarker Implement Co. - ShelbyvilleT-5TCO500X
8/13TCE410437414yesCNH - N&S Tractor - TurlockT-7CustomXX
8/13TCE410227415yesWheeler Machinery Co. - Salt Lake CityT-7TCO920M-G3X
8/13TCE410287416yesWheeler Machinery Co. - Salt Lake CityT-7TCO920M-G3xXx

<tbody>
</tbody>
<strike>
</strike>
 
Upvote 0
The source data is pulled from our MRP database into a tab in the workbook and looks like this. The field "SO Number" is the MATCH part of the formula - the "Data!$B$2:$B$2000" portion of the formula. - on my main tab, I key in the SO Number and it looks for the lines that include a match to it, then it marks "X" into columns that also have a corresponding match to the item in the column (the "Data!$I$2:$I$2000="TCO302" part of the formula).

SO NumberJOBSTATSTerritory IDDealerOrder DateOrder WeekPromise DateItemItem DescriptionREF1CitySORTNOColumn1
TCE41379TCO202TCE41379ORDEREDT-5KDK Sales - Washington8/27/2018358/28/2018TCO202-GYStandard Paint Color - GRAYT-5Washington20X
TCE41379TCO514TCE41379ORDEREDT-5KDK Sales - Washington8/27/2018358/28/2018TCO5148 Bolt Steel / Standard TiresT-5Washington30X
TCE41379TCO990TCE41379ORDEREDT-5KDK Sales - Washington8/27/2018358/28/2018TCO990EVEV990 BASE PARTST-5Washington10X
TCE41381TCO102TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO102Rear Utility BoxT-5Hills20X
TCE41381TCO202TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO202-WTCustom Paint Color - WHITET-5Hills80X
TCE41381TCO303TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO303FUEL REEL, 35' STANDARDT-5Hills40X
TCE41381TCO305TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO305DEF REEL, 35' STANDARDT-5Hills50X
TCE41381TCO307TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO30710 Micron Filter SystemT-5Hills90X
TCE41381TCO502TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO502Electric / Hydraulic JackT-5Hills60X
TCE41381TCO750TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO750FST750 BASE PARTS LISTT-5Hills10X
TCE41381TCO904TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO904Signature PackageT-5Hills30X
TCE41381TCO907TCE41381ORDEREDT-5Eldon C. Stutsman, Inc. - Hills8/27/2018358/31/2018TCO907STANDARD FENDERS AND ROCK GUARDT-5Hills70X
TCE41365ADT502TCE41365ORDEREDT-2Yancey Brothers, Co. - Austell8/24/20183410/26/2018ADT5026PINTLE HITCH (UNDER 14K GVWR)T-2Austell80X
TCE41365FreighTCE41365ORDEREDT-2Yancey Brothers, Co. - Austell8/24/20183410/26/2018FreightFreight Delivery ChargeT-2Austell100X

<tbody>
</tbody>
 
Upvote 0
Your second issue is that the rows for your match & index ranges should all be increased. You could also use Named ranges or Table[Fields]
I prefer Table[Fields] since they expand. Named ranges can expand for you if you follow the tricks.
 
Upvote 0
I have bunch of Index(match formulas and would like to add Iferror in front of all of them at once. Is there a way?
 
Upvote 0
My problem is that if I increase them, even updating the formula manually to go to $I$8000, it doesn't actually do it. I can refresh data, save and reopen, and it will say my new range in the formula, but not actually recognize the data. Any ideas on why that might be? In the meantime, I have changed my sort on that table to decrease the likelihood that open orders remain in the range that is recognized.
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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