TheMacroNoob
Board Regular
- Joined
- Aug 5, 2022
- Messages
- 52
- Office Version
- 365
- Platform
- Windows
I don't have access to VSTACK yet, so I am using a workaround to stack many dynamic arrays on top of each other in a list.
To do this, my helper array formula is as follows:
=LET(NUMCols,COLUMNS(Sheet1!C6:E15),RowsA,ROWS(Sheet1!C6:E15),RowsB,ROWS(Sheet2!C6:E15),SeqCol,SEQUENCE(RowsA+RowsB),SeqRow,SEQUENCE(1,NUMCols),Result,IF(SeqCol<=RowsA,INDEX(Sheet1!C6:E15,SeqCol,SeqRow),INDEX(Sheet2!C6:E15,SeqCol-RowsA,SeqRow)),Result)
This results in the following:
For starters, is there a way to wrap the above formula in a FILTER function to filter out the "Damaged" column, and any row that doesn't contain "Yes"?
As of now I am, in another column, using this formula to filter: =FILTER(H6#,(H5:J5="Building")+(H5:J5="Deductible")) to narrow down my columns. Can I add an argument to eliminate the rows containing "Yes" in the damaged column?
To do this, my helper array formula is as follows:
=LET(NUMCols,COLUMNS(Sheet1!C6:E15),RowsA,ROWS(Sheet1!C6:E15),RowsB,ROWS(Sheet2!C6:E15),SeqCol,SEQUENCE(RowsA+RowsB),SeqRow,SEQUENCE(1,NUMCols),Result,IF(SeqCol<=RowsA,INDEX(Sheet1!C6:E15,SeqCol,SeqRow),INDEX(Sheet2!C6:E15,SeqCol-RowsA,SeqRow)),Result)
This results in the following:
EMT1529.xlsx | |||||
---|---|---|---|---|---|
H | I | J | |||
4 | Helper | ||||
5 | Building | Damaged | Deductible | ||
6 | 1 | Yes | 72762 | ||
7 | 2 | Yes | 61570 | ||
8 | 3 | Yes | 61849 | ||
9 | 4 | Yes | 71001 | ||
10 | 5 | Yes | 71044 | ||
11 | 6 | Yes | 96660 | ||
12 | 7 | Yes | 110792 | ||
13 | 8 | Yes | 75367 | ||
14 | 9 | Yes | 59733 | ||
15 | 10 | Yes | 78861 | ||
16 | A | Yes | 107967 | ||
17 | B | 0 | 112415 | ||
18 | C | 0 | 118634 | ||
19 | D | 0 | 76366 | ||
20 | E | Yes | 111093 | ||
21 | F | 0 | 103157 | ||
22 | G | Yes | 64347 | ||
23 | H | Yes | 60256 | ||
24 | I | 0 | 62276 | ||
25 | J | Yes | 94330 | ||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H6:J25 | H6 | =LET(NUMCols,COLUMNS(Sheet1!C6:E15),RowsA,ROWS(Sheet1!C6:E15),RowsB,ROWS(Sheet2!C6:E15),SeqCol,SEQUENCE(RowsA+RowsB),SeqRow,SEQUENCE(1,NUMCols),Result,IF(SeqCol<=RowsA,INDEX(Sheet1!C6:E15,SeqCol,SeqRow),INDEX(Sheet2!C6:E15,SeqCol-RowsA,SeqRow)),Result) |
Dynamic array formulas. |
For starters, is there a way to wrap the above formula in a FILTER function to filter out the "Damaged" column, and any row that doesn't contain "Yes"?
As of now I am, in another column, using this formula to filter: =FILTER(H6#,(H5:J5="Building")+(H5:J5="Deductible")) to narrow down my columns. Can I add an argument to eliminate the rows containing "Yes" in the damaged column?