Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jc jc is offline
external usenet poster
 
Posts: 164
Default getting rid of "#N/A" in columns

How do i get rid of the dreaded #N/A answer? I have a cell that is a sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in C4, so
my sum in A10 will read #N/A instead of summing the two of three that are
filled in..any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 244
Default getting rid of "#N/A" in columns

On 1 Aug, 16:12, JC wrote:
How do i get rid of the dreaded #N/A answer? I have a cell that is a sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in C4, so
my sum in A10 will read #N/A instead of summing the two of three that are
filled in..any suggestions?


I would PERSONALLY make the formula in row 4 return a blank instead of
an error, but you could use a SUMIF statement (for example,
sumif(range,"0") - this would discount the errors

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default getting rid of "#N/A" in columns

=SUM(IF(ISNUMBER(A4:D4),A4:D4))

ctrl+shift+enter, not just enter


"JC" wrote:

How do i get rid of the dreaded #N/A answer? I have a cell that is a sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in C4, so
my sum in A10 will read #N/A instead of summing the two of three that are
filled in..any suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 791
Default getting rid of "#N/A" in columns

Try this
On each of the sum formulas:

If(Iserror(Sum(A1:A5)),0,Sum(A1:A5))



"JC" wrote:

How do i get rid of the dreaded #N/A answer? I have a cell that is a sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in C4, so
my sum in A10 will read #N/A instead of summing the two of three that are
filled in..any suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default getting rid of "#N/A" in columns



=SUM(IF(ISNUMBER(A4:D4),A4:D4))

enter with Ctrl+Shift+Enter

"JC" wrote:

How do i get rid of the dreaded #N/A answer? I have a cell that is a sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in C4, so
my sum in A10 will read #N/A instead of summing the two of three that are
filled in..any suggestions?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jc jc is offline
external usenet poster
 
Posts: 164
Default getting rid of "#N/A" in columns

Toppers,
Thanks again for your quick reply, however none of the above answers worked...
It may be because the cells i'm trying to add are spread through out the
spread sheet...as an example, one of my formulas is as follows:
=(B20+D20+G20+B41+D41+G41)...but G20 is the #N/A (because there is a formula
in G20), and B20 & D20 are numbers...so how do i tell it to add those 6 so
long as there is a number in there? Any further suggestions?

"Toppers" wrote:



=SUM(IF(ISNUMBER(A4:D4),A4:D4))

enter with Ctrl+Shift+Enter

"JC" wrote:

How do i get rid of the dreaded #N/A answer? I have a cell that is a sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in C4, so
my sum in A10 will read #N/A instead of summing the two of three that are
filled in..any suggestions?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default getting rid of "#N/A" in columns

=SUMPRODUCT(SUMIF(INDIRECT({"B20","D20","G20","B41 ","D41","G41"}),"<=0"&999^99))

will work

however it is insane using a formula like this when all you have to do is to
fix the formula(s) with the #N/A in the first place.

=IF(ISNA(Formula),0,Formula)

or

=IF(ISNA(Formula),"",Formula)

then use


=SUM(B20,D20,G20,B41,D41,G41)


The formula I provided is volatile and will slow down the workbook if it has
lots of formulas and it will always prompt you to save the workbook
regardless whether you have changed anything or not



--
Regards,

Peo Sjoblom




"JC" wrote in message
...
Toppers,
Thanks again for your quick reply, however none of the above answers
worked...
It may be because the cells i'm trying to add are spread through out the
spread sheet...as an example, one of my formulas is as follows:
=(B20+D20+G20+B41+D41+G41)...but G20 is the #N/A (because there is a
formula
in G20), and B20 & D20 are numbers...so how do i tell it to add those 6 so
long as there is a number in there? Any further suggestions?

"Toppers" wrote:



=SUM(IF(ISNUMBER(A4:D4),A4:D4))

enter with Ctrl+Shift+Enter

"JC" wrote:

How do i get rid of the dreaded #N/A answer? I have a cell that is a
sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums
those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums
those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums
those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in
C4, so
my sum in A10 will read #N/A instead of summing the two of three that
are
filled in..any suggestions?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jc jc is offline
external usenet poster
 
Posts: 164
Default getting rid of "#N/A" in columns

Peo,
The first formula that you gave, worked!! Thanks for the reply!!!

"Peo Sjoblom" wrote:

=SUMPRODUCT(SUMIF(INDIRECT({"B20","D20","G20","B41 ","D41","G41"}),"<=0"&999^99))

will work

however it is insane using a formula like this when all you have to do is to
fix the formula(s) with the #N/A in the first place.

=IF(ISNA(Formula),0,Formula)

or

=IF(ISNA(Formula),"",Formula)

then use


