Excel VBA - Search column for text in a String, Copy text into adjacent cells down -


i'm attempting simplify excel sheet work on weekly basis, vba improving problem has stumped me. i'm trying create vba macro following:

1 - search column b text "associate", when found want copy entire cell contents adjacent column filling down data related..aghh???

essentially want 1 table rows have complete information, can pivot etc. please see screenshots of before , after.

before:
before after:
after

that small sample of data have 3 people, have 100 people , cant carry on doing manually driving me bonkers.

any advice or appreciated, have no idea start problem.

thanks

untested:

dim c range,  each c in range(range("b1"),cells(rows.count,2).end(xlup))     if c.value "associate:*"          = c.value     else          if c.value<>"" c.offset(0,-1).value=a     end if next c 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -