+ Reply to Thread
Results 1 to 2 of 2

Merging Text in Cells Based on Vertical and Horizontal Match

  1. #1
    Registered User
    Join Date
    07-17-2023
    Location
    London
    MS-Off Ver
    MS 365 for Mac V 16.75
    Posts
    1

    Merging Text in Cells Based on Vertical and Horizontal Match

    Hi, I am trying to create a formula that will merge text from multiple cells, depending on certain criteria being met, and for new carriage returns to be entered between each merged text (using CONCATENATE). Here is what I mean:

    Here is the original table of data:

    Excel1.png

    The table shows three rows of data entries (Blurb, Text, and Copy) and each row of data has a series of checks against numbered criteria listed in row 5. So, for example, Blurb has checks for criteria 1, 3, and 5, Text has checks for criteria 2, 4 and 7, and Copy has checks for 2, 6, and 7.

    This means that both Text and Copy have checks under criteria 2 and 7. That means that the 'Text' and 'Copy' values, along with their corresponding values under the Type column must be merged and appear in an output/destination cell (similar to what is seen in cell K19). The text from each row then need to appear on separate lines in the same cell (as if carriage returns have been entered - like using the CONCATENATE function.


    In other words, the formula needs to check the rows for an 'X' that has been added into the relevant criteria columns horizontally...

    Excel2.png

    It then needs to look down the column and find any other matches, before merging/showing the result in a destination cell.

    Excel3.png

    I hope I have explained that correctly :-)

    Thanks for your help.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Merging Text in Cells Based on Vertical and Horizontal Match

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] INDEX/MATCH based on 4 criteria, 2 vertical, 2 horizontal
    By beenbee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-02-2021, 04:55 PM
  2. Replies: 16
    Last Post: 06-01-2017, 06:01 PM
  3. Moving text from vertical to horizontal and then merging
    By butters149 in forum Excel General
    Replies: 4
    Last Post: 01-25-2016, 12:53 PM
  4. [SOLVED] Counting horizontal and vertical cells based on two conditions
    By ChrisP80 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2015, 04:01 PM
  5. Counting horizontal and vertical cells based on two conditions
    By ChrisP80 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2015, 10:10 AM
  6. Sum based on horizontal and vertical match
    By zeez36 in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 04-04-2013, 05:43 AM
  7. [SOLVED] Sum based on horizontal and vertical match
    By Prcntrygrl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2013, 01:41 PM

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