+ Reply to Thread
Results 1 to 10 of 10

Need to seperate Data in one cell

  1. #1
    Registered User
    Join Date
    08-16-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need to seperate Data in one cell

    I have a cell which has 2 names in it. I need a way to keep both names in the same cell but for excel to recognize it as separate names. I can't manipulate the cells or the sheet in any way. I just need some sort of comma separation or something so it recognizes both names as individuals instead of 1.

    Example:

    A3 contains 2 names Mike Smith, John Doe

    Excel is recognizing the name as Mike Smith, John Doe

    I need it to recognize it as Mike Smith and John Doe.

    This data is exported to a separate sheet within the workbook. The names have to match exactly for the countif formula to work.

    Thanks for the help

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to seperate Data in one cell

    Something like?

    =COUNTIF("*"&X1&"*",A:A)

    where X1 can contain Mike Smith, and column A may contain Mike Smith, John Doe. This will count how many cell contain Mike Smith, ignoring John Doe
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-16-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to seperate Data in one cell

    I need it to recognize both names. This situation only comes up once in a while. The actual situation is my guys submit a report to me about which supervisors they visited in the field that day. Sometimes on the date line they have visited more than one supervisor in a day so they will enter multiple names into the cell. I can't change either document or add additional cells because it is a corporate document.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to seperate Data in one cell

    I can't believe I had that arguments reversed in that formula !! should've been =COUNTIF(A:A,"*"&X1&"*")

    Anyway this formula will count number of times names in X1 and X2 are in column A, is that more like what you need?

    =SUMPRODUCT(COUNTIF(A:A,"*"&X1:X2&"*"))

  5. #5
    Registered User
    Join Date
    08-16-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to seperate Data in one cell

    Supervisor Tracking 2013.xlsx

    You can see here in the January sheet when there is only one name entered it automatically populates the data to the WSL sheet. In February where there are 2 names on the cell it does not.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to seperate Data in one cell

    Then my first formula was the right idea, although I had the arguments reversed. I corrected it in last post...

    Try in Feb's column, E2:

    =COUNTIF(Feb!D$1:D$1048575,"*"&A2&"*")

    copied down.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Need to seperate Data in one cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Registered User
    Join Date
    08-16-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to seperate Data in one cell

    That's half my battle. That gets the sheet to recognize Aaron Hoffus but it does not recognize the 2nd name. I need it to recognize both individually

  9. #9
    Registered User
    Join Date
    08-16-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need to seperate Data in one cell

    Sorry guys,

    Had a brain fart there. I got it.

    Thanks so much for your help

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Need to seperate Data in one cell

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Seperate Values in single cell seperated by [alt+enter] into seperate cells
    By Coquito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2012, 04:24 PM
  2. seperate data from one cell into many....
    By Little pete in forum Excel General
    Replies: 2
    Last Post: 07-14-2006, 10:25 AM
  3. [SOLVED] how to have two seperate data in one cell
    By TanjuE in forum Excel General
    Replies: 4
    Last Post: 07-08-2006, 05:00 AM
  4. [SOLVED] How do I seperate data from a pivot into seperate worksheets?
    By Shannon in forum Excel General
    Replies: 5
    Last Post: 08-25-2005, 02:05 AM
  5. Seperate the data from the Cell
    By Akhilesh Dalia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2005, 08:06 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