Match & Countifs (probably ..)

moocifer

New Member
Joined
Jul 13, 2019
Messages
3
I've been struggling with a formulae (having tried various connotations of COUNTIFS) to first:

- count the number of matches per item (an item can occur multiple times in the Master list) on an extensive list but that is further restricted to only those whose characteristic of interest has to be present on another controlling list (so again it must be an array check rather than simply picking out simple singular matches).

.. and then of course to list these "characteristics of interest" either using TEXTJOIN or across a row using AGGREGATE.

Any tips / ideas please ?? :eek:
 

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.
So I've finally managed to get something working for the first part:

Code:
[COLOR=#b22222]
[/COLOR][SIZE=4][COLOR=#008000]=SUMPRODUCT(--(lx02_lang[Material]=[@MATERIAL]),IFNA(SIGN(MATCH(lx02_lang[StorageBin],TBL_loc[BIN],0)),0))
[/COLOR][/SIZE]

.. however I'm not convinced it's the fastest or most elegant solution.:confused:
 
Upvote 0
Taken a fresh look this morning, and whilst the above formula works fine along side:

Code:
[COLOR=#008000][SIZE=4]=IF(COLUMNS($R58:R58)>[@LOCS],"",INDEX(lx02_lang[StorageBin],AGGREGATE(15,6,(ROW(lx02_lang[StorageBin])-ROW(lx02_lang[[#Headers],[StorageBin]]))/((lx02_lang[Material]=[@MATERIAL])*(MATCH(lx02_lang[StorageBin],TBL_bin[BIN],0)>0)),COLUMNS($R58:R58)),0))[/SIZE][/COLOR]

.. to extract the required data, I cannot understand why the following doesn't also work as a counter:

Code:
[SIZE=4][COLOR=#800000]=COUNTIFS(lx02_lang[Material],[@MATERIAL],ifna(SIGN(MATCH(lx02_lang[StorageBin],TBL_loc[BIN],0)),0),1)[/COLOR][/SIZE]

Any comments/thoughts would be appreciated.:eek:
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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