Link to home
Start Free TrialLog in
Avatar of karunamoorthy
karunamoorthyFlag for India

asked on

excel macro to fill empty adjacent cells (SAP BOM report) with some condition

I have worksheet exported from SAP BOM. The wrok sheet contains first assembly and followed by childs and again assembly followed by childs and so on.

Now I have to fill the assembly items on the adjacent cells sothat I get assembly and child on one row.
example

before update
COL A__COL B
empty___assy1
v1______child11
v2______child12
v3______child13
empty___assy2
v4______child21
empty___assy3
v5______child31
v6______child32

Now after updation, the result shold be
COL A__COL B
empty___assy1
assy1______child11
assy1______child12
assy3______child13
empty___assy2
assy2______child21
empty___assy3
assy3______child31
assy3______child32


I need a macro to fill the assy values against the respective childs




ASKER CERTIFIED SOLUTION
Avatar of AgeOfEmpires
AgeOfEmpires
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of karunamoorthy

ASKER

Thank you for the immediate solution. I will try this and give you a feedback.
Thank you very much!
Excellent!  Glad it was what you were looking for.