Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default CONDITIONAL / NESTED COUNTIF

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default CONDITIONAL / NESTED COUNTIF

Nel post
*OrlandoFreeman* ha scritto:

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



Hi Orlando,

try with this:

=ABS(COUNTIF(V5:V64,""&V66)-COUNTIF(V5:V64,"0"))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default CONDITIONAL / NESTED COUNTIF

Thank you Franz,

I tried your ABS formulae and seems to work fine. I also tried the following
and also works. Which formulae do U think would give the most as I have to
use and keep it up-to-date over 12 worksheets?


=IF(COUNTIF(V5:V64,""&V66)<COUNTIF(V5:V64,"0"),C OUNTIF(V5:V64,"0")-COUNTIF(V5:V64,""&V66),"")

I will try yours now.

"Franz Verga" wrote:

Nel post
*OrlandoFreeman* ha scritto:

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



Hi Orlando,

try with this:

=ABS(COUNTIF(V5:V64,""&V66)-COUNTIF(V5:V64,"0"))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default CONDITIONAL / NESTED COUNTIF

Less function you use in a formula faster will be your formula and also, I
think that the one with ABS is more readable...


OrlandoFreeman wrote:
Thank you Franz,

I tried your ABS formulae and seems to work fine. I also tried the
following and also works. Which formulae do U think would give the
most as I have to use and keep it up-to-date over 12 worksheets?


=IF(COUNTIF(V5:V64,""&V66)<COUNTIF(V5:V64,"0"),C OUNTIF(V5:V64,"0")-COUNTIF(V5:V64,""&V66),"")

I will try yours now.

"Franz Verga" wrote:

Nel post
*OrlandoFreeman* ha scritto:

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



Hi Orlando,

try with this:

=ABS(COUNTIF(V5:V64,""&V66)-COUNTIF(V5:V64,"0"))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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
Conditional Formatting And Countif cafe Excel Discussion (Misc queries) 6 August 10th 05 08:40 PM
Use CountIF with conditional formulas Chris Price Excel Worksheet Functions 4 July 27th 05 11:53 AM
Nested Countif wayne75 Excel Worksheet Functions 2 June 3rd 05 04:30 PM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM
Countif and Conditional Formatting Ramiro Espinoza Excel Worksheet Functions 1 February 2nd 05 06:21 PM


All times are GMT +1. The time now is 01:20 PM.

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

About Us

"It's about Microsoft Excel"