ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF using multiple criteria (https://www.excelbanter.com/excel-discussion-misc-queries/150651-countif-using-multiple-criteria.html)

TritaniumZero

COUNTIF using multiple criteria
 
Hi I need to write a formula which counts the number of cells where multiple
criteria are met.

For example, I need a countif statement (or equivelent) that will add up
total cells where F:F = "specific name" AND C:C begins with "FLT"

When I have tried it has run it as two seperate statements rather than like
a filtered search, so the result is wildly wrong.

Can anyone help please

Many Thanks in advance

Toppers

COUNTIF using multiple criteria
 
=SUMORODUCT(--(F2;F1000=X1),--(LEFT(C2:C1000),3)="FLT"))

X1 contains you name.

Unless you have XL2007, you cannot use whole columns as ranges.

"TritaniumZero" wrote:

Hi I need to write a formula which counts the number of cells where multiple
criteria are met.

For example, I need a countif statement (or equivelent) that will add up
total cells where F:F = "specific name" AND C:C begins with "FLT"

When I have tried it has run it as two seperate statements rather than like
a filtered search, so the result is wildly wrong.

Can anyone help please

Many Thanks in advance


Bob Phillips

COUNTIF using multiple criteria
 
SUMORODUCT? <vbg

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Toppers" wrote in message
...
=SUMORODUCT(--(F2;F1000=X1),--(LEFT(C2:C1000),3)="FLT"))

X1 contains you name.

Unless you have XL2007, you cannot use whole columns as ranges.

"TritaniumZero" wrote:

Hi I need to write a formula which counts the number of cells where
multiple
criteria are met.

For example, I need a countif statement (or equivelent) that will add up
total cells where F:F = "specific name" AND C:C begins with "FLT"

When I have tried it has run it as two seperate statements rather than
like
a filtered search, so the result is wildly wrong.

Can anyone help please

Many Thanks in advance




Billy Liddel

COUNTIF using multiple criteria
 
Try

=SUMPRODUCT(--(LEFT(C2:C500,3)="FLT"),--(F2:F500=F2))

Regards
Peter

"TritaniumZero" wrote:

Hi I need to write a formula which counts the number of cells where multiple
criteria are met.

For example, I need a countif statement (or equivelent) that will add up
total cells where F:F = "specific name" AND C:C begins with "FLT"

When I have tried it has run it as two seperate statements rather than like
a filtered search, so the result is wildly wrong.

Can anyone help please

Many Thanks in advance


Toppers

COUNTIF using multiple criteria
 
...... must get round to doing this typing course ......!

"Bob Phillips" wrote:

SUMORODUCT? <vbg

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Toppers" wrote in message
...
=SUMORODUCT(--(F2;F1000=X1),--(LEFT(C2:C1000),3)="FLT"))

X1 contains you name.

Unless you have XL2007, you cannot use whole columns as ranges.

"TritaniumZero" wrote:

Hi I need to write a formula which counts the number of cells where
multiple
criteria are met.

For example, I need a countif statement (or equivelent) that will add up
total cells where F:F = "specific name" AND C:C begins with "FLT"

When I have tried it has run it as two seperate statements rather than
like
a filtered search, so the result is wildly wrong.

Can anyone help please

Many Thanks in advance





Bob Phillips

COUNTIF using multiple criteria
 
That will only get you making the mistakes quicker ... believe me, I know!

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toppers" wrote in message
...
..... must get round to doing this typing course ......!

"Bob Phillips" wrote:

SUMORODUCT? <vbg

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Toppers" wrote in message
...
=SUMORODUCT(--(F2;F1000=X1),--(LEFT(C2:C1000),3)="FLT"))

X1 contains you name.

Unless you have XL2007, you cannot use whole columns as ranges.

"TritaniumZero" wrote:

Hi I need to write a formula which counts the number of cells where
multiple
criteria are met.

For example, I need a countif statement (or equivelent) that will add
up
total cells where F:F = "specific name" AND C:C begins with "FLT"

When I have tried it has run it as two seperate statements rather than
like
a filtered search, so the result is wildly wrong.

Can anyone help please

Many Thanks in advance








All times are GMT +1. The time now is 04:15 AM.

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