countIF with multiple wild cards

hemjeseti

New Member
Joined
Dec 15, 2011
Messages
23
hey guys - confused again - sorry....

i have managed to figure out (sort of) my "vlookup" problem i had the other day. now, i need to update it.

i want to search a column, for two things, for instance CJ and mirrors or JK and Bumpers

this is what i did for the other problem
=IF(COUNTIF(G2:G2,"*KJ*"),"98;","")

i looked for KJ and added an ID of 98; to the right of it. now, i was hoping to modify it so that it looks for KJ and mirrors or KJ and bumpers or KJ and floor mats so that i can assign it an id based on what i'm looking for. for instance, if it's a KJ mirror, it goes in the Lifestyles>Mirrors category which has an id of 406.

am i making sense here? i hope so!! :confused:
 
sorry if I don't understand. i'll have a go anyway.

try making a list of your wildcards somewhere like:

I
1 wildcard list
2 *KJ*
3 *mirror*

and then in cells adjacent to your rows {=IF(SUM(COUNTIF(G2,$I$2:$I$3))=2,TRUE)}

substitute TRUE with "406" or whatever you want next to each row that has KJ + mirror.
 
Upvote 0
this is a cap of the sheet i'm workin' with. once i get the data (the id's in place) i'll concatenate the columns and paste those into the actual working spread sheet. i'm hard coding the ID value's so i don't have columns in the sample data. fyi - there are over 500 categories i'm working with, so, it could get reaaaaaally complicated if we wanted it to. the other columns in the screencap are examples of other elements i'll search for later on. once i figure out how to do multiple wildcards.
sampleProdCap.jpg
 
Upvote 0
=IF(COUNTIF(G2:G2,"*KJ*"),"98;","") is my formula - i need another formula in the same cell that looks for say "mirror" and if it finds KJ and mirror, then assign it a number, like 98. is this that crazy hard? i'm sorta goin' insaneo here - please help .... plaaaz'haaaalp. (LeeLu in fifth element)
 
Upvote 0

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