+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Sorting formula

  1. #1
    Registered User
    Join Date
    06-09-2010
    Location
    Mass
    MS-Off Ver
    Excel 2007
    Posts
    12

    Sorting formula

    I have what i think is a simple question, hope someone can help me out.

    I have several columns of data; "A" is called PID and has a large range of numbers wth a few number smissing here and there, column "C" Contains another selection of numbers though not as many as column "A", Column "D" contains text that ties into the numbers in column "C".

    I'd like to know how I can sort column "C" so that 1. It matches to the same value in column "A" and is blank if there is no match 2. The data in column "D" stays next to the value it started next to from column "c"

    Examples

    [A] [C] [D]
    1 2 red
    2 3 blue
    3 4 green
    4 7 orange
    5
    6
    7
    8
    9
    10

    becomes

    [A] [C] [D]
    1
    2 2 red
    3 3 blue
    4 4 green
    5
    6
    7 7 orange
    8
    9
    10

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Sorting formula help

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Registered User
    Join Date
    06-09-2010
    Location
    Mass
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Sorting formula help

    Here is a before and after, I made it a little more complex sicne this is easier to see with the attached xlsx
    Attached Files Attached Files

+ 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