We are talking about buildings, which is irrelevant, but it may be relevant only for your understanding of the issue.
I have an issue with this formula.
I need a formula that is able to sum the values based on particular conditions:
1) Based on the central cost
2) Based on CAPEX...