+ Reply to Thread
Results 1 to 5 of 5

Using COUNTIF to calculate number of negative or positive results

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    Birmingham, England
    MS-Off Ver
    2013
    Posts
    10

    Using COUNTIF to calculate number of negative or positive results

    Hi, I have a spreadsheet full of information pertaining to orders. In one column I have the expected delivery date, in another I have the actual despatch date. In another column I have a calculation that works out the number of days from one to the other. This column may show results as 0 - where the order was despatched the day it was ordered, a "-number" where it was so many days earlier than anticipated, and a "number" where it was so many days late.

    I want to analyse this data to show how many orders were on time or early (e.g. 0 or "-number") and how many are late.

    How do I use COUNTIF to count the "-numbers" or "numbers"? Counting the number of "0" was easy enough.

    Or can anyone advise how better I can show this data?

    Thanks!

    Another thought - I guess what I'd like to do is show the percentage of total orders which were on time or early, and the percentage that were late.
    Last edited by BeciG; 05-03-2017 at 10:09 AM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Using COUNTIF to calculate number of negative or positive results

    Try

    =COUNTIF(A;A,">0")

    =COUNTIF(A:A,"<0")

  3. #3
    Registered User
    Join Date
    01-19-2017
    Location
    Birmingham, England
    MS-Off Ver
    2013
    Posts
    10

    Re: Using COUNTIF to calculate number of negative or positive results

    Of course! Thanks John - I forgot about the speechmarks. Thanks for your help.

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Using COUNTIF to calculate number of negative or positive results

    Hi -

    Assuming your data is in column A, you could use somthing like:

    =COUNTIF(A:A,"<0")/COUNT(A:A)

    That would give you the decimal of the negative numbers relative to all the numbers. Just change the criteria for positive numbers ">0". Format the cell as %.

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  5. #5
    Registered User
    Join Date
    01-19-2017
    Location
    Birmingham, England
    MS-Off Ver
    2013
    Posts
    10

    Re: Using COUNTIF to calculate number of negative or positive results

    Even better - thanks loginjmor!

+ 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. Split Positive and Negative results
    By andreasnw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 12:37 PM
  2. [SOLVED] SUMIF positive and negative numbers - take double a negative number?
    By Zordrail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 08:34 AM
  3. Formula calculate based on negative or positive number
    By oxicottin in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-15-2012, 12:45 PM
  4. Formula to calculate difference between a negative and positive number.
    By zumwaj01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2012, 02:13 PM
  5. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  6. Replies: 2
    Last Post: 11-13-2008, 12:35 AM
  7. Help with IF function and positive or negative results
    By BallHawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2005, 11:44 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