I am trying to average the values in B38:I38 in eight adjacent columns. The eight cells are linked to eight different spreadsheets. I am using the formula =SUM(SUMIF(B38:I38,{"<0",">0"}))/COUNT(B38:I38). This formula works ok if all eight cells have a value. But when the cell only contains the link formula and no number value the formula wants to divide by eight even if only two cells contain number values. This formula seemed to work in a different spreadsheet but doesn't want to work today. Thanks for your help.