+ Reply to Thread
Results 1 to 6 of 6

Formatting/Organising data from a generated CSV

  1. #1
    Registered User
    Join Date
    07-03-2025
    Location
    England
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2505 Build 16.0.18827.20102) 64-bit
    Posts
    3

    Formatting/Organising data from a generated CSV

    Hi all,

    I'm looking to find a way to arrange the info on the Before sheet in to something like it's shown on the After sheet. I've taken a crack at this a few times but the furthest I've managed to get is separating each comma delineated item into separate cells but that's all. The quantity of each length still stays in the same cell this way which isn't useful for what I need and the "mm" and brackets also still remain.

    This is a small example of what I usually have to work with and I've been getting by doing this manually so far. Is there a way to separate this out?
    Attached Files Attached Files
    Last edited by DHIHUS; 07-03-2025 at 05:01 AM. Reason: missed word

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

    Re: Formatting/Organising data from a generated CSV

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 07-03-2025 at 09:15 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    07-03-2025
    Location
    England
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2505 Build 16.0.18827.20102) 64-bit
    Posts
    3

    Re: Formatting/Organising data from a generated CSV

    Thank you for this, I'm pretty much vba illiterate so wouldn't have had a chance writing something like this.

    Is there a way to increase the amount of rows it scans through? Some of the stuff I work with has quite a few more items than on my example but I noticed this stops after row 5.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2508 Win 11
    Posts
    24,959

    Re: Formatting/Organising data from a generated CSV

    If this presentation works for you then it can be achieved with Power Query

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    16
    Length Deck Length Hollow Deck Length Solid 3"x3" Post 6"x2" Treated Timber
    17
    4200
    2
    18
    3600
    3
    3
    2
    19
    3000
    6
    2
    2
    20
    2400
    2
    1
    2
    21
    1800
    1
    2
    3
    22
    1588
    4
    2
    4
    23
    1288
    2
    4
    4
    24
    1200
    1
    2
    10
    2
    25
    988
    4
    10
    26
    900
    4
    2
    4
    27
    600
    4
    5
    4
    28
    300
    4
    51
    Sheet: After

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    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
    31,320

    Re: Formatting/Organising data from a generated CSV

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 07-03-2025 at 12:15 PM. Reason: Updated macro to make "generic"

  6. #6
    Registered User
    Join Date
    07-03-2025
    Location
    England
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2505 Build 16.0.18827.20102) 64-bit
    Posts
    3

    Re: Formatting/Organising data from a generated CSV

    Perfect, thank you for this.

+ 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. Organising Data
    By Crawley_Boy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2024, 11:49 AM
  2. Help organising data by SKU name
    By NetzenRob in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2021, 05:32 PM
  3. [SOLVED] Re-organising data in excel
    By be_insane in forum Excel General
    Replies: 3
    Last Post: 02-11-2014, 06:11 AM
  4. Need help organising data
    By Arvon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2013, 05:26 AM
  5. Help re-organising the data
    By billos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2011, 12:14 PM
  6. Formatting an automatically generated worksheet with varying lines of data
    By msteckbeck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2008, 07:08 PM
  7. organising data in a worksheet
    By Graeme in forum Excel General
    Replies: 2
    Last Post: 12-14-2006, 06:43 PM

Tags for this Thread

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