Hi,
The original WB has more rows/Columns but I'm sure a small sample will be enough.
In the attached WB - a two-dim. Table presenting Items and in which ware house they can be found.
The Original task is to FIND (filter-out) 7 random items in order to find the largest number of warehouses.
If, because of that small example, it will be easier to check and present a solution with only 3 or 5 Items filtered - it will be fine as long as it returns the max. numbers of warehouses.
(It will be for great help if the Items number can be filled into a cell - to which the Formula will refer to).
As you may understand - the Item(s) has no meaning - they could be any combination from the 15 Items - the important task is to find the Max. Numbers of warehouses in which 7 random Items are stored.
In the attached table I could find it by many trials of filtering - but as the table is much bigger - I need a Formula and/or VBA [UDF or Macro].
If the task can not be accomplished with Sheet Function(s) - then using VBA is preferable.
Helper column(s) comes at last if and only there is no other way around.
I hope I made myself clear,
Thanks in advance, Elm
Bookmarks