=SUM(B20,D20,G20,B41,D41,G41)


The formula I provided is volatile and will slow down the workbook if it has
lots of formulas and it will always prompt you to save the workbook
regardless whether you have changed anything or not



--
Regards,

Peo Sjoblom




"JC" wrote in message
...
Toppers,
Thanks again for your quick reply, however none of the above answers
worked...
It may be because the cells i'm trying to add are spread through out the
spread sheet...as an example, one of my formulas is as follows:
=(B20+D20+G20+B41+D41+G41)...but G20 is the #N/A (because there is a
formula
in G20), and B20 & D20 are numbers...so how do i tell it to add those 6 so
long as there is a number in there? Any further suggestions?

"Toppers" wrote:



=SUM(IF(ISNUMBER(A4:D4),A4:D4))

enter with Ctrl+Shift+Enter

"JC" wrote:

How do i get rid of the dreaded #N/A answer? I have a cell that is a
sum of
6 cells, but those 6 cells are also sums of other cells...EX:

Group 1 fills out A1, A2 & A3...the fromula in A4 automatically sums
those.
Group 2 fills out B1, B2, & B3...the formula in B4 automatically sums
those.
Group 3 fills out C1, C2, & C3...the formula in C4 automatically sums
those.

I want a sum of all of those, so in A10 I say =A4+B4+C4...however there
maybe some times when column C isn't filled in so there is an #N/A in
C4, so
my sum in A10 will read #N/A instead of summing the two of three that
are
filled in..any suggestions?




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default getting rid of "#N/A" in columns

"Peo Sjoblom" wrote...
=SUMPRODUCT(SUMIF(INDIRECT({"B20","D20","G20","B4 1","D41","G41"}),
"<=0"&999^99))

will work


In addition to being volatile, it's also rather inflexible if at some
later date the OP wants to move any of these cells, insert/delete rows/
columns, etc. Since this approach already involves listing each cell
separately, a more flexible, nonvolatile alternative would be

=SUMIF(B20,"<=9.9999999999999E307")+SUMIF(D20,"<=9 .9999999999999E307")
+SUMIF(G20,"<=9.9999999999999E307")+SUMIF(B41,"<=9 .9999999999999E307")
+SUMIF(D41,"<=9.9999999999999E307")+SUMIF(G41,"<=9 .9999999999999E307")

or define the name NUMS referring to ="<=9.99999999999999E307" and
change the formula to

=SUMIF(B20,NUMS)+SUMIF(D20,NUMS)+SUMIF(G20,NUMS)+S UMIF(B41,NUMS)
+SUMIF(D41,NUMS)+SUMIF(G41,NUMS)


however it is insane using a formula like this when all you have
to do is to fix the formula(s) with the #N/A in the first place.

....

Still quite true. Handling errors at the source is much easier in the
long run than handling them down stream.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default getting rid of "#N/A" in columns

Another one:

Array** entered:

=SUM(IF(ISNUMBER(CHOOSE({1,2,3,4,5,6},B20,D20,G20, B41,D41,G41)),CHOOSE({1,2,3,4,5,6},B20,D20,G20,B41 ,D41,G41)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Harlan Grove" wrote in message
oups.com...
"Peo Sjoblom" wrote...
=SUMPRODUCT(SUMIF(INDIRECT({"B20","D20","G20","B 41","D41","G41"}),
"<=0"&999^99))

will work


In addition to being volatile, it's also rather inflexible if at some
later date the OP wants to move any of these cells, insert/delete rows/
columns, etc. Since this approach already involves listing each cell
separately, a more flexible, nonvolatile alternative would be

=SUMIF(B20,"<=9.9999999999999E307")+SUMIF(D20,"<=9 .9999999999999E307")
+SUMIF(G20,"<=9.9999999999999E307")+SUMIF(B41,"<=9 .9999999999999E307")
+SUMIF(D41,"<=9.9999999999999E307")+SUMIF(G41,"<=9 .9999999999999E307")

or define the name NUMS referring to ="<=9.99999999999999E307" and
change the formula to

=SUMIF(B20,NUMS)+SUMIF(D20,NUMS)+SUMIF(G20,NUMS)+S UMIF(B41,NUMS)
+SUMIF(D41,NUMS)+SUMIF(G41,NUMS)


however it is insane using a formula like this when all you have
to do is to fix the formula(s) with the #N/A in the first place.

...

Still quite true. Handling errors at the source is much easier in the
long run than handling them down stream.



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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
can i change "A" to "Name" in reference to columns Debbie Excel Discussion (Misc queries) 2 January 12th 07 09:59 PM
How do display a "+" or "-" sign when hiding columns? DTI Tustin Setting up and Configuration of Excel 1 July 13th 06 01:21 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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