Pl see the attachment. Instead of entering formula for each sheet, is there a way to minimize the sumif with multiple sheet?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
sumif with multiple sheets (EXcel 2003)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » sumif with multiple sheets (EXcel 2003)
- This topic has 12 replies, 4 voices, and was last updated 15 years, 10 months ago.
Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerAugust 8, 2009 at 5:20 am #1172707Excel has no built-in support for SUMIF or COUNTIF across multiple sheets.
It is possible to create custom VBA functions that provide this capability – see the section POWER PROGRAMMING TECHNIQUES By Myrna Larson and David Hager in Excel Experts E-letter 3.However, it will be impossibe to use them in your example since the ranges on the two sheets are different (A8:B11 on Sheet1 and A1:B4 on Sheet2). You will have to ensure that the ranges are the same on all sheets.
-
WSprasad
AskWoody LoungerAugust 8, 2009 at 6:05 am #1172708Excel has no built-in support for SUMIF or COUNTIF across multiple sheets.
It is possible to create custom VBA functions that provide this capability – see the section POWER PROGRAMMING TECHNIQUES By Myrna Larson and David Hager in Excel Experts E-letter 3.However, it will be impossibe to use them in your example since the ranges on the two sheets are different (A8:B11 on Sheet1 and A1:B4 on Sheet2). You will have to ensure that the ranges are the same on all sheets.
Thanks Hans, but not able to use the function. I have Copied/paste both code (Parse3DRange &SumIf3D). Pl advise what to do Now.
-
WSHansV
AskWoody LoungerAugust 8, 2009 at 6:32 am #1172710 -
WSprasad
AskWoody LoungerAugust 10, 2009 at 7:15 am #1172853You MUST ensure that the ranges to be used in the SumIf3D formula are in the same location on each sheet, say A1:B4. You can then use formulas such as
=SumIf3D(“Sheet1:Sheet2!$A$1:$A$4”,E1,$B$1:$B$4)
where E1 contains the condition. See the attached version.
I have converted all the codes into Add-in. Working fine so far. Is it possible to insert ” in formula by default instead of putting manually.
-
WSHansV
AskWoody Lounger -
WSprasad
AskWoody LoungerAugust 10, 2009 at 7:34 am #1172859I’m not sure I understand your question, but if you want to omit the quotes around Sheet1:Sheet2!$A$1:$A$4 in the formula
=SumIf3D(“Sheet1:Sheet2!$A$1:$A$4”,E1,$B$1:$B$4)
the answer is no. The first argument must be a string.
No Hans, i dont want to remove the quotes. When I simply enter formula & select sheet2 using shift key, it looks like =SumIf3D(Sheet1:Sheet2!$A$1:$A$4,E1,$B$1:$B$4) and result appear as #value. I have to put quotes manually in range to get the results. What I want is to make the ” ” as default part of formula.
-
WSHansV
AskWoody Lounger -
WSprasad
AskWoody Lounger
-
-
-
-
-
WSbosco_yip
AskWoody LoungerAugust 9, 2009 at 9:44 am #1172791Pl see the attachment. Instead of entering formula for each sheet, is there a way to minimize the sumif with multiple sheet?
Sheet1
___|____A____]____B____|____C_____|____D____|
1__|__Pizza___]____ ____|_____ _____|____ ____|
2__|__Bread___|____ ____|_____ _____|____ ____|
3__|_HotDog___|____ ____|_____ _____|____ ____|
4__|_Sandwich_]____ ____|_____ _____|____ ____|
5__|____ _____]____ ____|_____ _____|____ ____|
6__|____ _____]____ ____|_____ _____|____ ____|
7__|____ _____]____ ____|_____ _____|____ ____|
8__|___Pizza__]____2____|_____ _____|____ ____|
9__|___Bread__]____4____|_____ _____|____ ____|
10_|__HotDog__]____6____|_____ _____|____ ____|
11_|__Sandwich_]____8____|_____ _____|____ ____|Sheet2
___|____A_____]____B____|____C_____|____D____|
1__|___Pizza___]____1____|_____ _____|____ ____|
2__|___Bread__]____2_____|_____ _____|____ ____|
3__|__HotDog__]____3_____|_____ _____|____ ____|
4__|__Sandwich_]____4____|_____ _____|____ ____|1] All datas as per above 2 tables.
2] Sheet1, B1 entered formula and copied down :
=SUM(SUMIF(INDIRECT({“Sheet1″;”Sheet2″}&”!”&{“A8:A11″;”A1:A14”}),A1,INDIRECT({“Sheet1″;”Sheet2″}&”!”&{“B8:B11″;”B1:B14”})))
Regards
Bosco -
WSfranciz
AskWoody LoungerAugust 10, 2009 at 11:03 am #1172910Sheet1
__|____A____]____B____|____C____|____D____|
1__|__Pizza___]____ ____|_____ _____|____ ____|
2__|__Bread___]____ ____|_____ _____|____ ____|
3__|_HotDog__]____ ____|_____ _____|____ ____|
4__|_Sandwich_]____ ____|_____ _____|____ ____|
5__|____ ____]____ ____|_____ _____|____ ____|
6__|____ ____]____ ____|_____ _____|____ ____|
7__|____ ____]____ ____|_____ _____|____ ____|
8__|___Pizza__]____2____|_____ _____|____ ____|
9__|___Bread__]____4____|_____ _____|____ ____|
10_|__HotDog_]____6____|_____ _____|____ ____|
11_|__Sandwich_]____8____|_____ _____|____ ____|Sheet2
__|____A____]____B____|____C____|____D____|
1__|___Pizza__]____1____|_____ _____|____ ____|
2__|___Bread__]____2____|_____ _____|____ ____|
3__|__HotDog_]____3____|_____ _____|____ ____|
4__|__Sandwich_]____4____|_____ _____|____ ____|1] All datas as per about 2 tables.
2] Sheet1, B1 entered formula and copied down :
=SUM(SUMIF(INDIRECT({“Sheet1″;”Sheet2″}&”!”&{“A8:A11″;”A1:A14”}),A1,INDIRECT({“Sheet1″;”Sheet2″}&”!”&{“B8:B11″;”B1:B14”})))
Regards
BoscoHi Bosco
I think this is simply great. I am assuming that this does work with more than 2 Sheets.
-
WSHansV
AskWoody LoungerAugust 10, 2009 at 11:11 am #1172912I am assuming that this does work with more than 2 Sheets.
It does – just add more sheet names to the list. If you have many sheets, it is easier to enter the sheet names in a range of cells, say H1:H10 if you have 10 sheets. You can then use H1:H10 instead of {“Sheet1″;”Sheet2″}
(If the sheet names may contain spaces, you must use ”‘”&H1:H10&”‘”)
-
WSfranciz
AskWoody LoungerAugust 10, 2009 at 11:13 am #1172914It does – just add more sheet names to the list. If you have many sheets, it is easier to enter the sheet names in a range of cells, say H1:H10 if you have 10 sheets. You can then use H1:H10 instead of {“Sheet1″;”Sheet2″}
(If the sheet names may contain spaces, you must use ”‘”&H1:H10&”‘”)
Hi Hans
Thanks for the tip.
-
-
-
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
-
Worrying about how to Backup Yahoo Emails? Try the Yahoo Backup Tool! (Awaiting moderation)
by
jules28
56 minutes ago -
Worrying about how to Backup Yahoo Emails? Try the Yahoo Backup Tool! (Awaiting moderation)
by
jules28
58 minutes ago -
Is Aegean Airlines Safe to Fly? A Complete Safety Guide (Awaiting moderation)
by
jacksmith243
2 hours, 45 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
4 hours, 39 minutes ago -
Location, location, location
by
Susan Bradley
5 hours, 8 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
6 hours, 5 minutes ago -
What is wrong with simple approach? (Awaiting moderation)
by
WSSpoke36
10 hours, 16 minutes ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 hour, 3 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
16 hours, 51 minutes ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
9 hours, 31 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
16 hours, 47 minutes ago -
How start headers and page numbers on page 3?
by
Davidhs
1 day, 3 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
5 hours, 53 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
1 day, 11 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
1 day, 11 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
1 day, 1 hour ago -
Firefox 139
by
Charlie
18 hours, 10 minutes ago -
Who knows what?
by
Will Fastie
8 hours, 31 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 day, 12 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
1 day, 7 hours ago -
Misbehaving devices
by
Susan Bradley
8 hours, 20 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
2 days, 18 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
15 hours, 54 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
2 days, 17 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
1 day, 16 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
2 days, 7 hours ago -
Rufus is available from the MSFT Store
by
PL1
2 days, 15 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
3 days, 18 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
1 day, 18 hours ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 day, 16 hours 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.