+ Reply to Thread
Results 1 to 19 of 19

Splitting cells and rearranging data

  1. #1
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Splitting cells and rearranging data

    I have a very messed up databook which now needs to be cleaned up and data segregated into columns.

    I am at a loss to do this in a reasonably simple way because every "contact person" column has to be split into two or three columns and two or three rows of name, designation and cell phone number (i've made them all 123456789 for the example)

    Would be grateful for help on a way to accomplish this?

    Workbook extract attached.

    Thanks.
    Attached Files Attached Files
    Last edited by anandis; 10-12-2022 at 11:05 AM.

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

    Re: Splitting cells and rearranging data

    Administrative Note:

    Is you forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,768

    Re: Splitting cells and rearranging data

    Please add expected results to your file.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    I have updated the excel file with the required format in the second sheet.

    My excel version is 2016.

    Thanks !

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,486

    Re: Splitting cells and rearranging data

    Pleae update your forum profile - do this NOW as explained in my post above.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Splitting cells and rearranging data

    what about Manager Director, Purchase, MD ?

    but maybe

    Sr. No Company Person Title Contact1 Contact2 Address1 Address2 Email1 Email2 Email3
    1
    A Mr R 123456789
    2
    B Mr S B 123456789 City,State,Zip email id 1for person 1 email id 2 for person 2
    2
    B Mr N P Engineer 123456789 City,State,Zip email id 1for person 1 email id 2 for person 2
    3
    C Mr N T 123456789 City,State,Zip
    3
    C Mr K T 123456789 City,State,Zip
    4
    D Mr R 123456789
    5
    E Mr Y 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    5
    E Mr A J 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    5
    E Mr D A 123456789 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    6
    F Mr A 123456789
    7
    G Mr S B 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    7
    G Mr R D 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    7
    G Mr H 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    7
    G Mr S B 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    8
    H Mr P S Manager 123456789 Address 1 :City,State,Zip Address 2 :City,State,Zip
    8
    H Mr B B A Director Address 1 :City,State,Zip Address 2 :City,State,Zip
    9
    I Mr V A Purchase 123456789 Address 1 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    9
    I Mr V C MD Address 1 :City,State,Zip email id 1for person 1 email id 2 for person 2 email id 3 for person 3
    Last edited by sandy666; 10-12-2022 at 11:52 AM.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Splitting cells and rearranging data

    Apart from Mr, what other titles are present? Do they ALL ALWAYS end with a full stop?

    Edit: forget it. My approach will not work. Your best bet, by a LONG way, is Power Query or VBA.
    Last edited by Glenn Kennedy; 10-12-2022 at 11:47 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    I have done this.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Splitting cells and rearranging data

    You have done what??

  10. #10
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    How did you do this ???

    Quote Originally Posted by sandy666 View Post
    what about Manager Director, Purchase, MD ?

  11. #11
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    Oops was replying to the moderator about updating my profile with version of excel and forgot to quote the message .
    Quote Originally Posted by Glenn Kennedy View Post
    You have done what??

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Splitting cells and rearranging data

    Quote Originally Posted by anandis View Post
    How did you do this ???
    answer my question first

  13. #13
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    Sorry i missed replying. Yes that column of designation needs to be there too.

    Quote Originally Posted by sandy666 View Post
    what about Manager Director, Purchase, MD ?

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Splitting cells and rearranging data

    Lol. OK. Thanks.

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Splitting cells and rearranging data

    so you can use Power Query with splitting, extracting, merging, replacing, moving, renaming, trimming, if-ing etc.
    Last edited by sandy666; 10-12-2022 at 01:54 PM. Reason: added some steps

  16. #16
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    Quote Originally Posted by sandy666 View Post
    so you can use Power Query with splitting, extracting, merging, replacing, moving, renaming, trimming, if-ing etc.
    Would very much appreciate more guidance. Could you please share the query worksheet you showed above? I dont quite know how to split this into rows .


    Thank you

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Splitting cells and rearranging data

    next time try to answer with more details and do better example Before and After

    here is:



    If that takes care of your questions hit Add Reputation at the foot of the posts which have helped you
    Last edited by sandy666; 10-13-2022 at 02:03 AM.

  18. #18
    Registered User
    Join Date
    08-02-2020
    Location
    nerul,mahrashtra
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Splitting cells and rearranging data

    Thank you ! I was able to split the names into different columns but unable to do so with the email addresses. I'll keep trying.

    Quote Originally Posted by sandy666 View Post
    next time try to answer with more details and do better example Before and After

    here is:



    If that takes care of your questions hit Add Reputation at the foot of the posts which have helped you

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Splitting cells and rearranging data

    you didn't show what you want to do with Mail ID column

+ 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] data splitting in cells
    By MaartenRo in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-21-2022, 07:52 AM
  2. [SOLVED] Splitting Data Into Separate Cells
    By dodgemain in forum Excel General
    Replies: 18
    Last Post: 04-21-2020, 03:56 PM
  3. [SOLVED] rearranging column data with repeat instances and blank cells
    By rkong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2019, 09:48 PM
  4. splitting data in to two cells
    By sdts in forum Excel General
    Replies: 2
    Last Post: 12-31-2010, 12:23 PM
  5. Splitting Data from Cells
    By Abgirl in forum Excel General
    Replies: 6
    Last Post: 07-12-2010, 07:33 AM
  6. Splitting cells, rearranging columns and rows, cleaning up data
    By daniel.henriksen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-11-2010, 03:55 AM
  7. Splitting data in Cells
    By james_edstrom in forum Excel General
    Replies: 1
    Last Post: 12-10-2009, 07:56 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