+ Reply to Thread
Results 1 to 7 of 7

How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Columns?

  1. #1
    Registered User
    Join Date
    03-30-2023
    Location
    United States
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    2

    How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Columns?

    So, I have one column of data in this format...

    URL
    USERNAME
    PASSWORD
    URL
    USERNAME
    PASSWORD
    ...etc. etc.

    The above repeated over and over again in one Column, and each one is its OWN Row and Cell.
    I need to grab all three items creating 3 columns for each item. In other words, url, username, and password will each have its OWN column.
    I need to put each group into the same columns so having...

    URL / Username / Password... as Columns, putting the above data into each one.

    I need a way to make this easy, cause I can manually copy and paste using "Text to Columns" for each one, But I have a few 100 Passwords I need to create which I'll die doing.
    I need to do this so I can import all these passwords into a Browser as a .CSV file. My old browser 20 years of pw's doesn't and won't anytime soon have an export function. I was at least able to grab the "text" of my logins putting the info into a single column.

    Please help, thank you... I have tried researching this, but I just can't find exactly what I'm needing to do. It's how I figured out how to do the above, but I need a "Formula" or whatever to make this fast.
    Thanks
    Last edited by leeuniverse; 03-30-2023 at 10:09 PM.

  2. #2
    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,463

    Re: How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Colu

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by TMS; 03-30-2023 at 06:26 PM.
    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


  3. #3
    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,463

    Re: How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Colu

    If you don't have LET and/or HSTACK, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    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,463

    Re: How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Colu

    Think you'll have LET but not HSTACK, so:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It's shorter and you only need to adjust the range in one place.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Colu

    And looking ahead should you ever decide to upgrade to Office 365 the WRAPROWS function makes short work of this. The formula would be

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

  6. #6
    Registered User
    Join Date
    03-30-2023
    Location
    United States
    MS-Off Ver
    Office Pro Plus 2021
    Posts
    2

    Re: How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Colu

    Thanks everyone for the input...

    This initial solution ended up working and easy, on Office 2021.

    Try

    =INDEX(range, SEQUENCE(rows, columns))
    Where

    Range is your 1 column range holding your data

    Rows is the number of rows you are expecting in the output. This should simply be number of rows in your input data dividee by 3

    Columns is the number of columns you require in your output. This is 3 for you.
    This will end up something like

    =INDEX(A2:A301, SEQUENCE(100, 3))
    Note that is assumes you are using a version of Excel that includes the SEQUENCE function.

    Or if you have the newest version of Excel 365

    =WRAPROWS(A2:A301, 3)

  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,463

    Re: How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Colu

    What do you mean by "initial solution"? Where did you come by that formula?

+ 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. Replies: 2
    Last Post: 12-21-2020, 01:30 PM
  2. [SOLVED] Create New Columns On New Sheet Based On Column Data
    By Knotty2k in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2020, 11:14 AM
  3. Create a sepearte column baesd on the data in other columns
    By jeevan34 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-13-2016, 11:12 AM
  4. Merge two columns to create 1 column with all the data
    By Simon.xlsx in forum Excel General
    Replies: 4
    Last Post: 03-12-2014, 09:04 AM
  5. Need a macro to format data and delete columns and create new column
    By aacod in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2013, 12:15 PM
  6. Replies: 2
    Last Post: 12-24-2012, 12:46 PM
  7. Create one new column of unique data from two columns
    By Lenshaw in forum Excel General
    Replies: 6
    Last Post: 10-01-2012, 09:12 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