Sub ests() Dim i As Long Dim j, s As Long For i = 1 To Sheets(1).Range("a65356").End(xlUp).Row If Sheets(1).Cells(i, 1).Value = "" Then j = i + 1 i = i + 2 End If If Sheets(1).Cells(i, 1).Value <> "" Then
Sheets(2).Range("b65356").End(xlUp).Offset(1, 0).Value = Sheets(1).Cells(j, 1).Value End If Next i End Sub On Mon, May 16, 2011 at 1:48 PM, sagar aher <sagara...@gmail.com> wrote: > I have got following data in excel. I need to copy 1st number in given > row for e.g. 122532 should be copied against 100 for 4 times & similar > way 321654 should be get copied against 200 for 3 time like way. > ( Problem is that I'm not sure how many times 100 or 200 nos. comes ) > kindly suggest me macro to run the same for very large data > plz find file where input & result is shown..kindly suggest me macro > solution > > thanks... > > -- > Cheers > > Sagar Aher :) > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- *Regards* * * *Ashish Koul* *akoul*.*blogspot*.com <http://akoul.blogspot.com/> *akoul*.wordpress.com <http://akoul.wordpress.com/> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> P Before printing, think about the environment. -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel