formula to lookup a value in named range

plost33

Well-known Member
Joined
Oct 2, 2008
Messages
866
I am trying to have a formula check to see if a value is listed within a named range of "IndonesiaVendors".

Formula should return "YES" if value is in the named range and NO" if it is not. should be a 100% match.

hope someone can assist.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Is the check just to check the range or place Yes or No in additional cells in another column for each row being checked?

Can you give some idea what it is to check for?
 
Upvote 0
i am going to use this a part of a large if statement formula. the final product i need is for take the value in column b and multiply it by .1 if the value in coulmn A is within the named range "IndonesiaVendors.

Column A Column B Column C
Vendor Name Cost Formula


the named range is on a hidden sheet.
 
Upvote 0
This seems a bit cumbersome but it should work.

Code:
=IF(IFERROR(VLOOKUP("Value",IndonesiaVendors,1,FALSE),"NO")="NO","NO","YES")

Just replace "Value" with what you are looking for.
 
Upvote 0
I am trying to have a formula check to see if a value is listed within a named range of "IndonesiaVendors".

Formula should return "YES" if value is in the named range and NO" if it is not. should be a 100% match.

hope someone can assist.
Try this...

A1 = some value

=IF(COUNTIF(IndonesiaVendors,A1),"Yes","No")
 
Upvote 0
I am trying to have a formula check to see if a value is listed within a named range of "IndonesiaVendors".

Formula should return "YES" if value is in the named range and NO" if it is not. should be a 100% match.

hope someone can assist.

A tad faster to invoke...

=ISNUMBER(MATCH(Value,IndonesiaVendors,0))+0

where a result of 1 means a hit, 0 no-hit.
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
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