+ Reply to Thread
Results 1 to 5 of 5

Positive and negative cell count.

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Blackpool
    MS-Off Ver
    Excel 2003
    Posts
    13

    Positive and negative cell count.

    Hi. Folks

    Looking for some formula help please.

    Have a column (e5,e22) which will display either a postive number, a negative number, or a 0.

    I would like a formula to count the total number of postive cells (but disregarding 0) and a formula counting the total number of negative cells (again disregarding zero).

    Looking forward to your answer in anticipation.
    Thanks for trying.
    Big Rick

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Positive and negative cell count.

    try use countif function with <0 >0 and 0 as argument
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Positive and negative cell count.

    Countif(E5:E22, ">0") and "<0"

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Positive and negative cell count.

    something like this?

    =COUNTIF(E5:E22,"<0")

    =COUNTIF(E5:E22,">0")
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  5. #5
    Registered User
    Join Date
    05-01-2012
    Location
    Blackpool
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Positive and negative cell count.

    Many thanks to Zbor and Icestationzebra.

    I was going wrong because I didn't think that the "<1" should be in quotes due to it being a value and not text.

    Many thanks to Tom also.

    Let me buy you all a virtual pint.

+ 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