+ Reply to Thread
Results 1 to 11 of 11

Formatting Document

  1. #1
    Registered User
    Join Date
    08-22-2019
    Location
    South africa
    MS-Off Ver
    365
    Posts
    5

    Question Formatting Document

    Hello, if anybody can help me please.

    I have sheet in excel I received which looks like cells marked with 1, I'm looking for a way to make it look like to, so basically the task gets repeated down until task 2 starts then it does the same for task 2, the table marked as 3 would be great if that's even possible.

    excel query.PNG

    Thank you in advance

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Formatting Document

    From the small amount of data you have proided, you are implying that

    every Task has FOUR and ONLY FOUR rows below it.
    Is that correct?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    08-22-2019
    Location
    South africa
    MS-Off Ver
    365
    Posts
    5

    Re: Formatting Document

    Hello, unfortunately not
    the rows for each task can vary total sheet contains 2000 plus rows, some tasks might have 2-4 others might have 15

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Formatting Document

    In that case a formula would be difficult, shame, cos I think I had a formula solution.

    prob VBA or possibly Power Query but I'm no expert on these methods.

  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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Formatting Document

    This can be done with PowerQuery - please provide a workbook.

    Please do not open duplicate threads: if you want a thread moving, please contact a moderator.
    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.

  6. #6
    Registered User
    Join Date
    08-22-2019
    Location
    South africa
    MS-Off Ver
    365
    Posts
    5

    Re: Formatting Document

    Hello, Sorry about that.

    Here is workbook
    Attachment 638339

  7. #7
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Formatting Document

    Could you provide some rather more realistic sample data? Any solution I offer using what you have provided in the workbook is likely to fail when used with the real data. It needs to be as realistic as possible, but desensitised.

  8. #8
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Formatting Document

    As before, simple VBA.

    I did think of Power Query, but yours is not a structured table, and Power Query insists on that, and you would have to mess about with headers. VBA seemed simpler.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-22-2019
    Location
    South africa
    MS-Off Ver
    365
    Posts
    5

    Re: Formatting Document

    Please see this file,

    Attachment 638467

  10. #10
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,933

    Re: Formatting Document

    That's the same as post #6.

    As you don't seem willing to provide more realistic data, I'm out. I hope you find a solution. Good luck!

  11. #11
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Formatting Document

    Quote Originally Posted by oliverhhh View Post
    Please see this file,

    Attachment 638467
    Did you try my code?

+ 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. VBA: formatting a word document/RTF file from VBA
    By MH2020 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2019, 02:22 PM
  2. Formatting a word document using macros
    By klsemory in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2016, 01:27 PM
  3. [SOLVED] I cannot get conditional formatting to work on this document... Please help
    By Beth12366 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-19-2013, 10:56 AM
  4. formatting new sheets in an excel document
    By Wendy Cavanagh in forum Excel General
    Replies: 8
    Last Post: 03-31-2012, 09:16 PM
  5. Replies: 0
    Last Post: 10-19-2009, 07:39 AM
  6. Excel document formatting
    By ebbo in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-19-2009, 07:48 PM
  7. Broken formatting while pasting document
    By Manatee in forum Excel General
    Replies: 0
    Last Post: 12-01-2005, 10:10 AM

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