Lookup formula that doesn't have a fixed array (partial match)

feni1388

Board Regular
Joined
Feb 19, 2018
Messages
133
Office Version
  1. 2021
Platform
  1. Windows
Hello everyone.
I have a list of complete address (including street number) on column A and another list from warehouse that only includes States and City on column F.
I need to check whether the complete address on column A is included on the list that I got from the warehouse.

I currently use this formula and it's OK if the list from the warehouse doesn't change.
However, the list can be shorter or can be longer and I need to include this formula into VBA code that I'm going to make and the problem with this formula is that
the search array has to be fixed.

=LOOKUP(2,1/(ISNUMBER(SEARCH(F2:F10,A2))),(G2:G10))

I tried using countif but it doesn't work either.
Can anyone give any suggestion?

Thank you.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You can make your range an Excel Table which will accommodate for adding/deleting rows. How that translates in VBA I do not know
 
Upvote 0
That might be a good idea.
Thank you. Let me think about it again.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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