Had another go at dealing with the way that blank cells become zeros when referenced in some ways but not others