Hi
I use an array formula like this:{=SUM(IF(ISNUMBER(D2:D8),D2:D8))}
which will excludes errors.
How can I use this to apply in a subtotal function?
TIA
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Ignoring Error in Subtotal (Excel 2003)
This bit:
OFFSET($B$2,ROW($B$2:$B$5)-MIN(ROW($B$2:$B$5)),,)
returns an array of the individual cells in B2:B5
The Subtotal(3,..) bit is the equivalent of COUNTA and returns an array of 1s or 0s depending on whether the cell is visible or not due to the filter.
This array of 1s and 0s is then multiplied by the array returned by:
IF(ISNUMBER($B$2:$B$5),$B$2:$B$5)
so you only get the values that are visible and are numbers.
Does that make sense?
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications