ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting text in a column. (https://www.excelbanter.com/excel-worksheet-functions/176286-counting-text-column.html)

CDPalmer

Counting text in a column.
 
I wish to count text in a column (say column C) such that (A or B) and C are
satisfied.
Can someone help please.
Thanks
--
CDP

Mike H

Counting text in a column.
 
Perhaps some sample data would clarify what you mean

"CDPalmer" wrote:

I wish to count text in a column (say column C) such that (A or B) and C are
satisfied.
Can someone help please.
Thanks
--
CDP


Bob Phillips

Counting text in a column.
 
=SUMPRODUCT(--(C2:C200100),SIGN((A2:A200="X")+(B2:B200="Y")))


--
---
HTH

Bob


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



"CDPalmer" wrote in message
...
I wish to count text in a column (say column C) such that (A or B) and C
are
satisfied.
Can someone help please.
Thanks
--
CDP




CDPalmer

Counting text in a column.
 
Hi Bob
Formula does not give correct results.
I was not clear and have given some data.

A B C
Boston Tasman Centenary
Wayback Boston Poole

I wish to count all text in column C that contain "Centenary" who have in
that row "Boston" in column A or "Boston" in column B.

Thanks for your help

CDP
--
CDP


"Bob Phillips" wrote:

=SUMPRODUCT(--(C2:C200100),SIGN((A2:A200="X")+(B2:B200="Y")))


--
---
HTH

Bob


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



"CDPalmer" wrote in message
...
I wish to count text in a column (say column C) such that (A or B) and C
are
satisfied.
Can someone help please.
Thanks
--
CDP





Bob Phillips

Counting text in a column.
 
=SUMPRODUCT(--(C2:C200="Centenary"),SIGN((A2:A200="Boston")+(B2: B200="Boston")))

--
---
HTH

Bob


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



"CDPalmer" wrote in message
...
Hi Bob
Formula does not give correct results.
I was not clear and have given some data.

A B C
Boston Tasman Centenary
Wayback Boston Poole

I wish to count all text in column C that contain "Centenary" who have in
that row "Boston" in column A or "Boston" in column B.

Thanks for your help

CDP
--
CDP


"Bob Phillips" wrote:

=SUMPRODUCT(--(C2:C200100),SIGN((A2:A200="X")+(B2:B200="Y")))


--
---
HTH

Bob


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



"CDPalmer" wrote in message
...
I wish to count text in a column (say column C) such that (A or B) and C
are
satisfied.
Can someone help please.
Thanks
--
CDP







CDPalmer

Counting text in a column.
 
Hi Bob

Worked beautifully.

Thanks very much.

CDP
--
CDP


"Bob Phillips" wrote:

=SUMPRODUCT(--(C2:C200="Centenary"),SIGN((A2:A200="Boston")+(B2: B200="Boston")))

--
---
HTH

Bob


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



"CDPalmer" wrote in message
...
Hi Bob
Formula does not give correct results.
I was not clear and have given some data.

A B C
Boston Tasman Centenary
Wayback Boston Poole

I wish to count all text in column C that contain "Centenary" who have in
that row "Boston" in column A or "Boston" in column B.

Thanks for your help

CDP
--
CDP


"Bob Phillips" wrote:

=SUMPRODUCT(--(C2:C200100),SIGN((A2:A200="X")+(B2:B200="Y")))


--
---
HTH

Bob


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



"CDPalmer" wrote in message
...
I wish to count text in a column (say column C) such that (A or B) and C
are
satisfied.
Can someone help please.
Thanks
--
CDP








All times are GMT +1. The time now is 01:58 AM.

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