So, this is where it ended up for me. I am going to accept Simon's answer because I think he is right in the general case. Yes, spreadsheet formulas are on topic here.
The particular case in question though is off topic because it does not provide sufficient background information to provide a meaningful review. It is "Unclear the OP is asking". More information has been requested and I am voting to close until OP updates the question.