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
-
A Funny Thing Happened on the Way to the Forum
by
bbearren
4 hours, 10 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
9 hours, 52 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
8 hours, 52 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
7 hours, 16 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
7 hours, 59 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
16 hours, 41 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
16 hours, 41 minutes ago -
23 and you
by
Max Stul Oppenheimer
4 hours, 57 minutes ago -
April’s deluge of patches
by
Susan Bradley
9 hours, 9 minutes ago -
Windows 11 Windows Updater question
by
Tex265
14 hours, 55 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 13 hours ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 18 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
10 hours, 12 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 23 hours ago -
OneNote Send To button?
by
CWBillow
2 days ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 9 hours ago -
No Newsletters since 27 January
by
rog7
13 hours, 39 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 9 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 8 hours ago -
Google One Storage Questions
by
LHiggins
16 hours, 15 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
23 hours, 31 minutes ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 14 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 23 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
10 hours, 29 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 7 hours ago -
Firefox 137
by
Charlie
49 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 12 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 12 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 12 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.