Ignoring N/A

pedroc

New Member
Joined
Jul 20, 2011
Messages
22
I have a column in which N/A could acceptably be returned. However I need to total the values that appear in the column. Can I create a sum which just ignores the presence of the N/A?

Many thanks

pedroc
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
To sum (for example) B2:B29 --

=SUM(IF(ISNA(B2:B29),0,B2:B29))

Confirm with CTRL+SHIFT+ENTER

Denis
 
Upvote 0
Hi pedroc

When you use the SUM function, it will only add together the numbers within that range and will ignore any text. Therefore if you have a range of data which is part numbers and part 'N/A' then the numbers will be added but the text ignored.

Hope this helps!
 
Upvote 0
In the cells that produce the #N/A change the formula to:
=IFERROR(ExistingFormulaHere,"n/a")

where you should replace ExistingFormulaHere with the obvious.
 
Upvote 0
You could try 'ISNA' in your formula;
This is a simple VLOOKUP formula using the ISNA;
Code:
=IF(ISNA(VLOOKUP(D1,$A$1:$B$6,2,0)),"",VLOOKUP(D1,$A$1:$B$6,2,0))

HTH
Colin
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top