English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This formula is posted on a seperate worksheet in reference to a filtered worksheet in the same workbook
*I have to seperate the formula, otherwise Yahoo will automatically shorten it. There are NO spaces or returns in the formula

=IF(OR('For Averages'!E200:E246>=0,
'For Averages'!E200:E246<5),
AVERAGE('For Averages'!L200:L246),
-9999)

2006-07-19 12:45:27 · 7 answers · asked by Anonymous in Computers & Internet Software

i am trying to average numbers that belong to a certain percentage (but I am not averaging the percentage) of a certain fuel type.

2006-07-19 12:52:09 · update #1

7 answers

well one thing the first set of () were not closed you missed one at some point try that


you have =IF(OR( the first one does not close

2006-07-19 12:52:27 · answer #1 · answered by Mieog 3 · 0 0

I tried it in my excel and it worked fine, most errors are syntax, don't you hate that? Well the format should be (and don't worry I'm going to introduce spaces where you don't need them, just delete them):

=IF(OR(SUM('For Averages'!E200:E246)>=0,
(SUM('For Averages'!E200:E246)<5),
AVERAGE('For Averages'!L200:L246),
-9999)

So, if your sum is from and including 0 to and not including 5, then it will give you the value of the average of the cells you requested, otherwise it will show -9999

I'm guessing on the function you were trying to do as you actually left that out.

2006-07-19 13:09:17 · answer #2 · answered by Alyssa 5 · 0 0

I recommend you add a column to find the percentage you are interested in, the ones between 0 and 5 (maybe you meant 0% and 5% since 5% is 0.05) (Maybe you meant AND rather than OR if you need both conditions to be true).

Then, in cell M200:
If(OR(E200>=0,E200<=5),1,0)
[This could more safely be done in 3 columns instead of one using "OR". First column would be If(E200>=0,1,0), etc.]

Then in Cell P200:
=if(M200=1,E200,"")

Copy M200 and P200 down to row 246.
Then P247 can be =average(P200:P247)

2006-07-19 18:10:17 · answer #3 · answered by Gary G 3 · 0 0

add me to your yahoo instant messenger and then send me the file... Maybe we can talk things out a bit better if i can see it right in front of me... I am a certified EXPERT excel MS Office User Specialist. I am willing to help you if you like...

2006-07-19 12:50:57 · answer #4 · answered by Jay 1 · 0 0

For questions about Excel, I highly recommend mrexcel.com. You have to give me "Best Answer" for that one, because it is going to be super helpful to you.:) It's been to me, seriously, it's an amazing resource, post your question on their message board.

2006-07-19 12:50:04 · answer #5 · answered by Ladida 4 · 0 0

Why don't you start your question with what you are trying to do specifically.
Then we can look at possible revisions to your formula.

2006-07-19 12:50:36 · answer #6 · answered by Finnegan 7 · 0 0

please re-submit the formula! placed a line spoil after each 60 characters or so... all we see is the first 60 characters of the formula: "=(G2*funds!$B$7)+('bill record'!H2*funds!$B$8)+(SUM('T-shirts'!J6... receives decrease back to you.

2016-11-06 20:41:28 · answer #7 · answered by ? 4 · 0 0

fedest.com, questions and answers