ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Subtotal past errors (https://www.excelbanter.com/excel-worksheet-functions/206864-subtotal-past-errors.html)

steven

Subtotal past errors
 
This array works nice:

=SUM(IF(NOT(ISERROR(E1:E4)),E1:E4))

But what if you want a SUBTOTAL?

Thank you,

Steven

Peo Sjoblom[_2_]

Subtotal past errors
 
Why don't you try to avoid the error instead?

=SUM(IF(ISNUMBER($A$4:$A$27),$A$4:$A$27)*(SUBTOTAL (3,OFFSET($A$4,ROW($A$4:$A$27)-MIN(ROW($A$4:$A$27)),,))))

array entered

btw, I would recommend to use



SUM(IF(ISNUMBER(E1:E4),E1:E4))


instead of NOT(ISERROR


--


Regards,


Peo Sjoblom

"Steven" wrote in message
...
This array works nice:

=SUM(IF(NOT(ISERROR(E1:E4)),E1:E4))

But what if you want a SUBTOTAL?

Thank you,

Steven





All times are GMT +1. The time now is 02:01 AM.

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