+ Reply to Thread
Results 1 to 2 of 2

How to combine similar cells, while merging data in other cells

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    1

    How to combine similar cells, while merging data in other cells

    Hi! I'm new here. Actually found another solution to something I was trying to figure out on here while I was browsing through forums posts to see if there was a solution for my task, which was a nice bonus! Anyway, here's what I'm trying to do: Let's say I have a spreadsheet, with 2 columns. In column A, I have a list of software installed on computers. Let's call these software titles Alpha, Beta, and Charlie. Column B is a list of IP addresses. Let's say 10.1.1.1 - 10.1.1.4. The goal of the spreadsheet is to show the software titles in column A only once (so only 3 rows), and to have column B as a list of the IP addresses that have that software installed.

    [removed the example I typed up since it didn't format correctly; please reference attachment]

    I've attached a sample of what I'm trying to do. Probably easier to look at the attachment. I've been looking at a bunch of YouTube videos and various tutorials online, but I cannot seem to figure out how to do this. I am not sure if the Consolidate option does this, but all the tutorials I found lead to Consolidate being used for mathematical functions, and I'm looking for more of a list approach.

    Thank you in-advance for any insight that can be provided.
    Attached Files Attached Files
    Last edited by Sut703; 05-27-2014 at 03:53 PM. Reason: Formatting was screwed up.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to combine similar cells, while merging data in other cells

    This is doable, but requires the use of VBA to accomplish in a single step.

    To use VBA, copy the code below, go to Excel, hit Alt+F11, go to Insert -> Module, and paste the code in the window that pops up. Close that window.

    Now you have a new function called ConcatIf.

    Its useage: ConcatIf(criteria range, criteria, return range, optional delimiter in quotes)

    So in B14: =ConcatIf($A$2:$A$10,A14,$B$2:$B$10,CHAR(10))

    Note, I used the delimiter Char(10) which is code for "the next line" which is what it'll input between cells it pulls together. To make sure it appears normal, you'll need to turn on Wrap Text for the cell.

    See attached for clarification

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. macro to Merging and combine cells
    By nvidiaev in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2014, 04:18 PM
  2. Merging documents with similar data
    By dgsell in forum Excel General
    Replies: 1
    Last Post: 02-05-2013, 05:09 PM
  3. Merging rows with similar data?
    By Baguette in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2013, 01:51 PM
  4. Combine multiple Cells without merging
    By rhudgins in forum Excel General
    Replies: 6
    Last Post: 01-05-2010, 07:10 PM
  5. Merging cells containing similar data
    By babarorhum in forum Excel General
    Replies: 1
    Last Post: 09-08-2008, 12:43 PM

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