FILTER Function - Maintaining subheadings without #SPILL

MurdochQuill

Board Regular
Joined
Nov 21, 2020
Messages
84
Office Version
  1. 365
Platform
  1. Windows
Hi,

To begin with, I'm stuck using cell formulas due to Excel Online.... & I would ideally like this to be recalculated when formulas are recalculated.

I'm looking to format my data below like it is under "Ideal output"

I would like to avoid spill errors if I find more ID matches, and push the subheadings further down the page when more results are encountered.

The sheet looks like this,
Book1
ABCDEFGHIJKLMNOPQR
1INPUT DATAInitial formatIdeal output
2IDDataTerrestrial?Desert?Rocky?Gas?Terrestrial:Terrestrial:YES
3Earth3425YESNONONOEarth3425
4Mars456NOYESNONODesert:Earth345
5Jupiter325NONONOYESDesert:
6Jupiter245326NONONOYESRocky:Mars456
7Mars567NOYESNONOMars567
8Mercury3415NONONONOGas:Mars43
9Pluto456NONOYESNORocky:
10Pluto4652NONOYESNOPluto456
11Earth345YESNONONOPluto4652
12Mars43NOYESNONOGas:
13Jupiter325
14Jupiter245326
Sheet1
Cell Formulas
RangeFormula
E3:E12E3=IF(SUM((B4:B13<>"")*(ISNUMBER(MATCH("Earth",B3,0)))), "YES", "NO")
F3:F12F3=IF(SUM(($B3:$B12<>"")*(ISNUMBER(MATCH("Mars",$B3,0)))), "YES", "NO")
G3:G12G3=IF(SUM(($B3:$B12<>"")*(ISNUMBER(MATCH("Pluto",$B3,0)))), "YES", "NO")
H3:H12H3=IF(SUM(($B3:$B12<>"")*(ISNUMBER(MATCH("Jupiter",$B3,0)))), "YES", "NO")
N3:O4N3=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(E3:E12,R2,0))),"")
N6:O8N6=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(F3:F12,R2,0))),"")
N10:O11N10=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(G3:G12,R2,0))),"")
N13:O14N13=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(H3:H12,R2,0))),"")
Dynamic array formulas.



But for example, if anything more is added, the following would give a SPILL error. However, I would like it to push the column further down like this:
Book1
ABCDEFGHIJKLMNOPQRS
1INPUT DATAInitial formatIdeal output
2IDDataTerrestrial?Desert?Rocky?Gas?Terrestrial:Terrestrial:YES
3Earth3425YESNONONOEarth3425
4Mars456NOYESNONODesert:Earth345
5Jupiter325NONONOYESDesert:
6Jupiter245326NONONOYESRocky:Mars456
7Mars567NOYESNONOMars567
8Mercury3415NONONONOGas:Mars43
9Pluto456NONOYESNOMars12
10Pluto4652NONOYESNOMars123
11Earth345YESNONONOMars124
12Mars43NOYESNONOMars125
13Mars126
14Mars127
15Mars128
16Mars129
17Mars130
18Mars131
19Mars132
20Mars133
21Rocky:
22Pluto456
23Pluto4652
24Gas:
25Jupiter325
26Jupiter245326
27
28
Sheet1
Cell Formulas
RangeFormula
E3:E12E3=IF(SUM((B4:B13<>"")*(ISNUMBER(MATCH("Earth",B3,0)))), "YES", "NO")
F3:F12F3=IF(SUM(($B3:$B12<>"")*(ISNUMBER(MATCH("Mars",$B3,0)))), "YES", "NO")
G3:G12G3=IF(SUM(($B3:$B12<>"")*(ISNUMBER(MATCH("Pluto",$B3,0)))), "YES", "NO")
H3:H12H3=IF(SUM(($B3:$B12<>"")*(ISNUMBER(MATCH("Jupiter",$B3,0)))), "YES", "NO")
N3:O4N3=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(E3:E12,R2,0))),"")
N6:O8N6=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(F3:F12,R2,0))),"")
N22:O23N22=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(G3:G12,R2,0))),"")
N25:O26N25=IFERROR(FILTER(B3:C12,ISNUMBER(MATCH(H3:H12,R2,0))),"")
Dynamic array formulas.


Any help or advice on how else to solve this would be great!
 
What part of that formula doesn't like Excel Online
The FilterXml function is only available on a PC.

As this i now a completely different question, you will need to start a new thread. Thanks
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
The FilterXml function is only available on a PC.

As this i now a completely different question, you will need to start a new thread. Thanks

Hey, no worries, thought it might be okay since I'm taking advice from a poster in the thread about formatting it differently.

But I do understand that the question needs to be specifically posted & answered in a way that is easily searchable for future reference, so I might make a new one if that's the case :).
 
Upvote 0

Forum statistics

Threads
1,224,826
Messages
6,181,192
Members
453,021
Latest member
pingpong7117

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