Explanation
This formula uses the named rangekey(C4:G4) for convenience only.
Without the named range, you’ll want to use an absolute reference so the formula can be copied.
These values can be numbers, cell references, ranges, arrays, and constants, in any combination.
SUM can handle up to 255 individual arguments.
COUNTA does not count empty cells.