Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default How to limit sum function to numeric values

How do I add a group of cells but ignore any cell with a value of "na"?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default How to limit sum function to numeric values

Try this:

=SUMIF(A1:A10,"<"&"#N/A")

HTH,
Elkar


"jmcclain" wrote:

How do I add a group of cells but ignore any cell with a value of "na"?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How to limit sum function to numeric values

=SUM() will ignore any text values in the range.
--
David Biddulph

"jmcclain" wrote in message
...
How do I add a group of cells but ignore any cell with a value of "na"?

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default How to limit sum function to numeric values

Thanks...

How do I handle a situation where I want to add non-consecutive cells, such
as A1+A5+A12....

"Elkar" wrote:

Try this:

=SUMIF(A1:A10,"<"&"#N/A")

HTH,
Elkar


"jmcclain" wrote:

How do I add a group of cells but ignore any cell with a value of "na"?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default How to limit sum function to numeric values

In that case, it would probably be easier to eliminate the #N/A errors rather
than trying to SUM around them.

Do something like:

=IF(ISNA(your formula),"",your formula)

This way, if your formula results in #N/A, a blank will be returned instead.
Then, the SUM function will work on those cells. SUM(A1,A5,A12)

HTH,
Elkar


"jmcclain" wrote:

Thanks...

How do I handle a situation where I want to add non-consecutive cells, such
as A1+A5+A12....

"Elkar" wrote:

Try this:

=SUMIF(A1:A10,"<"&"#N/A")

HTH,
Elkar


"jmcclain" wrote:

How do I add a group of cells but ignore any cell with a value of "na"?

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default How to limit sum function to numeric values

Understood - but the total is adding subtotals in a sense....currently done
by +sum(a1+a4+a7) etc...

"David Biddulph" wrote:

=SUM() will ignore any text values in the range.
--
David Biddulph

"jmcclain" wrote in message
...
How do I add a group of cells but ignore any cell with a value of "na"?

Thanks




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to limit sum function to numeric values

=SUMIF(A1:A10,"<"&"#N/A")

Or:

=SUMIF(A1:A10,"<#N/A")



--
Biff
Microsoft Excel MVP


"Elkar" wrote in message
...
Try this:

=SUMIF(A1:A10,"<"&"#N/A")

HTH,
Elkar


"jmcclain" wrote:

How do I add a group of cells but ignore any cell with a value of "na"?

Thanks



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default How to limit sum function to numeric values

=SUM(A1,A4,A7)

will ignore text but not errors


--


Regards,


Peo Sjoblom



"jmcclain" wrote in message
...
Understood - but the total is adding subtotals in a sense....currently
done
by +sum(a1+a4+a7) etc...

"David Biddulph" wrote:

=SUM() will ignore any text values in the range.
--
David Biddulph

"jmcclain" wrote in message
...
How do I add a group of cells but ignore any cell with a value of "na"?

Thanks






  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default How to limit sum function to numeric values

True, but not error values if the OP had #N/A from for instance a VLOOKUP


--


Regards,


Peo Sjoblom


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=SUM() will ignore any text values in the range.
--
David Biddulph

"jmcclain" wrote in message
...
How do I add a group of cells but ignore any cell with a value of "na"?

Thanks





  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How to limit sum function to numeric values

Yes. I was assuming that the OP knew the difference between "na" and #N/A or NA().
--
David Biddulph

"Peo Sjoblom" wrote in message ...
True, but not error values if the OP had #N/A from for instance a VLOOKUP


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=SUM() will ignore any text values in the range.
--
David Biddulph

"jmcclain" wrote in message
...
How do I add a group of cells but ignore any cell with a value of "na"?

Thanks


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
Return Numeric Labels that have different Numeric Values Sam via OfficeKB.com Excel Worksheet Functions 8 December 3rd 06 02:06 AM
Non Numeric Values Harry Hornet Charts and Charting in Excel 1 November 3rd 06 05:08 PM
Matching numeric values. mohd21uk via OfficeKB.com Excel Discussion (Misc queries) 1 May 17th 06 02:40 PM
How to average every 10 numeric values emel24 Excel Worksheet Functions 4 August 11th 05 08:29 AM
Text values to numeric values jayveejay Excel Discussion (Misc queries) 1 August 10th 05 05:03 PM


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