Urgent help. Need vlookup forumla

formula1234

New Member
Joined
Jul 28, 2018
Messages
6
I have 2 files. FileA contains the item names. FileB contains a list of keywords. I need a formula that I can use on FileA on the second column that will scan all the keywords listed in FileB and put "1" if it matches and 0 if it doesn't match. I really need help on this. I need it for work and its due tomorrow. Thank you everyone!​
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Maybe something like this.
Excel Workbook
ABCDE
1File AKey WordMatchFileB
2K10K2
3K21K3
4K31K4
5K41K5
6K10K6
7K61K24
8K70K8
9K241K9
10K91K10
Sheet
 
Upvote 0
hi

Can you make the formula to match partial as well? lets say there is a keyword that is "K1 cool" and the file B has only "k1" I need it to be "1". Thanks!
 
Upvote 0
Hi,

It's not as strict here, but you really should consider reading the forum rules if you want help without hipcups.

How about this:


Book1
AB
1red hat1
2black hat1
3purple hat0
4pink hat1
Sheet17
Cell Formulas
RangeFormula
B1=--OR(ISNUMBER(LOOKUP(2,1/SEARCH(A1,Sheet18!A$1:A$5))),ISNUMBER(LOOKUP(2,1/SEARCH(Sheet18!A$1:A$5,A1))))



Book1
A
1red hat is cool
2black hat
3blue hat
4cool red hat
5pink
Sheet18


Change/adjust cell references/range as needed, change sheet names to match yours.
 
Upvote 0
thanks i really appreciate your help. But is there some sort of search limit that you put on the formula? because if I move the keyword "red hat is cool" down to row 100, it won't work.
 
Upvote 0
In B2 of FileA enter and copy down:

=ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH(" "&[FileB.xlsx]Sheet1!A$2:A$5&" "," "&A2&" ")))+0

where A2:A5 of Sheet1 in FileB houses the keywords of interest.
 
Upvote 0
As I said at the bottom of my post #5 , you Need to adjust the cell references/ranges to match your data set.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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