Thread
:
place a blank row above certain cells
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
Posts: 10,124
place a blank row above certain cells
something like
sub insertrowsif()
mc="a"
for i=cells(rows.count,mc).end(xlup).row to 2 step -1
if cells(i-1,mc)<cells(i,mc) then rows(i).insert
next i
end sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"aledger" wrote in message
...
I would like to add a row above certain cells that repeat themself. For
example, Column T list several company names like this.
Arby's
Arby's
Arby's
Burger King
Burger King
Burger King
My list is very long and I would like to create a formula that would
automatically place a blank row between company names. Any help is greatly
appreciated. Thanks.
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett