Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Daniel R
 
Posts: n/a
Default adding cells that contain formulas that have returned error messag

I have a spreadsheet taht contains many v-lookups. When no match is
returned, it displays a #n/a. If this is displayed in a range that is sumed
up, if causes the sum to also appear as #n/a. The sum function will ignore
actual text in it's calculation, but not this "error" message. How do I make
it so that the "#n/a" value will not stop SUM formulas from adding the cells
that did return a numerical value?
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Change your lookup formulas to return "" or zero if the
lookup value is not found then SUM will work.

If you want #N/A to be displayed:

If the values are always positive:

=SUMIF(A1:A10,"0")

If the values can be negative (array entered with the key
combo of DTRL,SHIFT,ENTER)

=SUM(IF(ISNUMBER(A1:A10),A1:A10))

Biff

-----Original Message-----
I have a spreadsheet taht contains many v-lookups. When

no match is
returned, it displays a #n/a. If this is displayed in a

range that is sumed
up, if causes the sum to also appear as #n/a. The sum

function will ignore
actual text in it's calculation, but not this "error"

message. How do I make
it so that the "#n/a" value will not stop SUM formulas

from adding the cells
that did return a numerical value?
.

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

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

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a spreadsheet taht contains many v-lookups. When

no match is
returned, it displays a #n/a. If this is displayed in a

range that is sumed
up, if causes the sum to also appear as #n/a. The sum

function will ignore
actual text in it's calculation, but not this "error"

message. How do I make
it so that the "#n/a" value will not stop SUM formulas

from adding the cells
that did return a numerical value?
.

  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Daniel

Try wrapping your current vlookup formula within a test for N/A
=IF(ISNA(your_formula),"",(your_formula))

This will put a null character in place of the #n/a and your Sum should
work.
Alternatively, you could put a 0 rather than the "" between the commas in
the formula to put zeros in the cells.

--
Regards
Roger Govier
"Daniel R" <Daniel wrote in message
...
I have a spreadsheet taht contains many v-lookups. When no match is
returned, it displays a #n/a. If this is displayed in a range that is
sumed
up, if causes the sum to also appear as #n/a. The sum function will
ignore
actual text in it's calculation, but not this "error" message. How do I
make
it so that the "#n/a" value will not stop SUM formulas from adding the
cells
that did return a numerical value?



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
how to copy formulas to other cells in excell eugene Setting up and Configuration of Excel 1 January 16th 05 11:25 PM
Adding contents of cells by clicking in Excel 2002 Kevin Gordon Excel Discussion (Misc queries) 7 January 11th 05 04:49 PM
ADDING SUM TOTAL OF MORE THAN 30 CELLS IN A COLUMN TOGETHER - WON. Robin Smith Excel Discussion (Misc queries) 0 December 20th 04 08:47 PM
In Exel 2000, stop the blank cells (with formulas) from printing. tonyoc Excel Discussion (Misc queries) 1 December 10th 04 12:38 AM
ADDING CELLS WHICH ARE <> THAN OTHER CELLS boogie Excel Worksheet Functions 2 November 25th 04 02:41 PM


All times are GMT +1. The time now is 07:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"