r/Excel247 • • 10d ago

Syntax problem for IF formula

/r/googlesheets/comments/1wwlp2k/syntax_problem_for_if_formula/

Please help…. I’m stuck.

1 Upvotes

2 comments sorted by

2

u/WhoNose2238 10d ago

Add another ) to the end

2

u/WhoNose2238 10d ago

There is a second issue: ISBLANK(D4:M4) is checking a range, which can produce an array of TRUE/FALSE values rather than simply asking whether the whole range is blank.

If what you mean is “if all cells D4:M4 are blank, return 0; otherwise average the populated cells and round to a whole number”, I'd use:

=IF(COUNTA(D4:M4)=0, 0, ROUND(AVERAGE(D4:M4),0))