I have a formula that adds up corresponding numbers on a pivot table by referencing the column and row headers. I want this formula to return a value of 0 when it cannot locate the row header. Because this formula works off a pivot table, sometimes the row headers are there and sometimes they are not. I have a section of the formula below. The row header in this formula is "Confirmed" so when a row starting with "Confirmed" does not show on the pivot table, I want it to return a value of 0 instead of saying that it cannot locate the row. Any help would be greatly appreciated, thanks in advance.
=INDEX(Sheet1!$A$1:$Z$98,MATCH("Confirmed",Sheet1!$A:$A,0),MATCH(B$1,Sheet1!$1:$1,0))
Bookmarks