+ Reply to Thread
Results 1 to 5 of 5

Insert row every 10 lines

  1. #1
    Registered User
    Join Date
    09-13-2007
    Posts
    9

    Insert row every 10 lines

    Hi,

    I am looking for a way to reformat data into a report which ranks the total values and sub totals them into Top 10, Top 20 etc. I have attached a simple sheet an example of the type of output I am looking for.

    I am quite happy importing the raw data filtering and ranking it and thougth I should be able use some kind of loop to enter a row and the formulas to total the first 10 rows and every subsequent 11 rows. Unfortunately I do not have the ability or the knowledge to work it out!

    The number of rows can vary from 16 to over 800.

    Any suggestions would be greatly appreciated.
    Attached Files Attached Files
    Last edited by soss; 03-10-2011 at 07:39 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert row every 10 lines

    The example file should show BEFORE/AFTER example sheets.

    Also, the BEFORE would be a better sheet if it showed the state of the data when it first imported and had more than the required top 20 rows, a 30+ row example would be better.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-13-2007
    Posts
    9

    Re: Insert row every 10 lines

    Jerry

    Sorry about that I was just trying to keep it simple.

    I have attached a new version which shows the raw report in the Val tab. I have a Total tab which uses the total to calculate the % and counts the number of holdings. I then filter the Val tab by the different Regions in Col A and copy & paste into the Ranked tab for reformatting.

    Many thanks
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Insert row every 10 lines

    Try this:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 03-09-2011 at 12:14 PM.

  5. #5
    Registered User
    Join Date
    09-13-2007
    Posts
    9

    Re: Insert row every 10 lines

    Fantastic!

    Works a treat, many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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