Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Help with COUNTIF formula

I thought this would be a fairly simple formula but just dont seem to
be able to get the right syntax.

Rows in column B will contain the text, 'Nichs' or 'NMSFC'.
Rows in column C may contain Chr149 ”

At bottom of column C I need a count, where column B = 'NMSFC' and
column C has a ” in it.

I had a go at this with the following formula, but it doesn't work. I
have tried using AND but again cant quite get it right.
=IF($B:$B="NMSFC",COUNTIF(C5:C263,"*"),"")

Any advice or help would be appreciated as completely stuck and cant
find a previous post that helps.

Thanks Carl
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Help with COUNTIF formula

Here's one way:
You'll need to specify an actual range rather than the entire column.

=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20="”"))

Adjust your range as needed.

HTH,
Paul

--

wrote in message
...
I thought this would be a fairly simple formula but just dont seem to
be able to get the right syntax.

Rows in column B will contain the text, 'Nichs' or 'NMSFC'.
Rows in column C may contain Chr149 ”

At bottom of column C I need a count, where column B = 'NMSFC' and
column C has a ” in it.

I had a go at this with the following formula, but it doesn't work. I
have tried using AND but again cant quite get it right.
=IF($B:$B="NMSFC",COUNTIF(C5:C263,"*"),"")

Any advice or help would be appreciated as completely stuck and cant
find a previous post that helps.

Thanks Carl


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Help with COUNTIF formula

Just noticed that after the message was posted, it no longer included
Chr149. Replace the middle double quotes with Chr149. I'm sure you
probably figured that out though.

Regards,
Paul

--

"PCLIVE" wrote in message
...
Here's one way:
You'll need to specify an actual range rather than the entire column.

=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20="""))

Adjust your range as needed.

HTH,
Paul

--

wrote in message
...
I thought this would be a fairly simple formula but just dont seem to
be able to get the right syntax.

Rows in column B will contain the text, 'Nichs' or 'NMSFC'.
Rows in column C may contain Chr149 "

At bottom of column C I need a count, where column B = 'NMSFC' and
column C has a " in it.

I had a go at this with the following formula, but it doesn't work. I
have tried using AND but again cant quite get it right.
=IF($B:$B="NMSFC",COUNTIF(C5:C263,"*"),"")

Any advice or help would be appreciated as completely stuck and cant
find a previous post that helps.

Thanks Carl



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Help with COUNTIF formula

just in case...

=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20=char(149)))

PCLIVE wrote:

Just noticed that after the message was posted, it no longer included
Chr149. Replace the middle double quotes with Chr149. I'm sure you
probably figured that out though.

Regards,
Paul

--

"PCLIVE" wrote in message
...
Here's one way:
You'll need to specify an actual range rather than the entire column.

=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20="""))

Adjust your range as needed.

HTH,
Paul

--

wrote in message
...
I thought this would be a fairly simple formula but just dont seem to
be able to get the right syntax.

Rows in column B will contain the text, 'Nichs' or 'NMSFC'.
Rows in column C may contain Chr149 "

At bottom of column C I need a count, where column B = 'NMSFC' and
column C has a " in it.

I had a go at this with the following formula, but it doesn't work. I
have tried using AND but again cant quite get it right.
=IF($B:$B="NMSFC",COUNTIF(C5:C263,"*"),"")

Any advice or help would be appreciated as completely stuck and cant
find a previous post that helps.

Thanks Carl


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Help with COUNTIF formula

Good point!

--

"Dave Peterson" wrote in message
...
just in case...

=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20=char(149)))

PCLIVE wrote:

Just noticed that after the message was posted, it no longer included
Chr149. Replace the middle double quotes with Chr149. I'm sure you
probably figured that out though.

Regards,
Paul

--

"PCLIVE" wrote in message
...
Here's one way:
You'll need to specify an actual range rather than the entire column.

=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20="""))

Adjust your range as needed.

HTH,
Paul

--

wrote in message
...
I thought this would be a fairly simple formula but just dont seem to
be able to get the right syntax.

Rows in column B will contain the text, 'Nichs' or 'NMSFC'.
Rows in column C may contain Chr149 "

At bottom of column C I need a count, where column B = 'NMSFC' and
column C has a " in it.

I had a go at this with the following formula, but it doesn't work. I
have tried using AND but again cant quite get it right.
=IF($B:$B="NMSFC",COUNTIF(C5:C263,"*"),"")

Any advice or help would be appreciated as completely stuck and cant
find a previous post that helps.

Thanks Carl


--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Help with COUNTIF formula

On 9 Apr, 17:00, "PCLIVE" wrote:
Good point!

--

"Dave Peterson" wrote in message

...



just in case...


=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20=char(149)))


PCLIVE wrote:


Just noticed that after the message was posted, it no longer included
Chr149. *Replace the middle double quotes with Chr149. *I'm sure you
probably figured that out though.


Regards,
Paul


--


"PCLIVE" wrote in message
...
Here's one way:
You'll need to specify an actual range rather than the entire column.


=SUMPRODUCT(--(A2:A20="NMSFC"),--(B2:B20="""))


Adjust your range as needed.


HTH,
Paul


--


wrote in message
....
I thought this would be a fairly simple formula but just dont seem to
be able to get the right syntax.


Rows in column B will contain the text, 'Nichs' or 'NMSFC'.
Rows in column C may contain Chr149 "


At bottom of column C I need a count, where column B = 'NMSFC' and
column C has a " in it.


I had a go at this with the following formula, but it doesn't work. I
have tried using AND but again cant quite get it right.
=IF($B:$B="NMSFC",COUNTIF(C5:C263,"*"),"")


Any advice or help would be appreciated as completely stuck and cant
find a previous post that helps.


Thanks Carl


--


Dave Peterson- Hide quoted text -


- Show quoted text -


Thanks for this, worked a treat. Never even considered using
SUMPRODUCT.
Thanks again
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif formula Zak Excel Discussion (Misc queries) 7 January 11th 08 04:03 PM
Countif formula Mike Excel Discussion (Misc queries) 3 May 2nd 07 07:56 PM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
countif formula Todd Nelson Excel Discussion (Misc queries) 1 September 21st 05 11:27 PM
Countif formula and then some... Julie Excel Worksheet Functions 6 July 27th 05 08:13 PM


All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"