Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Sum of cells when an #N/A is present

Greetings,

I have a VLOOKUP and some of the results are #N/A as there is no data for
that cell. I need to sum the rows of cells, including those with #N/A (those
values would then be 0).When I try to add the results those error cells do
not let me add up the other cells with real values.


What is the best way to do this? I am okay with adding another column if
needed

Thank you in advance for your advice!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 419
Default Sum of cells when an #N/A is present

Steve B,

Add error traping to your VLOOKUP formulas.

Change your VLOOKUP formula to this:

=IF(ISNA(VLOOKUP(lookup value,lookup table,column,match)),0,VLOOKUP(lookup
value,lookup table,column,match))

OR

=IF(ISNA(VLOOKUP(lookup value,lookup table,column,match)),"",VLOOKUP(lookup
value,lookup table,column,match))

Now, if your VLOOKUP results in an #N/A, a 0 or "" will be put in it's
place, allowing your other formulas based on this column to work.

HTH,

Conan




"Steve B" wrote in message
...
Greetings,

I have a VLOOKUP and some of the results are #N/A as there is no data for
that cell. I need to sum the rows of cells, including those with #N/A
(those
values would then be 0).When I try to add the results those error cells do
not let me add up the other cells with real values.


What is the best way to do this? I am okay with adding another column if
needed

Thank you in advance for your advice!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Sum of cells when an #N/A is present

hi,

use if(iserror(vlookup(your formula),0,(vlookup(your formula))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Steve B" escreveu:

Greetings,

I have a VLOOKUP and some of the results are #N/A as there is no data for
that cell. I need to sum the rows of cells, including those with #N/A (those
values would then be 0).When I try to add the results those error cells do
not let me add up the other cells with real values.


What is the best way to do this? I am okay with adding another column if
needed

Thank you in advance for your advice!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum of cells when an #N/A is present

Try this:

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

However, the best solution is to correct the lookup formulas so they don't
return errors in the first place. OTOH, you may *need* these errors for
charting purposes, or, you may need to see errors when they happen.

--
Biff
Microsoft Excel MVP


"Steve B" wrote in message
...
Greetings,

I have a VLOOKUP and some of the results are #N/A as there is no data for
that cell. I need to sum the rows of cells, including those with #N/A
(those
values would then be 0).When I try to add the results those error cells do
not let me add up the other cells with real values.


What is the best way to do this? I am okay with adding another column if
needed

Thank you in advance for your advice!



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
no saving if certain value present laureneparker Excel Discussion (Misc queries) 3 September 27th 07 05:15 PM
net present value Frank D Excel Worksheet Functions 1 August 15th 06 04:23 AM
sum cells IF no text present LLM Excel Discussion (Misc queries) 3 February 9th 06 06:56 PM
Net Present Value A Razzak New Users to Excel 1 January 4th 06 10:05 AM
Present Value DME New Users to Excel 1 February 4th 05 05:34 PM


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