Extract and tag a substring from a string with the value 0 or 1 depending of Criterias

jeromemachine

New Member
Joined
May 20, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello experts,
I'm not expert and I'm trying to explain my issue.

So I have the following tab Sheet1 : From A1 to A50
A1:carrot33rfaomjjopw B1 1
A2:ca33rbreadjjopw B2 0
A3:33rangeljjopw B3 0
A4:caraomjjotirepw B4 0
A5:3wikipediaomjcarrotjopw B5 1
A6:33rfanewsomjjopw B6 1
A7:green B7 1
A8:rea B8 0 The "l" is missing
-
-
A50:jfkwjofkwrealmd

Sheet2
I have a second tab

A1real B1 match (contain means that for each cell from A1 to A50, I will find if in the cell contains "real" in the string) not perfect match required like in cell A8)
A2 green B2 match (match means that for each cell from A1 to A50, I will find if the cell matches the exact word carrot such as in Cell A7 but not in cell A5)
A3 new B3 contain
A4 carrot B4 contain



Then in Sheet 1 for each string from A1 to A50, I would like to add from B1 to B50 a value 1 or 0 if the condition from the tab in sheet2 is true (enter the value 1) or false (enter the value 0)

I m not sure if I'm clear, Please let me know it s been hours that I try to find a solution by using vlookupm countif, ISnumber(search etc...

Thank you so much for your help

Jerome.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,596
Messages
6,120,438
Members
448,966
Latest member
DannyC96

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