Find if have "gift set" in description, then put in the category "gift sets"

adam akhirat

New Member
Joined
Aug 27, 2013
Messages
5
Hye...i newbie here and really need helps from all the Guru here...
i want to FIND in the description if have words GIFT SET in any place, then if have, then there go to category GIFT SETS..if no words gift set, then let it empty.
i do this manually but i have 6000++ data and please,help me =D
thank you

ITEMBRAND TITLECategory
1Marina De Bourbon Eau De Parfum Spray 3.4 oz
2Taylor Swift Gift Set -- 3.4 oz Eau De Parfum Spray + 3.4 oz Body Lotion + 3.4 oz Shower GelGift Sets
3Lancome Eau De Toilette Spray 2.5 oz
4Justin Beiber Gift Set -- 3.4 oz Eau De Parfum Spray + 3.4 oz Body Lotion + 3.4 oz Shower GelGift Sets
5Justin Beiber Eau De Parfum Spray 3.4 oz
6Narciso Rodriguez Eau De Toilette Spray 4.2 oz

<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the board..

Try
=IF(ISNUMBER(SEARCH("Gift Set",A1)),"Gift Sets","")


However, if you are going to expand this to many different categories, I would look for a alternate approach like a lookup.
 
Upvote 0
yes it working man i love you man ! hahha
oh yeah i want to do it in many categories, like skincare, makeup, tester, samples, body lotions, after shave, after shave balm, body cream, body powder, deodorant, shower gel, soap,...

help me man thanks a lot and really appreciates it =D

Welcome to the board..

Try
=IF(ISNUMBER(SEARCH("Gift Set",A1)),"Gift Sets","")


However, if you are going to expand this to many different categories, I would look for a alternate approach like a lookup.
 
Upvote 0
Create a lookup Table in say D2:E10
Column D = the key words skincare makeup tester etc...
Column E = the corresponding values you want returned based on the keywords.

Then use

=LOOKUP(2^15,SEARCH($D$2:$D$10,A1),$E$2:E$E10)
A1 is the cell with the longer string.

There cannot be any blanks in D2:D10
 
Upvote 0
ok i will try again but if 1 products belong to more than 1 category,
can i combine it and let it like this example..
Gift Sets|Deodorant|Soap

thankz man
 
Upvote 0
That's a whole other story, and definately not easy.
Would most likely require VBA Code.
 
Upvote 0
2^15 = 2 to the power of 15 = 32768
32768 just happens to be 1 larger then the maximum number of characters allowed in a cell (32767)
Thus ensuring the lookup value is larger than any possible numeric result of the Search function
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

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