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, 2 months 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
-
Ancient SSD thinks it’s new
by
WSila
1 minute ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
4 hours, 1 minute ago -
WinRE KB5057589 fake out
by
Susan Bradley
37 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
10 hours, 12 minutes ago -
Firefox 137
by
Charlie
12 hours, 56 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
16 hours, 24 minutes ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
16 hours, 36 minutes ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
16 hours, 39 minutes ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
9 hours, 44 minutes ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
20 hours, 10 minutes ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
1 day, 2 hours ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
1 day, 12 hours ago -
Office apps read-only for family members
by
b
1 day, 15 hours ago -
Defunct domain for Microsoft account
by
CWBillow
1 day, 12 hours ago -
24H2??
by
CWBillow
1 day, 2 hours ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
20 hours, 26 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
53 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
11 hours, 27 minutes ago -
two pages side by side land scape
by
marc
3 days, 12 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
3 days, 15 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
2 days, 17 hours ago -
Security Essentials or Defender?
by
MalcolmP
2 days, 20 hours ago -
April 2025 updates out
by
Susan Bradley
1 hour, 11 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
2 days, 14 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
2 days, 4 hours ago -
Creating an Index in Word 365
by
CWBillow
3 days, 6 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
1 day, 18 hours ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
4 days, 9 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
4 days, 13 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
4 days, 15 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.