Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel calculation

Hi all,

Newbie question. I want to calculate an overall score
where sometimes I have a NA field (not available score.
In the example below, I would like to calculate SUM Row 1
to Row 7 and only divide by the number of rows with actual
numbers...in this case it would be (13 / 4). Please help.

Thanks.

Martin

Row Score
1 2
2 3
3 NA
4 5
5 3
6 NA
7 NA







  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel calculation

Hi
use
=AVERAGE(A1:A7)

Average will ignore text fields

--
Regards
Frank Kabel
Frankfurt, Germany

"Martin" schrieb im Newsbeitrag
...
Hi all,

Newbie question. I want to calculate an overall score
where sometimes I have a NA field (not available score.
In the example below, I would like to calculate SUM Row 1
to Row 7 and only divide by the number of rows with actual
numbers...in this case it would be (13 / 4). Please help.

Thanks.

Martin

Row Score
1 2
2 3
3 NA
4 5
5 3
6 NA
7 NA








  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Excel calculation

One way:

If your data is in column A, then in column B enter this formula:

=IF(ISNA(A1),0,A1)

and in column C:

=IF(ISNA(A1),0,1)

extend both to the end of the data in column A (let's say A7, like in your
example)

Your formula (for 7 entries):

=SUM(B1:B7)/SUM(C1:C7)

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Martin" wrote in message
...
Hi all,

Newbie question. I want to calculate an overall score
where sometimes I have a NA field (not available score.
In the example below, I would like to calculate SUM Row 1
to Row 7 and only divide by the number of rows with actual
numbers...in this case it would be (13 / 4). Please help.

Thanks.

Martin

Row Score
1 2
2 3
3 NA
4 5
5 3
6 NA
7 NA









  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel calculation

Martin,,
If it is just text NA, then

=AVERAGE(A1:A7)

should work

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Martin" wrote in message
...
Hi all,

Newbie question. I want to calculate an overall score
where sometimes I have a NA field (not available score.
In the example below, I would like to calculate SUM Row 1
to Row 7 and only divide by the number of rows with actual
numbers...in this case it would be (13 / 4). Please help.

Thanks.

Martin

Row Score
1 2
2 3
3 NA
4 5
5 3
6 NA
7 NA









  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Excel calculation

Just use the average function for the column and it will
give you the correct value.

=AVERAGE(B1:B7)

1 2
2 3
3 na
4 5
5 3
6 na
7 na
3.25

-----Original Message-----
Hi all,

Newbie question. I want to calculate an overall score
where sometimes I have a NA field (not available score.
In the example below, I would like to calculate SUM Row 1
to Row 7 and only divide by the number of rows with

actual
numbers...in this case it would be (13 / 4). Please help.

Thanks.

Martin

Row Score
1 2
2 3
3 NA
4 5
5 3
6 NA
7 NA







.

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
excel calculation Shiblie Bshara New Users to Excel 2 January 16th 08 02:21 PM
Excel IRR calculation thudi Excel Worksheet Functions 1 October 26th 05 05:50 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM
range.calculation with UDF not working when calculation is set to automatic Brian Murphy Excel Programming 5 October 14th 03 07:02 PM


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