Yes Please. It is working perfectly. Regards Eugene
On Sat, Jan 26, 2013 at 11:04 PM, ashish koul <[email protected]> wrote: > Hi > > Its working at my place . Please find the working file attached > > > Regards > Ashish Koul > > > > On Sat, Jan 26, 2013 at 10:58 PM, Eugene Bernard <[email protected] > > wrote: > >> Mr Koul, >> >> Tested the macro, the result is not exactly matching requirement >> requested by Chris. >> >> Regards >> Eugene >> >> >> On Sat, Jan 26, 2013 at 9:50 PM, ashish koul <[email protected]>wrote: >> >>> Try this >>> >>> Sub sample() >>> Dim i As Long, j As Long >>> >>> Range("a1:b" & Range("a65356").End(xlDown).Row).Sort key1:=Range("a:a"), >>> order1:=xlAscending, Header:=xln0 >>> >>> For i = 1 To Range("a65356").End(xlUp).Row >>> j = Application.WorksheetFunction.CountIf(Range("a:a"), Range("a" & >>> i).Value) >>> Range("a1").End(xlToRight).Offset(0, 1).Value = Range("a" & i).Value >>> Range("b" & i & ":b" & i + j - 1).Copy >>> Destination:=Range("a1").End(xlToRight).Offset(1, 0) >>> i = i + j - 1 >>> Next >>> >>> End Sub >>> >>> >>> >>> >>> On Fri, Jan 25, 2013 at 12:56 AM, Chris <[email protected]> wrote: >>> >>>> Hey there - >>>> >>>> a very simple problem that I'm trying to solve without any code if at >>>> all possible. It's so simple that I don't even need to post a workbook: >>>> >>>> Imagine you have two columns worth of data whereas the 2nd column is >>>> 100% unique but items in column 1 will appear multiple times such as in >>>> this list: >>>> >>>> Column1 Column2 >>>> Arkansas Alpha >>>> Arkansas Beta >>>> Arkansas Gamma >>>> Florida Echo >>>> Florida Foxtrott >>>> Florida Pi >>>> Georgia Ben >>>> Georgia Kyle >>>> >>>> The task is to take the data above (copy & paste or whatever function >>>> Excel 2010 offers) to resort the list by Column1 items vertically such as: >>>> >>>> Arkansas Florida Georgia >>>> Alpha Echo Ben >>>> Beta Foxtrott Kyle >>>> Gamma Pi >>>> >>>> Pasting using traspose obviously doesn't work here. I was thinking >>>> pivots maybe? Is there anything in Excel that does this kinda of >>>> sorting/changing quickly? >>>> >>>> Thanks, >>>> Chris >>>> >>>> -- >>>> Join official Facebook page of this forum @ >>>> https://www.facebook.com/discussexcel >>>> >>>> FORUM RULES >>>> >>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please >>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >>>> will not get quick attention or may not be answered. >>>> 2) Don't post a question in the thread of another member. >>>> 3) Don't post questions regarding breaking or bypassing any security >>>> measure. >>>> 4) Acknowledge the responses you receive, good or bad. >>>> 5) Jobs posting is not allowed. >>>> 6) Sharing copyrighted material and their links is not allowed. >>>> >>>> NOTE : Don't ever post confidential data in a workbook. Forum owners >>>> and members are not responsible for any loss. >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "MS EXCEL AND VBA MACROS" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> Visit this group at http://groups.google.com/group/excel-macros?hl=en. >>>> >>>> >>>> >>> >>> >>> >>> -- >>> *Regards* >>> * * >>> *Ashish Koul* >>> >>> >>> *Visit* >>> *My Excel Blog <http://www.excelvbamacros.com/>* >>> Like Us on >>> Facebook<http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297> >>> Join Us on Facebook <http://www.facebook.com/groups/163491717053198/> >>> >>> >>> P Before printing, think about the environment. >>> >>> >>> >>> -- >>> Join official Facebook page of this forum @ >>> https://www.facebook.com/discussexcel >>> >>> FORUM RULES >>> >>> 1) Use concise, accurate thread titles. Poor thread titles, like Please >>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >>> will not get quick attention or may not be answered. >>> 2) Don't post a question in the thread of another member. >>> 3) Don't post questions regarding breaking or bypassing any security >>> measure. >>> 4) Acknowledge the responses you receive, good or bad. >>> 5) Jobs posting is not allowed. >>> 6) Sharing copyrighted material and their links is not allowed. >>> >>> NOTE : Don't ever post confidential data in a workbook. Forum owners and >>> members are not responsible for any loss. >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "MS EXCEL AND VBA MACROS" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> Visit this group at http://groups.google.com/group/excel-macros?hl=en. >>> >>> >>> >> >> -- >> Join official Facebook page of this forum @ >> https://www.facebook.com/discussexcel >> >> FORUM RULES >> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >> will not get quick attention or may not be answered. >> 2) Don't post a question in the thread of another member. >> 3) Don't post questions regarding breaking or bypassing any security >> measure. >> 4) Acknowledge the responses you receive, good or bad. >> 5) Jobs posting is not allowed. >> 6) Sharing copyrighted material and their links is not allowed. >> >> NOTE : Don't ever post confidential data in a workbook. Forum owners and >> members are not responsible for any loss. >> --- >> You received this message because you are subscribed to the Google Groups >> "MS EXCEL AND VBA MACROS" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> Visit this group at http://groups.google.com/group/excel-macros?hl=en. >> >> >> > > > > -- > *Regards* > * * > *Ashish Koul* > > > *Visit* > *My Excel Blog <http://www.excelvbamacros.com/>* > Like Us on > Facebook<http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297> > Join Us on Facebook <http://www.facebook.com/groups/163491717053198/> > > > P Before printing, think about the environment. > > > > -- > Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > 2) Don't post a question in the thread of another member. > 3) Don't post questions regarding breaking or bypassing any security > measure. > 4) Acknowledge the responses you receive, good or bad. > 5) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/excel-macros?hl=en. > > > -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/excel-macros?hl=en.
