Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
matt
 
Posts: n/a
Default using percentages in an if statement

Is there a way I can incorporate the percentage of values that meet a
critiera into an If statement. For instance, say I've got

1
2
3
4
5
6
7
8
9
10

Is there any way that I can return TRUE if 90% of the values are larger than
1, but FALSE if less than 90% are greater than 1?
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Really don't need an IF:

=COUNTIF(A1:A10,"1")/COUNT(A1:A10)=0.9

But, IF you really want one:

=IF(COUNTIF(A1:A10,"1")/COUNT(A1:A10)=0.9,TRUE)

You might also want to make sure there are enough values in the range so
that you don't get an error return:

=IF(COUNT(A1:A10)<1,"",IF(COUNTIF(A1:A10,"1")/COUNT(A1:A10)=0.9,TRUE))

Biff

"matt" wrote in message
...
Is there a way I can incorporate the percentage of values that meet a
critiera into an If statement. For instance, say I've got

1
2
3
4
5
6
7
8
9
10

Is there any way that I can return TRUE if 90% of the values are larger
than
1, but FALSE if less than 90% are greater than 1?



  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

Is this what you mean:

=COUNTIF(A1:A10,"1")=9
?
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"matt" wrote in message
...
Is there a way I can incorporate the percentage of values that meet a
critiera into an If statement. For instance, say I've got

1
2
3
4
5
6
7
8
9
10

Is there any way that I can return TRUE if 90% of the values are larger
than
1, but FALSE if less than 90% are greater than 1?


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
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 09:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 01:23 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 06:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 06:19 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 08:55 PM


All times are GMT +1. The time now is 04:01 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"