Vlookup bringing back #N/A results - how can I change these to 0

RichardOates

New Member
Joined
Nov 8, 2010
Messages
16
I am trying to do a Vlookup to bring back sales information however some products have got no sales data so the Vlookup is bringing back an #N/A result which means that the total coloumns at the bottom don't calculate.

Is there a way to either get the Vlookup to bring back 0 values rather than #N/A or for the 'total' column at the bottom to ignore the #N/A's?

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try:
Code:
=IF(ISERROR(VLOOKUP(A1,$B$1:$D$4,2,0),0,VLOOKUP(A1,$B$1:$D$4,2,0))
 
Upvote 0
try
Code:
=IF(ISNA(vlookup(your vlookup formula),0,vlookup(your vlookup formula))
 
Upvote 0
Or in your total cell, try:
Code:
=SUMIF(B1:B10,"<>#N/A")
 
Upvote 0
I am trying to do a Vlookup to bring back sales information however some products have got no sales data so the Vlookup is bringing back an #N/A result which means that the total coloumns at the bottom don't calculate.

Is there a way to either get the Vlookup to bring back 0 values rather than #N/A or for the 'total' column at the bottom to ignore the #N/A's?

Thanks

Try =IF((VLOOKUP("Your Lookup Value","Your Table Array",Your Column Index","FALSE")="#N/A",0,VLOOKUP("Your Lookup Value","Your Table Array",Your Column Index","FALSE))
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,844
Members
452,948
Latest member
UsmanAli786

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