+ Reply to Thread
Results 1 to 13 of 13

Countif with nested function not working?

  1. #1
    Registered User
    Join Date
    07-17-2006
    Posts
    2

    Countif with nested function not working?

    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!

  2. #2
    JE McGimpsey
    Guest

    Re: Countif with nested function not working?

    One way:

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

    In article <[email protected]>,
    jshuatree <[email protected]>
    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!


  3. #3
    Registered User
    Join Date
    07-17-2006
    Posts
    2
    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.

  4. #4
    JE McGimpsey
    Guest

    Re: Countif with nested function not working?

    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 <[email protected]>,
    jshuatree <[email protected]>
    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.


  5. #5
    Biff
    Guest

    Re: Countif with nested function not working?

    =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" <[email protected]> wrote
    in message news:[email protected]...
    >
    > 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
    >




  6. #6
    JE McGimpsey
    Guest

    Re: Countif with nested function not working?

    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 <[email protected]>,
    jshuatree <[email protected]>
    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.


  7. #7
    Biff
    Guest

    Re: Countif with nested function not working?

    =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" <[email protected]> wrote
    in message news:[email protected]...
    >
    > 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
    >




  8. #8
    JE McGimpsey
    Guest

    Re: Countif with nested function not working?

    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 <[email protected]>,
    jshuatree <[email protected]>
    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.


  9. #9
    Biff
    Guest

    Re: Countif with nested function not working?

    =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" <[email protected]> wrote
    in message news:[email protected]...
    >
    > 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
    >




  10. #10
    JE McGimpsey
    Guest

    Re: Countif with nested function not working?

    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 <[email protected]>,
    jshuatree <[email protected]>
    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.


  11. #11
    Biff
    Guest

    Re: Countif with nested function not working?

    =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" <[email protected]> wrote
    in message news:[email protected]...
    >
    > 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
    >




  12. #12
    JE McGimpsey
    Guest

    Re: Countif with nested function not working?

    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 <[email protected]>,
    jshuatree <[email protected]>
    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.


  13. #13
    Biff
    Guest

    Re: Countif with nested function not working?

    =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" <[email protected]> wrote
    in message news:[email protected]...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1