Index, Filter and Sort across two tables

barney_t

New Member
Joined
Feb 24, 2021
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi,
I am hoping for some assistance as I admitting defeat again!

I am trying to get a formula that will extract a data/ criteria from two tables.

I have been working with Index Sortby Filter with limited success.

On the below I need the result to be the product number with the highest stock which had unit sales of zero or less.

I also need it to be grouped by type and material, therefore referencing cells K2 & K3.

The order of the products will be different in the two tables and some products may not be on the first table and the assumption would be that their sales were zero.

Lastly, without the use of a helper column.

Thank you in advance for taking the time to look at this.

Kind regards

Barney
Book1.xlsx
ABCDEFGHIJKL
1typematerialproductunits soldtypematerialproductstock
2nutmetalproduct12nutmetalproduct15nut
3nutmetalproduct20nutmetalproduct26metal
4nutmetalproduct3-1nutmetalproduct37
5nutmetalproduct64nutmetalproduct45
6nutplasticproduct74boltplasticproduct59
7nutplasticproduct80nutmetalproduct65result
8boltmetalproduct98nutplasticproduct751st hightest stock productproduct3
9boltmetalproduct100nutplasticproduct852nd highest stock productproduct2
10boltmetalproduct1110boltmetalproduct953rd highest stock productproduct4
11boltplasticproduct120boltmetalproduct105
12boltmetalproduct115
13boltplasticproduct125
Sheet1 (3)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,856
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,526
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
You're welcome and thanks for the feedback.

By the way, since Fluff's formulas used the new dynamic arrays functions, they should be faster.

M.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,122
Messages
5,640,243
Members
417,131
Latest member
Seanr19871

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
Top