PC Review


Reply
Thread Tools Rate Thread

Countif with nested function not working?

 
 
jshuatree
Guest
Posts: n/a
 
      17th Jul 2006

I'm attempting a countif that reads - COUNTIF(A:A,LEFT(A:A,1)=X)
Where column A looks something like:
XYZ
MNOP
XMN
LKJ
XTR

What's the proper way to do this?
Thanks

--
jshuatre
-----------------------------------------------------------------------
jshuatree's Profile: http://www.excelforum.com/member.php...fo&userid=3645
View this thread: http://www.excelforum.com/showthread.php?threadid=56222

 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      17th Jul 2006
One way:

=COUNTIF(A:A,"X*")

In article <(E-Mail Removed)>,
jshuatree <(E-Mail Removed)>
wrote:

> I'm attempting a countif that reads - COUNTIF(A:A,LEFT(A:A,1)=X)
> Where column A looks something like:
> XYZ
> MNOP
> XMN
> LKJ
> XTR
>
> What's the proper way to do this?
> Thanks!

 
Reply With Quote
 
jshuatree
Guest
Posts: n/a
 
      17th Jul 2006

That helps but I should have also mentioned that my next step would b
to count those entries whose first letter was not X but also include
some other variable ie. ended with an O or had a integer greater tha
some amount.
I don't think this simple method will allow me to do this. As long a
I can figure out how to get the nested function to work properly I ca
manage the rest

--
jshuatre
-----------------------------------------------------------------------
jshuatree's Profile: http://www.excelforum.com/member.php...fo&userid=3645
View this thread: http://www.excelforum.com/showthread.php?threadid=56222

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      17th Jul 2006
There is no nesting method with COUNTIF.

=COUNTIF(A:A,"X*") + COUNTIF(A:A, "*0") - COUNTIF(A:A,"X*0")

Or you could use the array-entered (CTRL-SHIFT-ENTER or CMD-RETURN):

=SUM((LEFT(A1:A1000,1)="X") + ((LEFT(A1:A1000,1)<>"X") *
(RIGHT(A1:A1000,1)="0")))


In article <(E-Mail Removed)>,
jshuatree <(E-Mail Removed)>
wrote:

> That helps but I should have also mentioned that my next step would be
> to count those entries whose first letter was not X but also included
> some other variable ie. ended with an O or had a integer greater than
> some amount.
> I don't think this simple method will allow me to do this. As long as
> I can figure out how to get the nested function to work properly I can
> manage the rest.

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      17th Jul 2006
=SUMPRODUCT(--(LEFT(A1:A10)<>"X"),--(RIGHT(A1:A10)="O"))

>or had a integer greater than some amount.


You'll need to post some examples so we can see what you mean.

Biff

"jshuatree" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> That helps but I should have also mentioned that my next step would be
> to count those entries whose first letter was not X but also included
> some other variable ie. ended with an O or had a integer greater than
> some amount.
> I don't think this simple method will allow me to do this. As long as
> I can figure out how to get the nested function to work properly I can
> manage the rest.
>
>
> --
> jshuatree
> ------------------------------------------------------------------------
> jshuatree's Profile:
> http://www.excelforum.com/member.php...o&userid=36459
> View this thread: http://www.excelforum.com/showthread...hreadid=562227
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF Function not working Paula Microsoft Excel Worksheet Functions 11 4th Jul 2008 03:31 AM
countif function not working =?Utf-8?B?VGllbG1hbg==?= Microsoft Excel Discussion 1 11th Nov 2007 04:12 PM
Countif array function not working =?Utf-8?B?dWI=?= Microsoft Excel Worksheet Functions 5 26th Sep 2007 03:39 PM
Countif Function -Nested =?Utf-8?B?QW5naQ==?= Microsoft Excel Misc 7 4th May 2005 07:04 PM
nested countif function =?Utf-8?B?Um9uZGEgQWRlcg==?= Microsoft Excel Worksheet Functions 1 16th Jan 2004 08:46 PM


Features
 

Advertising
 

Newsgroups
 


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