How do I split a single cell into multiple rows?

Anonymous
2023-10-05T21:15:47+00:00

I am trying to create a project database that is able to filter based on the names of people who participated in the project. A single project is completed by more than one person but I am not able to filter to see the entire projects a single person has worked on. That is why I am considering splitting the cells categorized under the 'staff name' column into multiple rows.

Microsoft 365 and Office | Excel | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Bill Yuen 700 Reputation points
    2023-10-05T21:53:33+00:00

    Hi Ngozi_324,

    Thanks for your question. I have a solution that can hopefully solve the problem you have without requiring the splitting of cells and that you can maintain the original data in your database.

    First, highlight your data, click on the Data tab, then click Filter. This is assuming your data has column headers.

    Image

    .

    Next, go to the column header which has the people who worked on the projects and click on the little carrot. Click on Text Filters then click on Contains.

    Image

    .

    In the textbox on the right of "contains", type in the person you are trying to find.

    Image

    .

    Your data should be filtered to the specific person you are trying to find.

    Image

    .

    I hope this works for you. Let me know if it does, or if you have additional questions. Thanks.

    4 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-10-05T22:25:51+00:00

    Hi,

    can you show us a sample data (dummy)?

    0 comments No comments
  3. Ashish Mathur 100.9K Reputation points Volunteer Moderator
    2023-10-06T00:08:06+00:00

    Hi,

    In the Query Editor, you may use Data > Split Column > Delimiter. Expand Advanced Options and select Rows. Click on OK. Click on Close and Load.

    11 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-10-06T03:38:28+00:00

    Do you mean to achieve this?

    https://b23.tv/2NG26F0

    //select * from split_then_transform limit 20;

    cli_split_data~split_then_transform~,~ROLES;

    select NAME,EMAIL,ROLES name from split_then_transformsplit;

    source and expected result:

    NAME EMAIL ROLES
    John Doe email address removed for privacy reasons role1,role3
    Jane Doe email address removed for privacy reasons role2,role4
    Jim Doe email address removed for privacy reasons role4
    John Smith email address removed for privacy reasons role1
    NAME EMAIL name
    John Doe email address removed for privacy reasons role1
    John Doe email address removed for privacy reasons role3
    Jane Doe email address removed for privacy reasons role2
    Jane Doe email address removed for privacy reasons role4
    Jim Doe email address removed for privacy reasons role4
    John Smith email address removed for privacy reasons role1
    4 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2023-10-06T18:51:56+00:00

    This is very helpful, thank you so much! But is there any way to give the illusion that the outputted filtered information is in its own row? For instance, is it possible that only 'Georgia' appears without being followed by a comma separated list?

    2 people found this answer helpful.
    0 comments No comments