+ Reply to Thread
Results 1 to 11 of 11

Interrupted Transpose

  1. #1
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Interrupted Transpose

    Hi

    Suppose that we have two columns including a million rows like this:
    1.jpg

    What is the right formula to make another arranged table? like this pic:
    2.jpg

    Any help would be appreciated


    http://www.excelforum.com/excel-form...transpose.html
    https://www.mrexcel.com/forum/excel-...transpose.html
    Last edited by sushiant; 02-18-2017 at 05:49 AM.

  2. #2
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Re: Interrupted Transpose

    If you don't know the answer please don't leave such annoying comments under the other's threads.

  3. #3
    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,524

    Re: Interrupted Transpose

    I have an answer which I will post, if and when, you comply with the Moderator's requests.

  4. #4
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Re: Interrupted Transpose

    Last edited by sushiant; 02-18-2017 at 05:53 AM.

  5. #5
    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,524

    Re: Interrupted Transpose

    Try

    Assuming data starts in row 1

    in C2

    =IF(AND(NOT(ISNUMBER($B2)),ISNUMBER(INDEX($B$2:$B$14,COLUMNS($C:C)+COUNTA($B$1:$B2)-1))),INDEX($A$2:$A$14,COLUMNS($C:C)+COUNTA($B$1:$B2)-1),"")

    Copy across until you get a blank cell

    Copy C2 down and then across at each Category change until blank cell.

    If you have a MILLION rows then VBA will be a better solution, using the TRANSPOSE function.

  6. #6
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Re: Interrupted Transpose

    Pleeeeeeeeaaaaaaaaaase

  7. #7
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Re: Interrupted Transpose

    Thank you . . . . you are a genius but it worked just for one row. The other rows are blank.
    Where can I request a VBA?

  8. #8
    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,524

    Re: Interrupted Transpose

    Re VBA: you can post on the VBA/Macro forum BUT I recommend you close this thread OR reference it in the VBA thread.

    Also post a sample file which accurately represent your data layout.

    See next post.
    Attached Files Attached Files
    Last edited by JohnTopley; 02-18-2017 at 07:59 AM. Reason: VBA solution offered in next post

  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,524

    Re: Interrupted Transpose

    Try this VBA ....

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 02-18-2017 at 07:58 AM.

  10. #10
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    Re: Interrupted Transpose

    Thank you very much. That’s very kind of you. You’re so helpful. How can I ever thank you enough.

  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,524

    Re: Interrupted Transpose

    Thank you for the feedback and rep.

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

+ 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. Interrupted histogram
    By NARIES2016 in forum Excel General
    Replies: 2
    Last Post: 12-08-2016, 12:12 PM
  2. Replies: 25
    Last Post: 01-03-2009, 10:04 PM
  3. Code execution has been interrupted
    By tacojoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2008, 03:44 AM
  4. code execution has interrupted
    By arunvj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2006, 07:16 AM
  5. Interrupted scales
    By renehp in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-09-2006, 04:45 AM
  6. [SOLVED] Code Execution has been interrupted - ??
    By ina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2006, 11:55 AM
  7. Code execution has been interrupted
    By LAF in forum Excel General
    Replies: 0
    Last Post: 01-04-2006, 11:39 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