+ Reply to Thread
Results 1 to 2 of 2

Transposing and merging cells if certain criteria true

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    25

    Transposing and merging cells if certain criteria true

    Attached is an example of the spreadsheet I am working with. The "address and vendor id example" tab shows what I need the macro to do.

    Essentially I am looking for the macro to do the following:

    1) If there is only one instance of the vendor name, leave the row as-is.
    lines 4,5 and 6 from the example tab are examples of one instance of a supplier name, need to leave these rows as-is
    lines 3, 4 and 12, 13 are 2 instances of the same supplier name, the macro will have to modify these lines

    2) If there are 2 instances of the same supplier name with the same mailing address 1, I would like to combine those 2 lines into one. The macro will need to transpose the ID's horizontally and then merge into one cell with a comma and 2 spaces separating them.
    lines 3, 4 and 26, 27 from the "example" tab are a good example of this

    Also if there are 2 instances of the same supplier name and the mailing address 1 is filled in for one row but now the following row, I need to copy the address from above.

    I know this is somewhat unclear but hopefully the examples i did in the "address and vendor id example" tab will help clarify.

    I haven't come across a situation yet that this website hasn't solved. Thanks for all your help!

    Jeff
    Attached Files Attached Files
    Last edited by Jeff M; 04-28-2009 at 11:13 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Transposing and merging cells if certain criteria true

    Hi

    see if this is a start.

    Please Login or Register  to view this content.
    rylo

+ 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