+ Reply to Thread
Results 1 to 13 of 13

Repeat a combination of rows and columns

  1. #1
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Repeat a combination of rows and columns

    Hi My data in excel is shown

    Under A
    A
    B
    C

    under B
    1
    2
    3
    till 100

    My expected output should be

    Row A Row B
    A 1
    A 2
    A 3
    ...
    C 100

    This should be done automatically...in a new excel sheet

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Repeat a combination of rows and columns

    ???? could you clarify that ,you want 100 a then 100 b then 100 c's and if the value changed to say 88 youd have 88 of each. please post a workbook showing some expected results
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Repeat a combination of rows and columns

    Put these formulas in Cells A1:B2 respectively:

    Please Login or Register  to view this content.
    and drag the formulas from row two down to row 300
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Repeat a combination of rows and columns

    Example file attached

    Number of entries in both the row can change
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Repeat a combination of rows and columns

    Look at post #3 for a solution

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Repeat a combination of rows and columns

    this will do anything put in column a repeated the number of times of the max in columb b
    Attached Files Attached Files
    Last edited by martindwilson; 07-01-2012 at 07:24 AM.

  7. #7
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Repeat a combination of rows and columns

    Sorry but can u post the same in excel ...also the numbers in my original sheet are not unifrom...i can only give u the count based on the sheet

  8. #8
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Repeat a combination of rows and columns

    Fantastic thank you ...

  9. #9
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Repeat a combination of rows and columns

    something went wrong again....Please find ur sample sheet

    in the attached file i see that a is generated for 1300 times
    but i only want a with 13 entries mapped to the the data in 13 columns in B

    Column B sometimes might have text as well...i put them in the attached file again
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Repeat a combination of rows and columns

    Hi can you please check this post again

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Repeat a combination of rows and columns

    this is not the same as you originaly asked however
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    03-29-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Repeat a combination of rows and columns

    Can u check this sheet...looks like i have not given you my right requirement(atleast we are not on same page on the final result)
    Attached Files Attached Files

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Repeat a combination of rows and columns

    ok see sheet 2
    Attached Files Attached Files

+ 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