+ Reply to Thread
Results 1 to 7 of 7

Copy by Transpose the Filtered Result

  1. #1
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    147

    Copy by Transpose the Filtered Result

    Dear Sirs,

    I've a problem which I guess should better to solved by using VBA (instead of Excel functions).

    1. I've 2 worksheets, Sheet2 contains a 2-column table which I wish to filter
    2. The filtering criteria will be in Sheet1 column A

    My idea is to write codes to base on Sheet1 column A values as filter criteria in Sheet2 (column A), with the filtered result copied by transposing the value to Sheet1 column B.
    That is the filtered result (vertically) to be copied to Sheet1 column B and/or after horizontally.

    The codes can loop through all the Sheet1 column A values one by one.

    I've drafted by codes, but seems too many errors to debug.

    Appreciate if someone could help.

    Many thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Copy by Transpose the Filtered Result

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Copy by Transpose the Filtered Result

    I've tested the codes and they work miraculously fast.
    These codes are too advanced to understand and I need to take sometime to digest so that I may modify them to suit exact cell references in my true case.

    Very grateful for you help !

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Copy by Transpose the Filtered Result

    If you feel better Filter/Copy then
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Copy by Transpose the Filtered Result

    I've tested your second set of codes, the codes can finish to the end but with incorrect result possibly due to mis-positioning in cell reference.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Copy by Transpose the Filtered Result

    OOps, missed bold part...
    should be
    Please Login or Register  to view this content.
    And please don't forget to mark the thread as "Solved".

  7. #7
    Forum Contributor
    Join Date
    03-27-2015
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    147

    Re: Copy by Transpose the Filtered Result

    Yes, it's OK now.
    Many 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. Copy filtered data into filtered range in a separate sheet
    By vikas.trades25 in forum Excel General
    Replies: 1
    Last Post: 02-07-2019, 04:04 AM
  2. [SOLVED] Copy the filtered dates, do Formatting and paste it back to filtered column
    By Rajkumar_h in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2017, 10:53 AM
  3. Cell reference to filtered data auto update as Filtered result changes
    By Irajoo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-22-2017, 02:17 AM
  4. countif greater than on filtered data, then copy the result
    By extremis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 01:48 PM
  5. VBA copy filtered result to next column help. New to VBA
    By kc001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2013, 01:05 AM
  6. [SOLVED] Macro to filter active ws in workbook and paste filtered result in "result" worksheet
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2012, 12:01 PM
  7. [SOLVED] Transpose: How can I copy a list and transpose it but leaving 3 cells in between each item
    By cocolete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2012, 10:01 AM

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