In Excel, I have a range B4:E100 in a worksheet, assume the content is like the follows. I'm looking for a formula (as simple as possible, with new Excel functions probably) that returns B4:E8, because there is nothing below row 8.
Does anyone know how to write such a formula that takes B4:E100 as input?


TRIMRANGE()reference operators:=LET(a, B4.:.E100, IF(a=0,"",a))B8:E8orB4:E8? if the latter then.=LET(a, TAKE(B4.:.E100,-1), IF(a=0,"",a))B4:E8, i just corrected it in the OP.TRIMRANGE()function?=TRIMRANGE(B4:E00,2), it fills empty cells with0, how could i avoid that?