+ Reply to Thread
Results 1 to 2 of 2

Combining and selecting text based on critieria

  1. #1
    Registered User
    Join Date
    05-06-2021
    Location
    Eastern North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    17

    Combining and selecting text based on critieria

    Good afternoon,

    I am trying to write a formula that will look at the text data on another worksheet and combine them into a single cell on a separate line and if the entry has more than one it counts and provides a total. I also need to ensure that any blank cells are omitted. Here is the Data I am working with. Each of these lists can contain up to 10 entries of data but I don't want it to add blank lines when the cells are empty.

    Solution
    4CV CICU
    2N MICU
    3N NSICU
    CSO
    CSO
    4CV CICU

    On another worksheet - I need the data to display like this:

    4CV CICU x2
    2N MICU
    3N NSICU
    CSO x2

    Not sure if it is possible to get the count next to the entry if multiples are in the list.

    Appreciate all the help and advice

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Combining and selecting text based on critieria

    given your version (XL2013) and, assuming your source values are never more than 10 entries then you could use something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where your source values are located in Sheet1!A1:A10; this would generate your desired output (with cell alignment set to wrap text, obviously)

    with O365 version you get the benefit of TEXTJOIN etc but, unfortunately, these functions are not backwards compatible.

    you could also consider using a User Defined Function (UDF -- VBA function); a UDF would be a no-brainer if you had bigger datasets to worry about.
    Last edited by XLent; 05-07-2021 at 04:02 AM.

+ 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. Formula with several critieria regarding some text
    By Maximus620 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-06-2015, 08:27 PM
  2. [SOLVED] sum certain cells based on critieria
    By westchr5 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-19-2015, 09:15 AM
  3. Returning value in row based on Critieria
    By lkoll in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2013, 03:43 AM
  4. Macro to populate a table based on a selection critieria
    By jay170878 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2012, 09:56 AM
  5. [SOLVED] Sum of data based on two critieria
    By JohnDowds in forum Excel General
    Replies: 5
    Last Post: 06-07-2012, 03:23 AM
  6. Choose a value based on 2 cell Critieria
    By raghuram_g in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-26-2011, 12:12 PM
  7. protect cell based on another cells critieria?
    By djarcadian in forum Excel General
    Replies: 7
    Last Post: 03-07-2009, 02:06 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