Re: Sorting two columns of data

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Max..........

If you're into VBA, you can record a small macro to cut the second column
and paste it to the bottom of the first column, then select it and sort,
ascending, then call the nifty macro that Chip Pearson has on his site
www.cpearson.com called "Public Sub DeleteDuplicateRows()"..........I just
tried it on your sample data and it works really good........no extra
columns or formulas needed.........

That way you could import your data, then select column A and then just run
the macro(s)......that's pretty automatic......

Vaya con Dios,
Chuck, CABGx3



"Max" <Max@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A989916F-E438-4F04-BBA8-6DBA69422E7D@xxxxxxxxxxxxxxxx
> Hello Chuck,
> I have downloaded the Utilities pack you suggested. Thank you.
> Would I be able to automate this process using these utilities?
> My intent was to be able to import data from a database and have the sort
> function automatic. Not having to do any manual tasks.
>
> Thank you for your help and advise.
>
> "CLR" wrote:
>
> > Hi Max..........
> >
> > There are various ways to do what you want, but personally I prefer to
just
> > cut and paste the second column onto the bottom ot the first column and
then
> > use "ASAP Utilities" to delete all the duplicates in one fell-swoop.
This
> > is just one of the features of the ASAP Utilities add-in which may be
> > obtained free at www.ASAP-utilities.com
> >
> > Vaya con Dios,
> > Chuck, CABGx3
> >
> >
> >
> >
> > "Max" <Max@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:0F1406E8-3EA6-4751-BA38-7AD0E8E26D73@xxxxxxxxxxxxxxxx
> > > Hi,
> > > I have two columns of numbers, that I need to sort into one column.
> > > They are not sequential and some of the same numbers appear in each
> > column.
> > > In the resulting column I need all the numbers listed in ascending
order
> > > without duplication. The first column will range from 1 to 120 but not
> > with
> > > all the numbers in the list from 1 to 120. (some numbers will be
missing).
> > > The second column may have duplications of the first column, but with
some
> > > unique numbers. eg (short list)
> > >
> > > 1 1
> > > 5 5
> > > 13 16
> > > 16 19
> > > 19 34
> > > 21 37
> > > 24 49
> > > 29 50
> > > 33 51
> > > 36 54
> > > 37 60
> > > 39 72
> > > 40 85
> > > 42 102
> > > 50
> > > 51
> > > 54
> > > 60
> > > 61
> > > 65
> > > 66
> > > 69
> > > 70
> > > How can I sort these using functions.
> >
> >
> >


.



Relevant Pages

  • GridView and multiple column sorting: is this a bug?
    ... I have a GridView control that I want to sort on multiple columns when I ... name in the first column and display id in the second column. ... on the first column, I want the GridView to sort on LastName and FirstName. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mailmerge into a catalog
    ... And put the one row table at the top of the first column. ... Word MVP web site http://word.mvps.org ... fills top to bottom then fills the second column top to bottom. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Automatic sorting
    ... Then execute that macro when you want to. ... the same name in the first column, but the second column will never ... Right now, i have to sort the item number column, ...
    (microsoft.public.excel.programming)
  • Re: Sort listbox content
    ... In the query, sort the first column Ascending. ... Sort the second column ...
    (microsoft.public.access.modulesdaovba)
  • Re: When I try to sort in Excel only part of the table sorts
    ... That works if I am sorting date and the dates are the first column. ... the date is the second column when I select range and go back ... "Dave Peterson" wrote: ... I have a spread sheet with 10 columns when I try to sort on date - the second ...
    (microsoft.public.excel.misc)