Average question

E1 calling

New Member
Joined
Jul 18, 2011
Messages
25
Hello,

I am looking for a formula which calculates the average of the values NOT in the parentheses, also values as - and #NA can be ignored.

So the formula should work like: =AVERAGE(3,1,1,1,27,5,6,21,48,4,1,38,2,6,4)=11.2

A1: 3
A2: 1
A3: 1
A4: 1
A5: 27 (-2)
A6: 5 (+9)
A7: -
A8: 6
A9: 21 (+4)
A10: -
A11: 48 (-2)
A12: 4
A13: -
A14: 1
A15: 38 (-8)
A16: 2
A17: 6
A18: #NA
A19: 4

Any takers for this formula? I have been trying to create formula with no result so far.

Many thanks in advance.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Assuming the common factor converting the oddballs to numbers is the presence of a space, in col B for each entry insert the formula

=IF(ISNUMBER(A2),A2,IF(ISERROR(LEFT(A2,FIND(" ",A2))),"",VALUE(LEFT(A2,FIND(" ",A2)))))

This will leave numbers unchanged, convert the start of text to a number and text without a space to blank. Now taking the average of this gives the correct answer since blanks are ignored.
 
Upvote 0
Hi try this
Excel Workbook
ABC
1311.2
21
31
41
527 (-2)
65 (+9)
7-
86
921 (+4)
10-
1148 (-2)
124
13-
141
1538 (-8)
162
176
18#NA
194
Sheet1
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
@Yahya: the formula is perfect. Many thanks for this, your help is much appreciated.

All others, thanks for taking time to reply.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,843
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top