The SUMIF function adds a range of data if another range of data satisfies a truth condition. Is there a way to use a relative reference or a formula to define the truth condition rather than an input value?
![]() |
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 |
-
SUMIF Function
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » SUMIF Function
- This topic has 7 replies, 4 voices, and was last updated 24 years, 4 months ago.
AuthorTopicWSDFWillner
AskWoody LoungerJanuary 4, 2001 at 1:04 pm #351568Viewing 1 reply threadAuthorReplies-
WScpod
AskWoody Lounger -
WSDFWillner
AskWoody Lounger
-
-
WSJohnBF
AskWoody LoungerJanuary 4, 2001 at 2:30 pm #508888Yes, within limits. For example you can’t use a boolean formula dynamically; sumif will just match against the formula result, and so will sum only values which are true, or false, or 1, or zero.
You can use sumif directly where the external reference is a straight match; where cell a1 contains UT, the comparison range contains US States, and the data range is numbers, =sumif(comparison_range,a1,data_range) will sum all numbers for UT.
And you can use sumif with externally referenced arguments using a little string formula to create a boolean; where cell a1 contains a variable to search against, you can use
=sumif(comparison_range,”<"&a1,data_range)Care to post an example of what you want?
The SUMIF function adds a range of data if data within that range or a corresponding range satisfies a condition.
-
WSGeneO
AskWoody LoungerJanuary 4, 2001 at 3:31 pm #508892Another highly flexible approach is to use array formulae constructed in the form of:
=Sum(If(CompareRange operator condition),If(CompareRange2 operator condition2),Sumrange,0),0)).
This example would ‘AND’ the conditions. You could add the two ‘IF’ statements together to ‘OR’ the conditions. Look under TOOLS/Wizard for the Conditional Sum wizard. Play with this and see what formulae it builds for different circumstances and you should be able to get a good idea of how this works.
HTH, -
WSJohnBF
AskWoody LoungerJanuary 4, 2001 at 5:16 pm #508901Very cool, Gene, even if you are getting off the original =sumif() topic.
After messing around with them, I tend to stay away from array formulas on very large arrays because of their capacity to slow recalc. For a query this complex, I go to the =dfunction(data,offset,criteria) family.
-
WSGeneO
AskWoody Lounger
-
-
-
WSDFWillner
AskWoody Lounger
-
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
-
“kill switches” found in Chinese made power inverters
by
Alex5723
1 hour, 25 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 hour, 51 minutes ago -
Meet Gemini in Chrome
by
Alex5723
2 hours, 52 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
3 hours, 1 minute ago -
Trump signs Take It Down Act
by
Alex5723
11 hours ago -
Do you have a maintenance window?
by
Susan Bradley
2 hours, 14 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
2 hours, 16 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
14 hours, 19 minutes ago -
Help with WD usb driver on Windows 11
by
Tex265
19 hours, 29 minutes ago -
hibernate activation
by
e_belmont
23 hours, 15 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day, 3 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day, 6 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day, 6 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
2 hours, 13 minutes ago -
Out of band for Windows 10
by
Susan Bradley
1 day, 10 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
1 day, 17 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 1 hour ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
2 hours, 17 minutes ago -
Auto Time Zone Adjustment
by
wadeer
2 days, 5 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 3 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
3 hours, 4 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
20 hours, 37 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
1 day, 3 hours ago -
Apps included with macOS
by
Will Fastie
1 day ago -
Xfinity home internet
by
MrJimPhelps
21 hours, 40 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 22 hours ago -
Debian 12.11 released
by
Alex5723
3 days, 3 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
3 days, 6 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
2 days, 10 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
2 hours, 28 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.