I'm trying to use an array formula:
=MAX(IF(C2<>0,IF($B$2:$B$29600=B2,$A$2:$A$29600),NA))
on below data set (just an example):
The issue here that I'm missing is not only to get MAX date groupped by specific ID (when revenue is not missing), but to have this date shown only for revenue higher than 0.
So in the case of id = 'x' max date should be 1/9/2019 as this is last date that had any revenue present, and not 1/11/2019 - this is max date but has 0 revenue.
I'd appreciate any help!