+ Reply to Thread
Results 1 to 8 of 8

splitting data in a column

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    14

    splitting data in a column

    The data listed below is all in column A. Based on the data in the parentheses, I want a return of Monthly, BW or Hospital in column B. Other than doing a text to column or sorting and manually typing in Monthly, BW or Hospital, is there anything else I can do to get my desired results?

    Excel is attached.

    Thanks for your help!

    Period
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    01/30/2014 - 02/12/2014 (University Bi-Weekly (Thu - Wed))
    01/16/2014 - 01/29/2014 (University Bi-Weekly (Thu - Wed))
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    01/30/2014 - 02/12/2014 (University Bi-Weekly (Thu - Wed))
    01/16/2014 - 01/29/2014 (University Bi-Weekly (Thu - Wed))
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    02/01/2014 - 02/28/2014 (Monthly Payroll)
    02/09/2014 - 02/22/2014 (Hospital Bi-Weekly (Sun - Sat))
    01/26/2014 - 02/08/2014 (Hospital Bi-Weekly (Sun - Sat))
    01/30/2014 - 02/12/2014 (University Bi-Weekly (Thu - Wed))
    01/16/2014 - 01/29/2014 (University Bi-Weekly (Thu - Wed))
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: splitting data in a column

    In A2 enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: splitting data in a column

    I didn't download your file.

    When you have an entry like this:

    01/26/2014 - 02/08/2014 (Hospital Bi-Weekly (Sun - Sat))

    What result do you expect since it contains two of the keywords you're looking for?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: splitting data in a column

    this is an array formula
    b2 =IF(SUM(IF(ISERROR(SEARCH({"Monthly";"BW";"Hospital"},A2)),0,1))>0,INDEX({"Monthly";"BW";"Hospital"},MATCH(1,IF(ISERROR(SEARCH({"Monthly";"BW";"Hospital"},A2)),0,1),0)),"BW")

    Ctrl+Shift+Enter
    Appreciate the help? CLICK *

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: splitting data in a column

    Based on the expected results, I've assumed that "Hospital" takes priority over "Bi-Weekly".

  6. #6
    Registered User
    Join Date
    03-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: splitting data in a column

    perfect. thanks!

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,284

    Re: splitting data in a column

    =LOOKUP(MID(A2,27,1),{"H","M","U"},{"Hospital","Monthly","BW"})
    Try this one
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  8. #8
    Registered User
    Join Date
    03-06-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: splitting data in a column

    thanks. this solution is also very useful.

+ 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. Help Splitting Data 1 Column to Multiple
    By oravsky123 in forum Excel General
    Replies: 3
    Last Post: 07-07-2008, 02:27 AM
  2. splitting data in one column into two columns
    By steven888 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 05-23-2008, 02:13 AM
  3. Replies: 1
    Last Post: 03-11-2006, 07:50 AM
  4. splitting data from 1 column into multilple?
    By Dan B in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2006, 11:25 PM
  5. splitting data in a column
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2005, 01:05 PM

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