Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Sum Function When Formula Produces #N/A

Hello.

I am using Excel 2010.

I have a formula that produces a number or #N/A for each row in my spreadsheet.

I would like to sum this column and come up with a total but the SUM function does not work with the #N/A.

Is there a way to sum the column even though there are #N/A's ?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 829
Default Sum Function When Formula Produces #N/A

wrote:
I am using Excel 2010.
I have a formula that produces a number or #N/A for each row
in my spreadsheet.
I would like to sum this column and come up with a total but
the SUM function does not work with the #N/A.
Is there a way to sum the column even though there are #N/A's ?


To answer your question, try:

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

But I think it would be better to avoid the #N/A errors in the first place.
Suppose the formula returning #N/A is of the form =VLOOKUP(...). In Excel
2007 and later, you might write:

=IFERROR(VLOOKUP(...),"")

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Sum Function When Formula Produces #N/A

On Friday, August 17, 2012 10:23:15 AM UTC-4, joeu2004 wrote:
I am using Excel 2010. I have a formula that produces a number or #N/A for each row in my spreadsheet. I would like to sum this column and come up with a total but the SUM function does not work with the #N/A. Is there a way to sum the column even though there are #N/A's ? To answer your question, try: =SUMIF(A1:A100,"<#N/A") But I think it would be better to avoid the #N/A errors in the first place. Suppose the formula returning #N/A is of the form =VLOOKUP(...). In Excel 2007 and later, you might write: =IFERROR(VLOOKUP(...),"")

Thanks. That was very helpful.
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
OR function produces incorrect result MZ New Users to Excel 4 December 15th 09 05:29 PM
ROUNDDOWN function produces different results? Baldbloke Excel Worksheet Functions 6 November 15th 07 02:46 PM
Result of Formula produces Picture? sharkman Excel Worksheet Functions 3 May 30th 06 09:50 PM
Formula produces picture file...? miwarren Excel Worksheet Functions 2 December 28th 05 03:59 PM
FORMULA PRODUCES WRONG RESULT Wildebeest222 Excel Discussion (Misc queries) 2 October 11th 05 09:27 AM


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