+ Reply to Thread
Results 1 to 2 of 2

Conditionally combine/write contents from cells

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Charlotte, NC
    MS-Off Ver
    2013
    Posts
    1

    Conditionally combine/write contents from cells

    I am working with tens of thousands of lines, and what I need is a function that looks at column A for a certain value (e.g., shirt). For the multiple rows with "shirt" in column A, I need it to look for colors in column B (e.g., red, blue, yellow, green). Then, in like cell D1, I would have "shirt" and in E1 would be "red, blue, yellow, green".

    My trick is to get everything written into one cell, as well as to add commas/spaces between the entries. Using this scenario, I'll also have rows with "pants" and other clothing, so I will need a single summary cells for all the colors of each clothing item. I imagine this will be somewhat like a vlookup, but I just need to figure out it.

    Thank you!

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Conditionally combine/write contents from cells

    Will your data be sorted by item?
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

+ 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. [SOLVED] Combine Cell Contents to with a [return] or [fill with spaces] between each cells contents
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 11:24 PM
  2. Conditionally copy selected cells in rows depending on cell contents.
    By danando in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2011, 08:50 PM
  3. Combine 2 cells contents into 1
    By mike_m1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2010, 07:43 PM
  4. I am trying to combine contents from 2 cells into 1
    By Darius in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2006, 02:35 PM
  5. Combine the contents of two cells.
    By Cut/Paste Help!! in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-02-2005, 03:54 AM

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