+ Reply to Thread
Results 1 to 5 of 5

Counting Pos and Neg #'s

  1. #1
    Registered User
    Join Date
    11-25-2005
    Posts
    51

    Counting Pos and Neg #'s

    I have column with numbers that are both pos amd neg. I want to add up all the pos #'s and divide by that number by the number that they occur and do the same with neg #'s.

    So if all pos# add up to 23.18 and pos #s occur 75 times I would be dividing 23.18 by 75. And so on. Thanks again.

  2. #2
    pinmaster
    Guest
    Hi,
    How about this:
    =SUMIF(A1:A10,"<0")/COUNTIF(A1:A10,"<0")

    HTH
    JG

  3. #3
    bpeltzer
    Guest

    RE: Counting Pos and Neg #'s

    =sumif(a:a,">0",a:a) will total all the positive values; =countif(a:a,">0")
    will tell you how many there are. So =sumif(a:a,">0",a:a)/countif(a:a,">0")
    will give you the average of all the positives.
    --Bruce

    "jimbob" wrote:

    >
    > I have column with numbers that are both pos amd neg. I want to add up
    > all the pos #'s and divide by that number by the number that they occur
    > and do the same with neg #'s.
    >
    > So if all pos# add up to 23.18 and pos #s occur 75 times I would be
    > dividing 23.18 by 75. And so on. Thanks again.
    >
    >
    > --
    > jimbob
    > ------------------------------------------------------------------------
    > jimbob's Profile: http://www.excelforum.com/member.php...o&userid=29107
    > View this thread: http://www.excelforum.com/showthread...hreadid=488491
    >
    >


  4. #4
    Dana DeLouis
    Guest

    Re: Counting Pos and Neg #'s

    Hi. Here's one way:

    =SUMIF(Rng,">0")/COUNTIF(Rng,">0")

    =SUMIF(Rng,"<0")/COUNTIF(Rng,"<0")

    HTH
    --
    Dana DeLouis
    Win XP & Office 2003


    "jimbob" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have column with numbers that are both pos amd neg. I want to add up
    > all the pos #'s and divide by that number by the number that they occur
    > and do the same with neg #'s.
    >
    > So if all pos# add up to 23.18 and pos #s occur 75 times I would be
    > dividing 23.18 by 75. And so on. Thanks again.
    >
    >
    > --
    > jimbob
    > ------------------------------------------------------------------------
    > jimbob's Profile:
    > http://www.excelforum.com/member.php...o&userid=29107
    > View this thread: http://www.excelforum.com/showthread...hreadid=488491
    >




  5. #5
    Dana DeLouis
    Guest

    Re: Counting Pos and Neg #'s

    ....or the Array formula:

    =AVERAGE(IF(Rng>0,Rng)) -> (Ctrl+Shift+Enter)

    --
    Dana DeLouis
    Win XP & Office 2003


    "Dana DeLouis" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi. Here's one way:
    >
    > =SUMIF(Rng,">0")/COUNTIF(Rng,">0")
    >
    > =SUMIF(Rng,"<0")/COUNTIF(Rng,"<0")
    >
    > HTH
    > --
    > Dana DeLouis
    > Win XP & Office 2003
    >
    >
    > "jimbob" <[email protected]> wrote in
    > message news:[email protected]...
    >>
    >> I have column with numbers that are both pos amd neg. I want to add up
    >> all the pos #'s and divide by that number by the number that they occur
    >> and do the same with neg #'s.
    >>
    >> So if all pos# add up to 23.18 and pos #s occur 75 times I would be
    >> dividing 23.18 by 75. And so on. Thanks again.
    >>
    >>
    >> --
    >> jimbob
    >> ------------------------------------------------------------------------
    >> jimbob's Profile:
    >> http://www.excelforum.com/member.php...o&userid=29107
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=488491
    >>

    >
    >




+ 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