Hi All,
Please help me to get the desired result in the attached spreadsheet.
Thanks in advance
Madan
Hi Try this macro out
Sub RearrangeData() Dim MyRange As Range, Cell As Range Set MyRange = Range("D4:D179") Range("D4").Delete shift:=xlUp Application.ScreenUpdating = False For Each Cell In MyRange If Cell = vbNullString Then Range(Cell.Offset(0, -1).Address & ":" & _ Cell.Address).Delete shift:=xlUp End If Next Cell Application.ScreenUpdating = False End Sub
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, «Born in USSR»
Vusal M Dadashev
Baku, Azerbaijan
Thanks.
But the macro doesn't seem to work properly.
Is it possible to rearrange the data without using macros?
Madan
Madan, please take the trouble to explain your issue in the text on the post, not only in the attachment. This will help our members decide whether they want to download the attachment or not.
thanks.
Hi Teylyn,
I have the existing data wherein ProductA(in cell B3) has two subproducts, namely ProductAA(in cell C4) and ProductAB(in cell C8).
Again Product AA has multiple products(number of products will change everytime) which is specified in cells D5 to D7.
I would like to rearrange my data in such a way that there is no blank cell next to ProductA(in Cell C3).
The same holds good for ProductAA, ProductAB.
I am not well versed with macros, hence, it would be better if i can use some excel functions to achieve this.
Hope this clarifes my issue.
Regards
Madan
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks