If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > column average

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-04, 11:26
pritster pritster is offline
Registered User
 
Join Date: Apr 2004
Location: Chicago
Posts: 1
Talking column average

I have a column I want to average. It always starts at C12, but the column length is dependent on the input data file. At the moment, I use a name defined as follows to refer to the column data.

STRAP
=OFFSET('Input Data'!$D$12,0,0,COUNTA('Input Data'!$D:$D)-2,1)

Then of course I just average strap for the data I require. The problem I have is I want to disqualify certain cells with values much greater than the majority before the average is taken. An example I would have is below.

.1
.1
.2
1.2
.1
.1
1.2
.1
.1
.1

I want to throw out the 1.2s and only average the .1s and .2s.
Any ideas?
Thank you.
Reply With Quote
  #2 (permalink)  
Old 04-14-04, 11:41
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Try something like this:

=(SUMIF(B2:B10,"<0.25",B2:B10))/COUNTIF(B2:B10,"<0.25")

This sets the upper limit at 0.25. Adjust as needed.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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