I have set of data that I am pulling from another sheet with filter() function, and then I'd like to use array formula if possible (with # operator) to have formula spill dynamically for as much rows as I receive from filter().
I can do it with VBA easily, but then other users might have issues, and I would really like to get to a solution that would just allow me and other users of this template to just paste exported data into initial sheet, and that magic happens without any additional clicks (macro, pivot refresh, code on sheet change that autorefreshes, etc). Therefore, formula that works with # would be really amazing.
Formula that works (but with dragging down) is quite simple:
=IF((D2="IN")*(D1="OUT")*(B2=B1),C2-C1,0)



