Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KIM
 
Posts: n/a
Default Averaging numbers but ignoring < and - entries

I have a column of data as illustrated below than contains numbers, blank
cells, dashes and < entries. Is it possible to average only the numbers
ensuring that the divsor is the number of cells that contain number entreis
rather than all cells containing an entry (eg for below example answer should
be 0.137)

0.3

<0.001
0.01

<0.01

0.1

Thank you

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 23 Feb 2005 06:29:03 -0800, KIM wrote:

I have a column of data as illustrated below than contains numbers, blank
cells, dashes and < entries. Is it possible to average only the numbers
ensuring that the divsor is the number of cells that contain number entreis
rather than all cells containing an entry (eg for below example answer should
be 0.137)

0.3

<0.001
0.01

<0.01

0.1

Thank you


If your entries are in, for example, A1:A8, the formula

=AVERAGE(A1:A8)




--ron
  #3   Report Post  
KIM
 
Posts: n/a
Default

How about if there is a ' infront of every entry and - entered into some
cells? I need the ' to trick access into believing that all the entries are
TEXT rather than a mixture of TEXT and NUMBERS.

e.g.
'0.3

'<0.001
'0.01

'<0.01

'-
'0.1

Should give an answer of 0.0842


Thank you

"Ron Rosenfeld" wrote:

On Wed, 23 Feb 2005 06:29:03 -0800, KIM wrote:

I have a column of data as illustrated below than contains numbers, blank
cells, dashes and < entries. Is it possible to average only the numbers
ensuring that the divsor is the number of cells that contain number entreis
rather than all cells containing an entry (eg for below example answer should
be 0.0842)

0.3

<0.001
0.01

<0.01

0.1

Thank you


If your entries are in, for example, A1:A8, the formula

=AVERAGE(A1:A8)




--ron

  #4   Report Post  
CyberTaz
 
Posts: n/a
Default

Take a look at the VALUE function |:)

"KIM" wrote:

How about if there is a ' infront of every entry and - entered into some
cells? I need the ' to trick access into believing that all the entries are
TEXT rather than a mixture of TEXT and NUMBERS.

e.g.
'0.3

'<0.001
'0.01

'<0.01

'-
'0.1

Should give an answer of 0.0842


Thank you

"Ron Rosenfeld" wrote:

On Wed, 23 Feb 2005 06:29:03 -0800, KIM wrote:

I have a column of data as illustrated below than contains numbers, blank
cells, dashes and < entries. Is it possible to average only the numbers
ensuring that the divsor is the number of cells that contain number entreis
rather than all cells containing an entry (eg for below example answer should
be 0.0842)

0.3

<0.001
0.01

<0.01

0.1

Thank you


If your entries are in, for example, A1:A8, the formula

=AVERAGE(A1:A8)




--ron

  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 23 Feb 2005 07:45:03 -0800, KIM wrote:

How about if there is a ' infront of every entry and - entered into some
cells? I need the ' to trick access into believing that all the entries are
TEXT rather than a mixture of TEXT and NUMBERS.

e.g.
'0.3

'<0.001
'0.01

'<0.01

'-
'0.1

Should give an answer of 0.0842


Thank you


I don't know. I don't understand how you are getting an answer of 0.0842 with
those values.

If an answer of 0.136667 might be correct, then the *array* formula:

=AVERAGE(IF(ISNUMBER(-SUBSTITUTE(A1:A9,"'","")),--SUBSTITUTE(A1:A9,"'","")))

will strip off leading single quotes and average what is a number.

To enter an *array* formula, after typing or pasting in the formula, hold down
<ctrl<shift while hitting <enter. Excel will place braces {...} around the
formula.


--ron
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Averaging the last 5 entries in a row Geo Excel Discussion (Misc queries) 5 January 3rd 05 01:13 AM
Sorting imported "numbers" Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 07:33 PM
multiple entries benny Excel Worksheet Functions 3 December 6th 04 01:38 AM
Add numbers for duplicate entries then delete Chillygoose Excel Worksheet Functions 1 November 2nd 04 04:35 PM


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