Excel - Backfilling data into columns checking against a list of valid values

turbin95

New Member
Joined
May 17, 2018
Messages
1
Hi, new here. I am currently working on a excel project.

vDwZqRB.jpg
2tDsYs7

2tDsYs7.png

I have a list of valid values for each column in Style 1, 2 3 4.
For example Style 1: Red Green Yellow
Style 2: High Low Up Down
Style 3: Dog Mouse


For Instance, I have a few columns: Description, Description_2 ... that contains many words. What I would like to do is to check every word in these Description and then compare with all of the valid values in the Styles. If the word matches any of the valid value, then it will put the value in the row.
EXAMPLE: Dog is a valid value in Style 3. So cell E2 will have Dog inside.
Green, yellow is valid value in Style 1. Cell B2 will have Yellow, Green

So it should compare all of the description, description_2 ... and put in the appropriate words in the style columns if it matches the valid values.

I have many thousand rows of data, and it should put all the words accordingly in each row and column.

Wondering if I can do this in VBA as I am not very good in VBA.

Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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