+ Reply to Thread
Results 1 to 2 of 2

Sort based on values of cells to the left

  1. #1
    Registered User
    Join Date
    10-17-2008
    Location
    Norcross, GA
    MS-Off Ver
    MS Excel 2007
    Posts
    35

    Sort based on values of cells to the left

    Hello

    I have a sheet that goes like this:

    A1:2 B1:Apple
    A2:5 B2:Pear
    A3:4 B3:Orange
    A4:1 B4:Banana
    A5:3 B5:Grapes

    and I would like to have a macro that sorts column B according to values in column A so after it sorts, it will turn out like this:

    A1:1 B1:Banana
    A2:2 B2:Apple
    A3:3 B3:Grapes
    A4:4 B4:Orange
    A5:5 B5:Pear

    Is this possible? Please help! Any comments on other ways to do this will be great! Thanks in advance.
    Last edited by okriskao; 04-13-2009 at 09:29 AM. Reason: Got it! Thanks!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Sort based on values of cells to the left

    Use the macro recorder to start off with.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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