excel - multi value cell separated by comma to array -


i'm new vba , i'm stuck @ point have split , copy multi-value cell of entire column(c) separated comma array. , arrange corresponding column suppose:

  c1 = oranges,grapes,apple ; c2 = apple,mango ; c786 = watermelon,oranges,plum 

it should go respective column, values of mango should go column e , apple f, watermelon g , rest next column want achieve

initially -::-                b                 e     f           g       h           j     k   seller   fruitsell            mango  apple  watermelon grapes orange  plum banana  seller1  oranges,grapes,apple              seller2  mango              seller3  plum,banana    

 output :-:                         b                 e     f           g       h           j     k   seller   fruitsell            mango  apple  watermelon grapes orange  plum banana  seller1  oranges,grapes,apple         apple             grapes orange      seller2  mango            mango  seller3  plum,banana                                                   plum banana                                       

thanks in advance

this solution formula: solution

with vba similar less optimal, have loop through rows , columns , insert corresponding fruit if exists in column b.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -