ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countif Function (https://www.excelbanter.com/excel-discussion-misc-queries/1237-countif-function.html)

jrm

Countif Function
 
Counting the number of occurances of a number if a condition is met in an
adjacent column on the same row

JulieD

Hi

if you have two conditions - the number you want to count & the condition in
an adjacent cell you'll need to use the SUMPRODUCT function, e.g.
=SUMPRODUCT(--(A1:A100=3),--(B1:B100="Red"))

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for more details on the sumproduct function.

Cheers
julieD

"jrm" wrote in message
...
Counting the number of occurances of a number if a condition is met in an
adjacent column on the same row




Don Guillett

That's what it does. Have you looked in HELP index for COUNTIF

--
Don Guillett
SalesAid Software

"jrm" wrote in message
...
Counting the number of occurances of a number if a condition is met in an
adjacent column on the same row




Bob Phillips

perfectly described, what is the problem?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"jrm" wrote in message
...
Counting the number of occurances of a number if a condition is met in an
adjacent column on the same row





All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com