+ Reply to Thread
Results 1 to 1 of 1

Macro/VBA to merge simliar cells of one column, but not entire row of cells

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro/VBA to merge simliar cells of one column, but not entire row of cells

    I have a spreadsheet that gets data from another source, and the rows change, the columns do not (there are columns A:X). I need the Column B to merge if the text is the same in column B. The rows must be sorted by the area (a custom list OR array?). Here is an example:

    Raw Data:
    0100***AreaOrange
    0103***AreaOrange
    0105***AreaOrange
    0108***AreaPurple
    0121***AreaPurple
    0147***AreaPurple
    B124***AreaPink
    B127***AreaPink
    0136***AreaOrange

    should look like

    0100*****AreaOrange
    0103*****
    0105*****
    0136*****
    0108*****AreaPurple
    0121*****
    0147*****
    B124*****AreaPink
    B127*****

    I have pretty limited experience with VBA/Excel, and any help would greatly be appreciated...I am thinking possibly using an Array of the Areas, as there won't be any new areas any time soon, as these are physical places. They are not to be sorted alphabetically, but rather by the area itself. Some days not all areas will be used (therefore not on the data list, but still needs to be on the worksheet) and those should say the word "Out" instead of being blank. If attaching the data to the thread helps, let me know. This is what I am thinking:
    so perhaps a nested IF
    Array of Areas
    if area = areaorange, sort row
    if area = areapurple, sort row

    if area = area in same column, delete row underneath

    something like that? please help! thank you!
    Last edited by jassybunny; 06-27-2012 at 04:14 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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