Dynamic Array How to Exclude Columns

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,174
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a dynamic array that I use, I an trying to exclude certain columns but are coming up empty. In this example what if I only wanted Column A,C,D or A,B,D. How would I modify this or what dynamic array formula would allow me to do this?


VBA FWC and BMA Applicants.xlsm
ABCDEF
1School ASchool BSchool CSchool D2
2XXXX
3X
4XXX
5X
6XXX
7
8XX
9XX
10XXXX
11
12XXXX
13X
14X
15X
16XXX
17XX
Sheet4
Cell Formulas
RangeFormula
F1F1=SUM(--BYROW(A2:D17,LAMBDA(x,COUNTIF(x,"X")=0)))
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Book1
ABCDEFG
1School ASchool BSchool CSchool DCount of Included Schools All <> X
2XXXX2All Schools
3X3Exclude School C
4XXX5Exclude Schools B & C
5X
6XXX
7
8XX
9XX
10XXXX
11
12XXXX
13X
14X
15X
16XXX
17XX
Sheet7
Cell Formulas
RangeFormula
F2F2=SUM(--(MMULT(--(A2:D17="X"),{1;1;1;1})=0))
F3F3=SUM(--(MMULT(--(A2:D17="X"),{1;1;0;1})=0))
F4F4=SUM(--(MMULT(--(A2:D17="X"),{1;0;0;1})=0))
 
Upvote 0
Book1
ABCDEFG
1School ASchool BSchool CSchool DCount of Included Schools All <> X
2XXXX2All Schools
3X3Exclude School C
4XXX5Exclude Schools B & C
5X
6XXX
7
8XX
9XX
10XXXX
11
12XXXX
13X
14X
15X
16XXX
17XX
Sheet7
Cell Formulas
RangeFormula
F2F2=SUM(--(MMULT(--(A2:D17="X"),{1;1;1;1})=0))
F3F3=SUM(--(MMULT(--(A2:D17="X"),{1;1;0;1})=0))
F4F4=SUM(--(MMULT(--(A2:D17="X"),{1;0;0;1})=0))
Than you very much.
 
Upvote 0

Forum statistics

Threads
1,216,163
Messages
6,129,225
Members
449,495
Latest member
janzablox

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