Extending a V-Lookup

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
306
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

Can I expand the following formula that if the value in A2 is not found within the "Data" tab that the word "Empty" is returned?

=(VLOOKUP(A2,Data!A1:C887,3,FALSE))
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
If the value is not found, it will return an #N/A error, which we can catch by wrapping the formula with IFERROR:

=IFERROR(VLOOKUP(A2,Data!A1:C887,3,FALSE),"Empty")
 
Upvote 0
That has not quite worked, let me put a different outcome, is this possible?

=(VLOOKUP(A2,Data!A1:C887,3,FALSE),"Empty")

Look for the value in A2 within the Data tab, if it's there return true otherwise return empty.
 
Upvote 0
If I understand correctly, you want to look up the value A2 in the Data tab. If the value is found, you want the formula to return "TRUE". If the value is not found, you want to return "Empty".

Is this accurate?
 
Upvote 0
So it's no longer a vlookup. You're just verifying the existance of the value.

Try

=IF(COUNTIF(Data!A1:C887,A2),TRUE,"")
 
Upvote 0

Forum statistics

Threads
1,216,182
Messages
6,129,357
Members
449,506
Latest member
nomvula

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