VLOOKUP Question

Cuzzaa

Board Regular
Joined
Apr 30, 2019
Messages
86
Hi everyone

I am using the code below to do a vlookup on a product code entered on sheet 'Dashboard', and then matching this product code on a separate sheet and pulling the matching cost through on 'Equipment Cost Lookup'.

The code I am using below works fine, but what I am trying to achieve is to update the code to include an if statement so that if it cannot match the product code in cell G46 to a product code in the table being looked up in 'Equipment Cost Lookup'!C7:E100' then I want to show text 'NOT FOUND' in cell J46 rather than it just staying blank as it currently is if it cannot match the product code in the VLOOKUP.

Code:
=IFERROR(VLOOKUP(G46,'Equipment Cost Lookup'!C7:E100,3,FALSE),0)

Is anyone able to help please? I hope this is a simple amendment but I cannot get my head around what code I need to add here.

Thank you in advance.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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