Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Countif to always get a positive number

I'm not quite sure what you're doing, but if you surround your formula with
=abs(), you'll end up with a non-negative result.

=abs(countif(...)-countif(...))



OrlandoFreeman wrote:

I want to countif the occurrences between a certain average result/number in
my cell V66 and cero. Because my data would be changing over time, the
numbers of occurences will be higher or lower. How do I combine the following
to countif and always get a positive number?:

- If I use my formulae =COUNTIF(V5:V64,""&V66)-COUNTIF(V5:V64,"0"), I get
the correct number, but it is a negative number (e.g.-25)

- If I reverse the order in the formulae above:

=COUNTIF(V5:V64,"0")-COUNTIF(V5:V64,""&V66), I still get the correct
number and it is positive (e.g. 25).

Thank you


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CountIF columnH2-H101 the number of time between ages 20-29 occurs viabello Excel Worksheet Functions 2 April 24th 06 10:45 PM
Force function to show positive or negative number? smoore Excel Worksheet Functions 3 March 3rd 06 08:34 PM
Preceding a number by zeros, that is still a number Michele Excel Worksheet Functions 1 September 14th 05 01:06 PM
How can I get the XIRR funct to work for a positive first number? Asiapro Excel Worksheet Functions 1 August 16th 05 12:21 AM
countif number of occurences per month per year. Pete Petersen Excel Worksheet Functions 2 January 4th 05 03:47 PM


All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"