See attached File. I can get conditional sum to work for rows 5-15 but can’t
seem to expand to correctly cover rows 16 thru 18. Any thoughts would be
greatly appreciated. A generic answer that would allow expansion or
contraction to cover any number of rows is what I really am interested in.
![]() |
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 |
-
Conditional Sum (Excel 97, 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Conditional Sum (Excel 97, 2000)
- This topic has 3 replies, 3 voices, and was last updated 21 years, 3 months ago.
AuthorTopicWSthomascox
AskWoody LoungerJune 23, 2002 at 1:44 am #372692Viewing 1 reply threadAuthorReplies-
H. Legare Coleman
AskWoody PlusJune 23, 2002 at 3:18 am #596475I’m not sure what your problem is. The following formula, array entered (hold down Ctrl+Shift when you press enter), works for me:
=SUM(IF($A$5:$A$31=F4,$D$5:$D$31,0))
The following also works (it does not have to be array entered):
One other point. The Down Time and Totat DT columns are elapsed times, not time of day. If there is any chance that any of these times could exceed 24 hours, then you should be using a Custom format of [h]:mm (with the brackets around the h) or you will display erroneous results.
=SUMIF($A$5:$A$31,F4,$D$5:$D$31)
What problem are you having?
-
WSthomascox
AskWoody LoungerJune 23, 2002 at 12:41 pm #596493The second formula, the one without array entry, works fine. The array formua when entered as the first entry in column calculates correctly. However, trying to copy the formula down from that point down the column results in N/A errors. Not sure what is going on there.
Thanks for the prompt assistance. The first formula gets me what I need and is most appreciated.
Thomas Cox
-
-
WSAladin Akyurek
AskWoody LoungerMarch 13, 2004 at 5:09 pm #596483When there is just one condition/criterion, there is seldom any need for using an array formula to compute a sum/total (or a count for that matter). SUMIF for summing and COUNTIF for counting will suffice.
Legare has already suggested the required SUMIF formula.
However, if you want the additions to and/or deletions from the downtime data to be reflected automatically in the computed totals, you could do what follows. (See also the attachment.)
( 1) Insert a new worksheet named Admin.
( 2) In Admin!A2 enter: # Data Recs [ which is just a label ].
( 3) In Admin!B2 enter: =MATCH(9.99999999999999E+307,Data!B:-(CELL(“Row”,Data!A5)-1)
( 4) Activate the option Insert|Name|Define.
( 5) Enter DTdata as name in the Names in Workbook box.
( 6) Enter as formula in the Refers to box:=OFFSET(Data!$A$5,0,0,Admin!$B$2,4)
( 7) Activate OK.
In the worksheet where you have the downtime data use the following formula:
=SUMIF(INDEX(DTdata,0,1),F4,INDEX(DTdata,0,4))
This is the same thing as the one Legare has suggested. The difference is that it uses the defined name from the step 5 above instead of definite ranges: INDEX(DTdata,0,1) means all rows of DTdata from its first column and INDEX(DTdata,0,4) all rows from its 4th column.
Why all this? The advantage of this setup is that you don’t have to change the formula when you add more records to the downtime data area or when you delete records from that area.
I’d suggest also that you make the charts dynamic. Bullen explains well how to do that at his site with examples:
http://www.bmsltd.ie/Excel/Default.htm
Aladin
Edited Mar 13th 2004 to update link
Viewing 1 reply thread -

Plus Membership
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.
Get Plus!
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.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
1 hour, 9 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
12 hours, 6 minutes ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
1 hour, 38 minutes ago -
System Restore and Updates Paused
by
veteran
14 hours, 37 minutes ago -
Windows 10/11 clock app
by
Kathy Stevens
1 hour, 42 minutes ago -
Turn off right-click draw
by
Charles Billow
17 hours, 51 minutes ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
21 hours, 22 minutes ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
4 hours, 26 minutes ago -
Master patch listing for June 10, 2025
by
Susan Bradley
22 hours, 58 minutes ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
1 hour, 51 minutes ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
1 day, 5 hours ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 9 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
1 day, 12 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
4 hours, 42 minutes ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
2 days ago -
June 2025 updates are out
by
Susan Bradley
12 hours, 57 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
2 days, 15 hours ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
2 days ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
2 days, 17 hours ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
2 days, 18 hours ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
2 days, 17 hours ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
2 days, 9 hours ago -
re-install Windows Security
by
CWBillow
2 days, 21 hours ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
3 days ago -
macOS Tahoe 26
by
Alex5723
2 days, 19 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
9 hours, 49 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
2 days, 9 hours ago -
Recommended watching : Mountainhead movie
by
Alex5723
2 days, 10 hours ago -
End of support for Windows 10
by
Old enough to know better
9 hours, 13 minutes ago -
What goes on inside an LLM
by
Michael Covington
10 hours, 10 minutes ago
Recent blog posts
Key Links
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.