excel - Searching occurrence of custom codes in data set -
i tying accomplish following in microsoft excel through vba. use help!
i have 2 sets of data: data dump & key containing codes (each of contains list of strings).
the objective search data dump & assign true/false & count value each code in our key in accordance whether code found in data dump or not & if found, how many times occurred, case may be.
we can code found in data dump when each of strings of particular code found in data dump.
providing sample eg. below clarify whole problem:
let's have key containing following codes each of comprises of multiple string values:
usa: ford, ferrari, chevrolet
india: maruti, modern, hero
korea: kia, hyundai, daewoo
japan: honda, yamaha, suzuka
germany: bmw, mercedes, audi
now, in given data dump, want count how many times each of usa, india, korea, japan, germany occur. each of usa's "occurrence", each of ford, ferrari, chevrolet need found once in dump. if these values found 4 times each, usa said occur 4 times in dump. if ford found 5 times, ferrari 3 times & chevrolet 2 times, usa have 2 occurrences.
similarly, each of japan's "occurrence", each of honda, yamaha & suzuka need found once.
likewise others.
Comments
Post a Comment