+ Reply to Thread
Results 1 to 6 of 6

count and arrange cells have numeric values

  1. #1
    Registered User
    Join Date
    11-12-2005
    Posts
    55

    Exclamation count and arrange cells have numeric values

    heloo
    suppose i have 2 coloumns like this

    2 microsoft
    5 intel
    3 ge
    1 gm
    2 microsoft
    5 intel
    7 tnt
    12 att
    24 blue
    15 ntn

    how can i order them AScending in another column

  2. #2
    Tom Ogilvy
    Guest

    Re: count and arrange cells have numeric values

    copy them to another range, then sort the copy of the data on the column you
    wish. If you need code, turn on the macro recorder while you do it
    manually.

    --
    Regards,
    Tom Ogilvy

    "amrezzat" <[email protected]> wrote in
    message news:[email protected]...
    >
    > heloo
    > suppose i have 2 coloumns like this
    >
    > 2 microsoft
    > 5 intel
    > 3 ge
    > 1 gm
    > 2 microsoft
    > 5 intel
    > 7 tnt
    > 12 att
    > 24 blue
    > 15 ntn
    >
    > how can i order them AScending in another column
    >
    >
    > --
    > amrezzat
    > ------------------------------------------------------------------------
    > amrezzat's Profile:

    http://www.excelforum.com/member.php...o&userid=28766
    > View this thread: http://www.excelforum.com/showthread...hreadid=486875
    >




  3. #3
    Registered User
    Join Date
    11-12-2005
    Posts
    55

    Exclamation order cells based on its numerical values

    i want it automatically not manually
    by functions or macros

  4. #4
    Tom Ogilvy
    Guest

    Re: count and arrange cells have numeric values

    Sub doit()
    Range("M1").currentRegion.ClearContents
    Range("A1").Resize(10,2).Copy Destination:=Range("M1")
    Range("M1").currentRegion.Sort Key1:=Range("M1"), Order1:=xlAscending
    End Sub

    --
    Regards,
    Tom Ogilvy



    "amrezzat" <[email protected]> wrote in
    message news:[email protected]...
    >
    > i want it automatically not manually
    > by functions or macros
    >
    >
    > --
    > amrezzat
    > ------------------------------------------------------------------------
    > amrezzat's Profile:

    http://www.excelforum.com/member.php...o&userid=28766
    > View this thread: http://www.excelforum.com/showthread...hreadid=486875
    >




  5. #5
    Registered User
    Join Date
    11-12-2005
    Posts
    55

    Exclamation rearrange cells based on its numerical values without repeating

    thanks
    it works
    but i dont want to repeat the numbers
    i mean
    if i input
    1 microsoft
    2 intel
    1 microsoft
    the results will be
    1
    1
    2


    i dont want that
    i want only
    1
    2
    no repeating
    how can i do that?

  6. #6
    Registered User
    Join Date
    11-12-2005
    Posts
    55

    Exclamation rearrange cells based on its numerical values without repeating

    rearrange cells based on its numerical values without repeating

    --------------------------------------------------------------------------------

    thanks
    it works
    but i dont want to repeat the numbers
    i mean
    if i input
    1 microsoft
    2 intel
    1 microsoft
    the results will be
    1
    1
    2


    i dont want that
    i want only
    1
    2
    no repeating
    how can i do that?
    noting that the input my be so long may be 1000 rows
    but they are only 50 companies (from 1 to 50)
    so the results will be in a max 50 rows

    and i want that code to activate(rerun) each time i enter the sheet2

    how can i do that ??

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1