In this case, it is faster for a beginner to operate manually
than thinking & creating a VBA code.
So the magic resides on Excel side, not on VBA aside …
For any common need by code, ask yourself
« What can be done on Excel side among its features ? »
As often inner features are more efficient than a VBA cells looping code,
even sometimes a VBA code is useless (for example with a pivot) …