Using a VBA macro, I want to make column FG in the first photo to automatically merge and fit the values of column FE, and column FH should also merge and be in accordance with column FE. This would be determined by the values of column FE and FG. It’s a bit hard to explain, so I put a second photo which explains my desired output (Never mind the highlighted cells). I cannot figure out an appropriate solution for this. Thanks in advance!

