I need to sum up several numbers and replace any errors in the sum with 0. The following formula works but is too long in my opinion.
Anyone know of a better way to do this?
Am I better off just writing my own custom function to take care of this for me?
Thanks
Matt
Anyone know of a better way to do this?
Am I better off just writing my own custom function to take care of this for me?
Thanks
Matt
Code:
=SUM(IF(ISERROR('Agent Performance'!D10),0,'Agent Performance'!D10)+IF(ISERROR('Agent Performance'!D29),0,'Agent Performance'!D29)+IF(ISERROR('Agent Performance'!D48),0,'Agent Performance'!D48)+IF(ISERROR('Agent Performance'!D67),0,'Agent Performance'!D67)+IF(ISERROR('Agent Performance'!D86),0,'Agent Performance'!D86)+IF(ISERROR('Agent Performance'!D105),0,'Agent Performance'!D105)+IF(ISERROR('Agent Performance'!D124),0,'Agent Performance'!D124)+IF(ISERROR('Agent Performance'!D143),0,'Agent Performance'!D143)+IF(ISERROR('Agent Performance'!D162),0,'Agent Performance'!D162)+IF(ISERROR('Agent Performance'!D181),0,'Agent Performance'!D181)+IF(ISERROR('Agent Performance'!D200),0,'Agent Performance'!D200)+IF(ISERROR('Agent Performance'!D219),0,'Agent Performance'!D219)+IF(ISERROR('Agent Performance'!D238),0,'Agent Performance'!D238)+IF(ISERROR('Agent Performance'!D257),0,'Agent Performance'!D257)+IF(ISERROR('Agent Performance'!D276),0,'Agent Performance'!D276)+IF(ISERROR('Agent Performance'!D295),0,'Agent Performance'!D295)+IF(ISERROR('Agent Performance'!D314),0,'Agent Performance'!D314)+IF(ISERROR('Agent Performance'!D333),0,'Agent Performance'!D333)+IF(ISERROR('Agent Performance'!D352),0,'Agent Performance'!D352)+IF(ISERROR('Agent Performance'!D371),0,'Agent Performance'!D371)+IF(ISERROR('Agent Performance'!D390),0,'Agent Performance'!D390)+IF(ISERROR('Agent Performance'!D409),0,'Agent Performance'!D409)+IF(ISERROR('Agent Performance'!D428),0,'Agent Performance'!D428)+IF(ISERROR('Agent Performance'!D447),0,'Agent Performance'!D447)+IF(ISERROR('Agent Performance'!D466),0,'Agent Performance'!D466))
Last edited: