+ Reply to Thread
Results 1 to 6 of 6

I need to calculate the percentage of cells in a column that are positive numbers

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    I need to calculate the percentage of cells in a column that are positive numbers

    IF I have a column of 1000 values, and 600 of them are positive. The rest are negative or 0, then the result should be 60%. What formula can I use to calculate this for every column in my worksheet?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,266

    Re: I need to calculate the percentage of cells in a column that are positive numbers

    Try:

    =COUNTIF(A:A,">"&0)/COUNT(A:A)

    Format as percentage.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,144

    Re: I need to calculate the percentage of cells in a column that are positive numbers

    so you are just counting the values > 0

    and you know its a 1000 rows

    =COUNTIF(A2:A1001,">"&0)/1000

    and copy for all the other columns you want to calculate
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: I need to calculate the percentage of cells in a column that are positive numbers

    I think in both solutions just ">0" could be used as criteria, so:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the value to be compared is constant we could hardcode it into criterion. Of course if we would like to use content of some cell concatenation operator shall be used, like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  5. #5
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Re: I need to calculate the percentage of cells in a column that are positive numbers

    Thanks everybody!

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: I need to calculate the percentage of cells in a column that are positive numbers

    A1:M1 as follows: -0.5, -1, -1, 0.5, 1, 2, -1, -2, -0.6, 1, 3, -1, -1. Plz count the sum of event if at least two consecutive numbers less than or equal to -1 and end when greater than or equal to 0 (considered as an event need to be counted, and then calculation the sum for each events

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Calculate percentage of positive cells in a column
    By cableghost in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2021, 12:52 PM
  2. Calculate percentage of cells answered yes in a column
    By Alinkowski in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-26-2019, 03:38 PM
  3. Calculate percentage of positive and negative numbers for a pie chart
    By splinters in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2019, 05:36 PM
  4. [SOLVED] Find percentage of positive numbers from A4:A23?
    By Mr.Castle in forum Excel General
    Replies: 8
    Last Post: 08-23-2018, 03:57 PM
  5. Replies: 12
    Last Post: 04-22-2018, 05:11 PM
  6. Making VBA calculate sum of specific positive numbers in a range
    By cartman.333 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2016, 06:25 PM
  7. [SOLVED] Calculate only Positive Numbers
    By B G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2006, 10:15 AM

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