Return Specific Value in VLookup if no exact match

Robert Edens

New Member
Joined
Mar 10, 2011
Messages
11
When using VLookup and exact match, if I do not find an exact match in the table, I would like the cell with VLookup to resolve with a predetermined value.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try like this

=IF(ISNA(your formula),your predetermined value,your formula)
 
Upvote 0
Thank you, but that did not work. Here is my formula...
=VLOOKUP(Customer_Name,CustomerList,2,FALSE) and it works. But when I don't have a match in the lookup, I want it to Resolve to Street Address.

If I understood your suggestion I get the response that there are too many arguments. I tried two versions of your suggestion.

Number 1:
=IF(ISNA(VLOOKUP(Customer_Name,CustomerList,2,FALSE),Street Address,Customer_Name,CustomerList,2,FALSE)

Number 2:
=IF(ISNA(VLOOKUP(Customer_Name,CustomerList,2,FALSE),Street Address,(VLOOKUP(Customer_Name,CustomerList,2,FALSE)
 
Upvote 0
Try like this. If Street Address is a named range it cannot have a space it must be Street_Address (as I have used) or StreetAddress

=IF(ISNA(VLOOKUP(Customer_Name,CustomerList,2,FALSE)),Street_Address,VLOOKUP(Customer_Name,CustomerList,2,FALSE))
 
Upvote 0
Street Address is not a "Named Range", it is the value I wish to have the formula resolve too if their is not an exact match.:)
 
Upvote 0
Thank you, but that did not work. Here is my formula...
=VLOOKUP(Customer_Name,CustomerList,2,FALSE) and it works. But when I don't have a match in the lookup, I want it to Resolve to Street Address.

If I understood your suggestion I get the response that there are too many arguments. I tried two versions of your suggestion.

Number 1:
=IF(ISNA(VLOOKUP(Customer_Name,CustomerList,2,FALSE),Street Address,Customer_Name,CustomerList,2,FALSE)

Number 2:
=IF(ISNA(VLOOKUP(Customer_Name,CustomerList,2,FALSE),Street Address,(VLOOKUP(Customer_Name,CustomerList,2,FALSE)
If you're using Excel 2007 or later then you can use the IFERROR function.

=IFERROR(VLOOKUP(Customer_Name,CustomerList,2,0),predetermined value)
 
Upvote 0
Street Address is not a "Named Range", it is the value I wish to have the formula resolve too if their is not an exact match.:)

Then try

=IF(ISNA(VLOOKUP(Customer_Name,CustomerList,2,FALSE)),"Street Address",VLOOKUP(Customer_Name,CustomerList,2,FALSE))
 
Upvote 0
The IFERROR formula returns the correct answer if an exact match is found, but it does not return the predetermined value if there is no match. It returns #NAME?
:)
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

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