#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default SUMIF excluding #N/A

I am trying to add different cells located in different worksheets (tabs)
within the same workbook. I know I can use =SUMIF(A1:A5,<#N/A) without
error.

The problem I am having is trying to add different cells not grouped
together while using SUMIF. Example, =SUMIF(A1+A3+B5+C20, <#N/A). If B5
=#N/A for instance, then my SUMIF will not work.

Any solutions?

Thank you in advance for help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default SUMIF excluding #N/A

I know it looks odd, but this appears to work:

=SUMIF(A1,"<#N/A") + SUMIF(A3,"<#N/A") + SUMIF(B5,"<#N/A") +
SUMIF(C20,"<#N/A")

"Scott A" wrote:

I am trying to add different cells located in different worksheets (tabs)
within the same workbook. I know I can use =SUMIF(A1:A5,<#N/A) without
error.

The problem I am having is trying to add different cells not grouped
together while using SUMIF. Example, =SUMIF(A1+A3+B5+C20, <#N/A). If B5
=#N/A for instance, then my SUMIF will not work.

Any solutions?

Thank you in advance for help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default SUMIF excluding #N/A

Thank you for the suggestion. I understand your recommnedation, but the
problem I run into is number of characters in the formula.

I provided an abreviated version. In reality, I need to sum approx 20 cells
over about 9 worksheets. Not all of the cells are in the same cell reference
location. For the time, I am using a hidden sheet to capture the data
grouped together and using a SUMIF from that. I am just trying to find a
cleaner way.

I appreciate any suggestions.



"JLatham" wrote:

I know it looks odd, but this appears to work:

=SUMIF(A1,"<#N/A") + SUMIF(A3,"<#N/A") + SUMIF(B5,"<#N/A") +
SUMIF(C20,"<#N/A")

"Scott A" wrote:

I am trying to add different cells located in different worksheets (tabs)
within the same workbook. I know I can use =SUMIF(A1:A5,<#N/A) without
error.

The problem I am having is trying to add different cells not grouped
together while using SUMIF. Example, =SUMIF(A1+A3+B5+C20, <#N/A). If B5
=#N/A for instance, then my SUMIF will not work.

Any solutions?

Thank you in advance for help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default SUMIF excluding #N/A



If the only cells with #N/A are one of the cells you are referencing then
you could do something like this

=SUMIF(A2:B9,"<#N/A")-SUM(A3,A5,A6,A8,B2:B9)

Note these cell addresses are just a sample.
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Scott A" wrote:

I am trying to add different cells located in different worksheets (tabs)
within the same workbook. I know I can use =SUMIF(A1:A5,<#N/A) without
error.

The problem I am having is trying to add different cells not grouped
together while using SUMIF. Example, =SUMIF(A1+A3+B5+C20, <#N/A). If B5
=#N/A for instance, then my SUMIF will not work.

Any solutions?

Thank you in advance for help.

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
SUMIF excluding #N/A Scott A[_2_] Excel Discussion (Misc queries) 1 February 12th 09 04:20 PM
Min Excluding Value kazoo Excel Discussion (Misc queries) 8 March 4th 08 08:36 PM
Excluding subtotals from SUMIF function Graeme Excel Worksheet Functions 5 June 21st 07 02:26 PM
Excluding Zero's from Average (SumIF / CountIF) Alex Excel Worksheet Functions 5 March 28th 06 07:27 PM
MIN excluding 0s Thore Excel Worksheet Functions 3 December 20th 04 12:09 PM


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