=IFERROR(MAX(INDEX({Customer Invoice Log Sheet - Days Past Due}, MATCH([Profit Center]@row, {Customer Invoice Log - Profit Center}, 0))), "")
Im looking for the max days for the profit center. Problem is its giving me the answer 0 when it should be more than that. In some cases it seems to be working. Its like its pulling the first profit center row total days when it should be looking at the whole sheet