+ Reply to Thread
Results 1 to 5 of 5

Change formatting of Data

  1. #1
    Registered User
    Join Date
    01-30-2024
    Location
    England
    MS-Off Ver
    365
    Posts
    2

    Lightbulb Change formatting of Data

    Hello, first time poster here so hope I have done it correctly....

    I work in a lab and we have an old system that generates data in the format in the attached file where it can only generate 4 rows and after this it makes another column.

    Book1.xlsx


    Is there an easy way to group the headings together using a formula or option so it looks like the below?

    Book2.xlsx

    Thank you in advance

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Change formatting of Data

    will it always be that number of columns ?
    VSTACK() may help here

    =VSTACK(A2:G4,H2:N4,O2:U4,V2:AB4)
    you could just add the arrays to the maximum columns likely as its always 4 rows , then you will get zeros

    may be able to use some sort of control to stop that
    but whats the max columns likely to be produced from the system
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Change formatting of Data

    I think it will help if you had the derived data in a separate sheet, so insert a new sheet and copy your row of headings into A1:G1. Then you can use this formula in cell A2 of the new sheet:

    =INDEX(Sheet1!$2:$4,MOD(ROWS($1:1)-1,3)+1,(INT((ROWS($1:1)-1)/3))*7+COLUMNS($A:A))

    Copy this across to G2, then copy those 7 formulae down as far as you need them.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-30-2024
    Location
    England
    MS-Off Ver
    365
    Posts
    2

    Re: Change formatting of Data

    This worked perfectly thank you!!!

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,918

    Re: Change formatting of Data

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    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.

+ 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] Change formatting in Power Query of data set
    By misty15 in forum Excel General
    Replies: 3
    Last Post: 02-02-2024, 08:17 PM
  2. Conditional Formatting using data in Sheet2 to change colors of cells in sheet1
    By vinnievegas in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-02-2020, 02:56 PM
  3. [SOLVED] Conditional formatting - highlight whenever there is a change in data
    By ahblur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2016, 11:10 PM
  4. [SOLVED] Conditional formatting to change colors of Columns based on data entered in Column E
    By JJFletcher in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-13-2016, 01:27 PM
  5. [SOLVED] Need helping updating and formatting a table daily (data and number of rows change)
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2015, 08:43 AM
  6. Change Default Formatting of Pivot Drill-Down Data
    By lsofia in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-31-2012, 09:53 AM
  7. Change Data Labels formatting using Macros
    By booo in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-09-2011, 04:00 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