+ Reply to Thread
Results 1 to 4 of 4

Macro to merge columns A,B,C,D,E into 1 column

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    deer park, ny
    MS-Off Ver
    Excel 2007
    Posts
    4

    Arrow Macro to merge columns A,B,C,D,E into 1 column

    I need to make 2 lists as new sheets: a 'P' and a 'M' list, categorized by P or M in column 'I'. Pretty much I need to macro to go from this:

    A B C D E DESCRIPTION QTY P/M SHRINK
    G03A8 MAIN 1 M 0%
    G03S2 LS 1 M 0%
    G03S1 BASKET 1 M
    G03C078 BASKET PD 1 P
    G03C079 BASKET MD 1 M
    (Table 1)

    to:


    M LIST DESCRIPTION QTY P/M SHRINK
    G03A8 MAIN 1 M 5%
    G03S2 LS 1 M 10%
    G03S1 BASKET 1 M 15%
    G03C079 BASKET MD 1 M 25%
    (Table 2)
    and


    P LIST DESCRIPTION QTY P/M SHRINK
    G03C078 BASKET PD 1 P 20%
    (Table 3)


    So Table 1 will be on Sheet 1, and I'd like Sheet 2 to have list 'M', and Sheet 3 to be have list 'P'

  2. #2
    Registered User
    Join Date
    08-10-2011
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Macro to merge columns A,B,C,D,E into 1 column

    Do you absolutely need to use VB? This is quite a simple task that Excel Formulas can handle.

    Please Login or Register  to view this content.
    When helped,use the icon right of the post #.

  3. #3
    Registered User
    Join Date
    08-15-2011
    Location
    deer park, ny
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro to merge columns A,B,C,D,E into 1 column

    No thats not what I want. I want them lined up in the same rows, but all in one column because then i want to consolidate like numbers, and then split the data into two tables: P and M

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro to merge columns A,B,C,D,E into 1 column

    hi,weeman297, can you post sample workbook showing your original data and result you need to obtain?

+ 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