Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a list of products on drop downs (validation) which also populates a
cell next to it with its base cost. However if nothing is selected it shows as #N/A. At the bottom of the list is a subtotal which works if it only looks at cells with numbers. If it see an #N/A it doesnt total the ones that have been populated. How can I get the subtotal to ignore blanks or #N/A? How do I get it to show Blanks in stead of #N/A for that matter? Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() =SUMIF(I1:I5,"<#N/A") To remove #N/A you need something like: =IF(ISNA(myformula),"",myformula) HTH "Jules73" wrote: I have a list of products on drop downs (validation) which also populates a cell next to it with its base cost. However if nothing is selected it shows as #N/A. At the bottom of the list is a subtotal which works if it only looks at cells with numbers. If it see an #N/A it doesnt total the ones that have been populated. How can I get the subtotal to ignore blanks or #N/A? How do I get it to show Blanks in stead of #N/A for that matter? Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Mar 21, 3:33 pm, Jules73 wrote:
I have a list of products on drop downs (validation) which also populates a cell next to it with its base cost. However if nothing is selected it shows as #N/A. At the bottom of the list is a subtotal which works if it only looks at cells with numbers. If it see an #N/A it doesnt total the ones that have been populated. How can I get the subtotal to ignore blanks or #N/A? How do I get it to show Blanks in stead of #N/A for that matter? Thanks in advance. I had the same problem. You need to use ISERROR in your formula. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Jules73" wrote:
I have a list of products on drop downs (validation) which also populates a cell next to it with its base cost. However if nothing is selected it shows as #N/A. At the bottom of the list is a subtotal which works if it only looks at cells with numbers. If it see an #N/A it doesnt total the ones that have been populated. How can I get the subtotal to ignore blanks or #N/A? How do I get it to show Blanks in stead of #N/A for that matter? Jules I'm not sure if this will do but this UDF will ignore errors and sum the range Function SumErrRange(range) As Double Dim c, myTotal As Double For Each c In range If IsNumeric(c) Then myTotal = myTotal + c End If Next SumErr = myTotal End Function Hope this works for you Peter |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Which hides all errors, not just #N/A
It is better to trap the error at the source rather than deal with it later. See Toppers' reply. Gord Dibben MS Excel MVP On 21 Mar 2007 13:24:47 -0700, "PWK" wrote: I had the same problem. You need to use ISERROR in your formula. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to hide an item subtotal in the row field? | Excel Discussion (Misc queries) | |||
pasting to subtotal lines without replacing hidden -non-subtotal l | Excel Discussion (Misc queries) | |||
Bolding the subtotal lines automaticlly When using the Subtotal fu | New Users to Excel | |||
pivot table - hide details but show subtotal for calculated field | Excel Discussion (Misc queries) | |||
Subtotal of Subtotal displays Grand Total in wrong row | Excel Worksheet Functions |