Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Calculate average in a cell from one of two columns

Hi

How can I calcualte an average in one cell from two different columns of
data depending on which is populated. Oh yea one column has a function
applied to it and if there is no data it returns a zero...I only want the
average if the data exists.

%T OD Convert OD to %T Test for blanks
10.00 1.00 =(10^-C19)*100 =IF()

1.00 10.00 10
1.00 10.00 10
5.00 0.00 0.001
2.00 1.00 1
0.50 31.62 31.6227766
100.00 100
100.00 100

See problem is when no data exists the log function takes "0" and turns it
into 100.

thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Calculate average in a cell from one of two columns

=if(isblank(A19)=FALSE,(10^-C19)*100,NA())

I'm not sure if it's A or B from what you have.

Let's say you want to take the average of c1 -C10 but you only want to do it
if A1:A10 is not blank.

Try this:
=AVERAGE(IF(ISBLANK(A1:A10)=FALSE,C1:C10))

Commit with CTRL SHIFT ENTER (formula should have {} around it if done.



"BillO" wrote:

Hi

How can I calcualte an average in one cell from two different columns of
data depending on which is populated. Oh yea one column has a function
applied to it and if there is no data it returns a zero...I only want the
average if the data exists.

%T OD Convert OD to %T Test for blanks
10.00 1.00 =(10^-C19)*100 =IF()

1.00 10.00 10
1.00 10.00 10
5.00 0.00 0.001
2.00 1.00 1
0.50 31.62 31.6227766
100.00 100
100.00 100

See problem is when no data exists the log function takes "0" and turns it
into 100.

thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Calculate average in a cell from one of two columns

try these
=IF(A19="","",(10^-A19)*100)
=IF(A1="",C1,(10^-A1)*100)
"BillO" wrote:

Hi

How can I calcualte an average in one cell from two different columns of
data depending on which is populated. Oh yea one column has a function
applied to it and if there is no data it returns a zero...I only want the
average if the data exists.

%T OD Convert OD to %T Test for blanks
10.00 1.00 =(10^-C19)*100 =IF()

1.00 10.00 10
1.00 10.00 10
5.00 0.00 0.001
2.00 1.00 1
0.50 31.62 31.6227766
100.00 100
100.00 100

See problem is when no data exists the log function takes "0" and turns it
into 100.

thanks

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
CALCULATE WITH AVERAGE ???? [email protected] Excel Discussion (Misc queries) 1 March 18th 07 09:25 PM
Looking-up Columns w/calc'd Values ONLY to Calculate Average sony654 Excel Worksheet Functions 5 April 21st 06 06:21 AM
If/Then calculate the average LynnJ Excel Worksheet Functions 5 January 3rd 06 10:24 PM
Using a pivot to calculate an average w/o 0's dylankrapf Excel Discussion (Misc queries) 0 August 8th 05 10:25 PM
Any way to calculate an average for more than 30 entries? torin_drake Excel Worksheet Functions 1 February 16th 05 01:59 PM


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