ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Adding Cell Range with Text (https://www.excelbanter.com/excel-worksheet-functions/36844-adding-cell-range-text.html)

JohnHill

Adding Cell Range with Text
 

I've got a range of cells to sum. However one or more of the cells may
include "Error". If this occurs I want this to be the sum total so that
the error can be noticed and fixed. Suggestions please !!

Thanks,

John


--
JohnHill
------------------------------------------------------------------------
JohnHill's Profile: http://www.excelforum.com/member.php...o&userid=25171
View this thread: http://www.excelforum.com/showthread...hreadid=389763


Biff

Hi!

Try this:

=IF(COUNTIF(C2:C100,"error"),"error",SUM(C2:C100))

Biff

"JohnHill" wrote in
message ...

I've got a range of cells to sum. However one or more of the cells may
include "Error". If this occurs I want this to be the sum total so that
the error can be noticed and fixed. Suggestions please !!

Thanks,

John


--
JohnHill
------------------------------------------------------------------------
JohnHill's Profile:
http://www.excelforum.com/member.php...o&userid=25171
View this thread: http://www.excelforum.com/showthread...hreadid=389763




JohnHill


Biff,

Great stuff .... Thanks very much.

John


--
JohnHill
------------------------------------------------------------------------
JohnHill's Profile: http://www.excelforum.com/member.php...o&userid=25171
View this thread: http://www.excelforum.com/showthread...hreadid=389763



All times are GMT +1. The time now is 04:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com