#1   Report Post  
summerelli
 
Posts: n/a
Default Formulas

Hi! What formula would I use to calculate an n/a value. For example,
A1-A7 have varying numerical values, but 8 and 9 are n/a. What formula would
I use?

Thanks in advance for your help.
  #2   Report Post  
Roy Wagner
 
Posts: n/a
Default

In my test, having the text "N/A" didn't bother a sum of a column including
that text. If you mean, the error value #N/A as the result of a formula, I
usually suppress them from appearing on the sheet with IF(ISERROR(some
calculation),"",some calculation) for that cell. You can also use ISNA if you
specifically want to trap them. ISERROR gets all of the formula errors. It
doubles the size of your formula, but it does the job. If the formula would
have produced an error, you can make it display whatever you want, ""
(blank), 0, "N/A", etc.

Roy

A1 =5
A2 =1
A3 =6
A4 =4
A5 =8
A6 =9
A7 =2
A8 =N/A (a text value)
A9 =N/A (a text value)
A10= 35 (=SUM(A1:A9) This works fine

A1 =5
A2 =1
A3 =6
A4 =4
A5 =8
A6 =9
A7 =2
A8 =IF(ISERROR(Your Formula Here),"",Your Formula Here)
A9 =IF(ISERROR(Your Formula Here),"",Your Formula Here)
A10= 35 '=(SUM(A1:A9)

--
(delete .nospam)




"summerelli" wrote:

Hi! What formula would I use to calculate an n/a value. For example,
A1-A7 have varying numerical values, but 8 and 9 are n/a. What formula would
I use?

Thanks in advance for your help.

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you really have #n/a! error values in some of your cells and you have to keep
those error values, you can use this formula:

=SUM(IF(ISNUMBER(A1:A7),A1:A7))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

(But I like using a formula like Roy Wagner suggested to hide the error.)

summerelli wrote:

Hi! What formula would I use to calculate an n/a value. For example,
A1-A7 have varying numerical values, but 8 and 9 are n/a. What formula would
I use?

Thanks in advance for your help.


--

Dave Peterson
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
paste formulas between workbooks without workbook link ron Excel Discussion (Misc queries) 3 April 22nd 23 08:11 AM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 05:40 AM.

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"