Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() =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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
can i change "A" to "Name" in reference to columns | Excel Discussion (Misc queries) | |||
How do display a "+" or "-" sign when hiding columns? | Setting up and Configuration of Excel | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |