Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
candylj
 
Posts: n/a
Default Excel: How do I sum a row if one cell has #n/a in it?

I have created a spreadsheet using vlookups. If a cell is blank, the other
cell returns #n/a. However, a total may be in another cell. I am adding two
sets of information in another cell. If one cell has a number and other has
n/a, it returns n/a instead of the total number. The help screen for n/a
says use brackets (), but it does not make any sense. SUMIF, IF, COUNTIF
has not worked to get the End Total to add when there is a #n/a in the
sub-total fields.

Types Cost Amount Total Types Cost Total End
Total
Metro 2.50 1 2.50 n/a
2.50 **

** It returns #n/a instead of $2.50. What is the correct formula to by
pass the cell that shows n/a instead of a number?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Excel: How do I sum a row if one cell has #n/a in it?

"candylj" wrote...
I have created a spreadsheet using vlookups. If a cell is blank, the other
cell returns #n/a. However, a total may be in another cell. I am adding
two
sets of information in another cell. If one cell has a number and other
has
n/a, it returns n/a instead of the total number. The help screen for n/a
says use brackets (), but it does not make any sense. SUMIF, IF, COUNTIF
has not worked to get the End Total to add when there is a #n/a in the
sub-total fields.

....

Better to fix the VLOOKUP formulas so that instead of

=VLOOKUP(a,d,c,0)

which could return #N/A, you use an IF test as well, like

=IF(ISNA(VLOOKUP(a,b,c,0)),"",VLOOKUP(a,b,c,0))

but next best would be using SUMIF to sum the range of these formulas.

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


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
cell on one page equals cell on another page in excel? toswald Excel Worksheet Functions 1 September 26th 05 08:52 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
How Can I make a cell flash in Excel monir Excel Discussion (Misc queries) 0 February 4th 05 03:41 AM
Excel: how to formulate conditional cell references centraloffice Excel Worksheet Functions 1 December 10th 04 08:57 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


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