Forum Discussion

Prober22's avatar
Prober22
Copper Contributor
Jan 14, 2021

How do I sum a column where some cells contain formulae

I have a sheet with multiple columns containing data. In one column, Q, I have a formula that, when data is entered elsewhere within the document, the cell formula becomes a value. Not all cells are populated with values, so the "unused" cells contain  "#DIV/0!" until the data is entered elsewhere. I want to be able to sum the column in Q155, but only include the cells containing values (i.e. excluding the "unused cells with formulae in). Can this be done?

Many thanks in anticipation.

2 Replies

  • adversi's avatar
    adversi
    Iron Contributor

    Prober22 Try an IFERROR function to the cells that give you the error. More info can be read https://support.microsoft.com/en-us/office/iferror-function-c526fd07-caeb-47b8-8bb6-63f3e417f611

    The formula would look something like this: IFERROR(B2/C2,0)

Resources