+ Reply to Thread
Results 1 to 11 of 11

Organize Dataset

  1. #1
    Registered User
    Join Date
    04-05-2024
    Location
    Colombo
    MS-Off Ver
    Microsoft 365
    Posts
    7

    Organize Dataset

    Hi all.

    Hope you guys are safe and well.

    I have a dataset where the code and name of the factory appears (highlighted in yellow in the attachment) as a row above the respective factory data.

    Is there a method to organize the dataset where each factory's code is placed in column A (from cell A24 to A31) and its corresponding name is placed in column B (from cell B24 to B31), repeating this process for all factories in the dataset?

    In the attachment, I've manually transferred the data for the initial factory - Graceland.
    Attached Files Attached Files
    Last edited by Arosha; 04-06-2024 at 04:11 AM.

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

    Re: Organize Dataset

    You cannot move data using a formula, but you can reference it. If you want those header rows eliminating, as you have demonstrated, then you'll need VBA for this. Shall I move the thread for you?
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-05-2024
    Location
    Colombo
    MS-Off Ver
    Microsoft 365
    Posts
    7

    Re: Organize Dataset

    Sure. Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,398

    Re: Organize Dataset

    Thread has been moved.

  5. #5
    Registered User
    Join Date
    04-05-2024
    Location
    Colombo
    MS-Off Ver
    Microsoft 365
    Posts
    7

    Re: Organize Dataset

    Thank you. Appreciate it.

  6. #6
    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
    28,308

    Re: Organize Dataset

    Please Login or Register  to view this content.
    Input: TEST_IN, output: TEST_OUT
    Attached Files Attached Files
    Last edited by JohnTopley; 04-06-2024 at 02:47 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,573

    Re: Organize Dataset

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-05-2024
    Location
    Colombo
    MS-Off Ver
    Microsoft 365
    Posts
    7

    Re: Organize Dataset

    Hi John,

    Thank you. May I know how you did it? When I run the above Macro, I get this error message: Compile Error: Expected End Sub

  9. #9
    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
    28,308

    Re: Organize Dataset

    Please Login or Register  to view this content.
    My error in copying code: my apologies although correct in posted file!

  10. #10
    Registered User
    Join Date
    04-05-2024
    Location
    Colombo
    MS-Off Ver
    Microsoft 365
    Posts
    7

    Re: Organize Dataset

    Thanks John. I was able to apply it. Appreciate your support.

  11. #11
    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
    28,308

    Re: Organize Dataset

    You're welcome: have a good day

+ 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. Search for subsets from one dataset in another dataset
    By LearningExcelFormula in forum Excel General
    Replies: 1
    Last Post: 08-04-2023, 11:59 PM
  2. Replies: 3
    Last Post: 10-20-2017, 12:40 AM
  3. Replies: 3
    Last Post: 01-23-2014, 10:13 AM
  4. [SOLVED] Vertical chart dataset needs to be converted into pivotable dataset
    By aspak84 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-17-2013, 06:06 PM
  5. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  6. graphing daily dataset with weekly dataset
    By [email protected] in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-27-2009, 09:39 AM
  7. Converting A Quarterly Dataset to Weekly Dataset
    By Dan Thompson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2005, 05:30 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