try this Option Base 1 Sub nemi() Dim s(5) As String Dim z As Long s(1) = "Very Good"
s(2) = "Good" s(3) = "Better" s(4) = "Bad" s(5) = "Very Bad" For i = 1 To 5 On Error Resume Next Sheets(1).ShowAllData z = Sheets(1).Range("f65356").End(xlUp).Row + 1 Sheets(1).Range("$A$3:$e$" & Sheets(1).Range("a3").End(xlDown).Row).AutoFilter Field:=5, Criteria1:=s(i) Sheets(1).Range("$A$4:$e$" & Sheets(1).Range("a3").End(xlDown).Row).SpecialCells(xlCellTypeVisible).Copy Sheets(1).Range("f" & z).Select ActiveSheet.Paste Next i End Sub On Mon, Jul 4, 2011 at 6:54 PM, ankur <ankurpande...@gmail.com> wrote: > hi Nemi Gandhi > use this formula in cell F4 of your table and than sort it by column F > shortest to largest....you will table as per your need > > *=IF(E4="Very Good",1,IF(E4="Good",2,IF(E4="Better",3,IF(E4="Bad",4,5))))* > > Have A Nice Time & Enjoy Life > > Regards: > CMA Ankur Pandey > (Someone Different) > > I'm not the best but i'm not like the rest~~ > > > > > On Mon, Jul 4, 2011 at 5:04 PM, Nemi Gandhi <nemigan...@gmail.com> wrote: > > Formula needed please. > > > > -- > > Nemi Gandhi > > 98204 92963 > > > > -- > > > ---------------------------------------------------------------------------------- > > 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 > > > > -- > > ---------------------------------------------------------------------------------- > 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/> http://akoul.posterous.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