Have 2 columns of figures (temperatures) & I would like excel to count how many of the said temperatures are negative, that I can do BUT (always a but) this is what I would like the formula to recognise & count – if 2 temperatures are negative in ajoining cells, then count that as one. ie say a1 & b1 both have a -ve value then excel to count one for row 1.The max count for any row has to be one. Hope I have explained this okay. cheers andrew macdonald.
![]() |
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 |
-
Counting (97 & 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Counting (97 & 2000)
- This topic has 9 replies, 5 voices, and was last updated 23 years, 2 months ago.
AuthorTopicWSandrewmac
AskWoody LoungerJanuary 18, 2002 at 6:32 am #365588Viewing 1 reply threadAuthorReplies-
WSpieterse
AskWoody Lounger -
WSJohnBF
AskWoody Lounger -
WSAladin Akyurek
AskWoody LoungerJanuary 19, 2002 at 3:25 pm #564844 -
WSJohnBF
AskWoody LoungerJanuary 20, 2002 at 11:54 pm #565023 -
WSAladin Akyurek
AskWoody LoungerJanuary 21, 2002 at 5:45 am #565041John —
I think there are 2 possible readings of what the original poster wanted:
One reading implicates
(a) ORing and another
(ANDing.
I’m sure Jan Karel was also aware of this. He simply opted for reading (a).
In array or sumproduct formulas + does the ORing, * the ANDing. Your first attempt was altogether a different thing (which prompted my reply). Fred gave an array formula with IFs, equivalent to Jan Karel’s which is constructed with Boolean terms. If the latter reading would be what the OP wants, then
{=SUM((A1:A20<0)*(B1:B20<0))
would be indeed the answer.
By the way, these two formulas have the following, normally entered, equivalents with sumproduct:
=SUMPRODUCT((((A1:A10<0)+(B1:B100)+0)
=SUMPRODUCT((A1:A20<0)*(B1:B20<0))
Regards,
Aladin
-
WSpieterse
AskWoody Lounger -
WSfburg
AskWoody LoungerJanuary 21, 2002 at 12:39 pm #565081Hi Jan Karel,
Since you’re the last poster on this, I guess I’ll respond to you.
It was good for John to put all the solutions together in 1 sheet. That way, the originator can pick what they want.
I read the original post as wanting to count a row if:
– both cols were negative, or
– one col was negativeOr put another way, count the rows where there is at least one col with a neg number. So I disagree with John that this should be an AND condition as posted in his latest. The way I constructed the IF did provide an OR.
Anyway, whether it’s AND or OR, John’s workbook has them all.
Fred
-
WSJohnBF
AskWoody Lounger
-
-
-
-
-
WSfburg
AskWoody LoungerJanuary 20, 2002 at 1:07 pm #564945Looking at the subsequent posts on the thread, I agree with Aladin that John’s solution doesn’t do the same as Jan’s. The case of {-1,1} on the same row results in cancellation and is not counted. The case of {4,-3} results in the positive swamping out the negative and is not counted either.
For my 2 cents, here’s another solution:
{ =SUM(IF(A1:A6>=0,IF(B1:B6>=0,0,1),1)) }This may be more intuitve but Jan’s is more extensible (IF’s can only be nested up to, I think, 7 tests).
Fred
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
-
Looking for personal finance software with budgeting capabilities
by
cellsee6
24 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
11 hours, 43 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
16 hours, 5 minutes ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 day ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
2 hours, 55 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
9 hours, 3 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
19 hours, 43 minutes ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
2 days, 11 hours ago -
50 years and counting
by
Susan Bradley
2 hours, 2 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 18 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
2 days, 22 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
2 days, 22 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
2 days, 22 hours ago -
OneNote and MS Word 365
by
CWBillow
3 days ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
3 days ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
3 days ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
16 hours, 13 minutes ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
3 days, 12 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
3 days, 12 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
3 days, 21 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
3 days, 9 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
2 days, 10 hours ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
4 days, 6 hours ago -
Apple backports fixes
by
Susan Bradley
3 days, 12 hours ago -
Win 11 24H2 will not install
by
Michael1950
2 days, 10 hours ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
1 day, 4 hours ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
2 days, 19 hours ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
1 day, 6 hours ago -
Get back ” Open With” in context menus
by
CWBillow
4 days, 21 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
3 days, 13 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.