vba - Excel Macro to combine cells of data when data matches in another column -


the best way can explain problem showing few screenshots.

i need turn data this:

[before data

into displays this:

after data after data

there multiple part numbers in file, , need macro take data matching part number , transform data displayed in second image. part numbers grouped data together, wouldn't need run loop through top every single time, adding entries each new piece of data. needs done years well, because way data presented, in range of years, , need entry each year in range.

additional information:

i using data prep category data bigcommerce site, working year/make/model plugin on site, create vehicle lookup system. in order user vehicle accurately categories need listed way in second picture, needs result of macro.

i thank takes time this, cut down time spend doing manually huge amount.

you can formula (without actual vba):

  1. in cell f2 write: ="ymm/"&c2&"/"&d2&"/"&e2&";"
  2. in cell f3 write: =f2&"ymm/"&c3&"/"&d3&"/"&e3&";"
  3. drag down formula in f3 until last row.
  4. the last row contain entire string of vehicles.

enter image description here

i noticed may have duplicate values. can use built in remove duplicates feature remove before using above technique.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -