Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rob
 
Posts: n/a
Default Subtotal excl errors

Hi,

I have a filtered range of data which contains cells in columns that error
eg. #NA. =Subtotal(9,a1:a500) works fine if there are no errors and I'd
thought an array formula {=subtotal(9,if(isnumber(a1:a500),a1:a500))} would
have worked to return the sum of all values in the filtered list whereby
excluding the errors - but alas, this doesn't work.

Can this be done?

Thanks, Rob


  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Rob wrote:
Hi,

I have a filtered range of data which contains cells in columns that error
eg. #NA. =Subtotal(9,a1:a500) works fine if there are no errors and I'd
thought an array formula {=subtotal(9,if(isnumber(a1:a500),a1:a500))} would
have worked to return the sum of all values in the filtered list whereby
excluding the errors - but alas, this doesn't work.

Can this be done?

Thanks, Rob



It would much better to eliminate errors so that you can apply an
ordinary SubTotal formula, otherwise you need something like:

=SUM(IF(SUBTOTAL(2,OFFSET(A2:A500,ROW(A2:A500)-MIN(ROW(A2:A500)),,1)),A2:A500))

which must be confirmed with control+shift+enter instead of just with enter.

Make sure that you don't include the header row in the range the formula
is applied to.
  #3   Report Post  
Rob
 
Posts: n/a
Default

Thanks Aladin, works well.

"Aladin Akyurek" wrote in message
...
Rob wrote:
Hi,

I have a filtered range of data which contains cells in columns that
error eg. #NA. =Subtotal(9,a1:a500) works fine if there are no errors
and I'd thought an array formula
{=subtotal(9,if(isnumber(a1:a500),a1:a500))} would have worked to return
the sum of all values in the filtered list whereby excluding the errors -
but alas, this doesn't work.

Can this be done?

Thanks, Rob


It would much better to eliminate errors so that you can apply an ordinary
SubTotal formula, otherwise you need something like:

=SUM(IF(SUBTOTAL(2,OFFSET(A2:A500,ROW(A2:A500)-MIN(ROW(A2:A500)),,1)),A2:A500))

which must be confirmed with control+shift+enter instead of just with
enter.

Make sure that you don't include the header row in the range the formula
is applied to.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using more than one subtotal with same data set AuthorizedUserPF Excel Worksheet Functions 3 February 28th 05 02:05 PM
pivot table - hide details but show subtotal for calculated field tenneym Excel Discussion (Misc queries) 1 February 9th 05 03:07 AM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 07:18 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM


All times are GMT +1. The time now is 11:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"