We have a spreadsheet which has a number of columns Jan to December the final column lists a number of different prices (range name
![]() |
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 problem (excel 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » SumIf problem (excel 2000)
- This topic has 6 replies, 6 voices, and was last updated 23 years, 1 month ago.
Viewing 2 reply threadsAuthorReplies-
WSAladin Akyurek
AskWoody LoungerFebruary 2, 2002 at 7:00 pm #567973Your sample data is in A1:E5 including the labels.
{0,”Jan”,”Feb”,”Mar”,”prices”;
“Green”,”a”,”b”,”d”,26;
“Blue”,”v”,”c”,0,25;
“Brown”,”c”,”a”,”d”,150;
0,0,0,”d”,260}where a 0 indicates an empty cell.
In B6 enter: =SUMPRODUCT((LEN(B2:B5)>0)+0,prices) [ where ‘prices” is the name of the range E2:E5]
Copy this formula across as far as needed.
-
WSkjktoo
AskWoody Lounger -
WSSammyB
AskWoody Lounger -
H. Legare Coleman
AskWoody PlusFebruary 3, 2002 at 12:18 am #568004Your first choice formula does not work because it is missing a couple of quotes. To insert a quote character in a string you have to use two consecutive quotes. So, to be correct, your formula would need to be:
=SUMIF(B2:B5,"""""",prices)
However, that also does not work and I think that is a bug in Excel.
My favorite to do this would be the formula below array entered:
=SUM((B2:B5"")*prices)
-
WSAladin Akyurek
AskWoody LoungerFebruary 3, 2002 at 8:24 am #568014See for the “” and “””””” in the context of COUNTIF:
http://www.mrexcel.com/wwwboard/messages/15057.html
By the way, I’d suggest Roberta to use the cheapest formula which is:
=SUMIF(B2:B5,””,prices)
if there is no formula returned blanks in the relevant ranges.
By precaution, I suggested a SUMPRODUCT formula with LEN in order to cope with the possible occurrence of formula returned blanks. Even then, your
=SUM(prices)-SUMIF(B2:B5,””,prices)
should be preferred.
-
WSBobUmlas
AskWoody LoungerFebruary 4, 2002 at 12:28 pm #568118If you’re trying to add up prices which correspond to values not equal to a single quote, then you need this:
=SUMIF(B2:B5,””””,prices) which works fine.
If you define a name, Quote, to be =””””, then use
=SUMIF(B2:B5,””"e,prices) it’ll also work. If you highlight from the first quote to the “e” in Quote and press F9, you’ll see “”””. I don’t see a problem here, nor do I see a bug. Using =SUMIF(B2:B5,””””””,prices) is comparing B2:B5 to 2 quotes, not one.
-
Viewing 2 reply threads -

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
-
Adding links to text in Word 2000 (Awaiting moderation)
by
sgeneris
4 hours, 38 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
4 hours, 45 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
5 hours, 19 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
1 day, 11 hours ago -
Win 11 24H2 Home or Pro?
by
CWBillow
22 hours, 13 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
1 day, 20 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
2 days, 8 hours ago -
Problem using exfat drives for backup
by
Danmc
2 days, 8 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
1 day, 10 hours ago -
Change Info in the Settings window
by
CWBillow
2 days, 15 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
2 days, 21 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
2 days, 7 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
2 days, 8 hours ago -
WuMgr operational questions
by
Tex265
7 hours, 49 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
3 days, 13 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
2 days, 13 hours ago -
Backing up Google Calendar
by
CWBillow
3 days, 19 hours ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
4 days, 8 hours ago -
File Naming Conventions (including Folders)
by
Magic66
3 days, 6 hours ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
4 days, 15 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
4 days, 2 hours ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
3 days, 8 hours ago -
Adding Microsoft Account.
by
DaveBRenn
4 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
5 days, 16 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
5 days, 16 hours ago -
Windows 11 won’t boot
by
goducks25
3 days, 9 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
5 days, 6 hours ago -
Rest in Peace
by
Roy Lasris
6 days, 11 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
3 days, 8 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
6 days, 11 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.