+ Reply to Thread
Results 1 to 21 of 21

Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Question Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Goodnight everyone,

    My question is: have a database with 10 columns (A to J), the tab Sheet1, for example. I want to create, Sheet2 tab an ADVANCED FILTER, with certain criteria in there own Sheet2 tab, which would run via Macro. So far so good.
    But want me to return the advanced filter only some columns of the interleaved data, for example, column A, D and I specifically, not the entire range of A to J, because the data in columns that will exclude not Me interest for this query.

    Thank's
    Last edited by marreco; 03-17-2012 at 04:55 PM.

  2. #2
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi.
    Good morning!

    Any idea?

    Thank's

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi.
    Good morning!

    Any idea?

    Thank's

  4. #4
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hello
    Does anyone have any suggestions.

    Thank you!

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hello
    Does anyone have any suggestions.

    I know and believe that someone will help me, thanks!

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi.
    Good morning!

    Any idea?

    Thank's

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi marreco
    The simplest approach would be to create the advanced filter to Sheet2 then, as part of the macro, hide (or delete) the Sheet2 columns you wish not to see.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  8. #8
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi, Jaslake.

    Thank you for your response.

    I consider your suggestion, thanks!

    After I return!

    Thank you!!

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi Jaslaske. Behold the return

    I'd like to type A2 of the spreadsheet called "CONSULTA", and the filter will look in column E of Worksheet chamda "BD".

    But when you see what iqual the A2 will return the columns A, D, E, K, O, P, R, T. painted yellow worksheet chamda "BD" to
    the worksheet called "CONSULTA".

    This worksheet has many columns in ms filter result I do not need them all.
    How would the filter be able to help me I'll be very happy, thank you!
    Attached Files Attached Files

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi marreco
    Column E of Sheet BD has an empty cell...will this be the case in your real file?

  11. #11
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi Jaslaske

    Has this information it

    1
    05.456.987/0001-80
    58.654.123/0001-70
    21
    01.123.321/0001-09
    09.987.234/0001-09
    9

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Yes, I can see that...Cell E2 is empty...my question is this
    will this be the case in your real file?

  13. #13
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    It was because I put the data at random.

    But if I have two lines of column E daplanilha BD iqual cell A2 of planinlha CONSULTATION.
    Then it will be returned only the columns of yellow.

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi marreco
    We're not communicating. In your real file, will there be empty cells in Sheet BD, Column E or will Column E ALWAYS have data? Yes or No?

  15. #15
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi Jaslaske. I tried this code but it did not work

    Please Login or Register  to view this content.

  16. #16
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    will Column E ALWAYS have data?
    Yes!

  17. #17
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Thank you Sir...that makes things easier...perhaps

  18. #18
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    My Friend, Jaslake, I'll be waiting if you can answer.
    have a nice day
    Thank you for everything

  19. #19
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi marreco
    Try the attached. The code does as follows:
    On Workbook Open, creates a new Worksheet called Temp and creates a Named Range called Devedor of the Unique Values in Column E of BD. This Named Range is then used as a Data Validation Dropdown List for Cell A2 of CONSULTA. Select an Item from this Dropdown List to execute the procedure.
    This Code is in EstaPasta_de_trabalho Module
    Please Login or Register  to view this content.
    And this Code is in CONSULTA Module
    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    It's pretty good!
    I'm impressed, fantastic, you're a genius!

    Thank you very much!

    thank you so

  21. #21
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sheet1 is possible with 10 columns and filter columns 3 and paste in Sheet2?

    Hi marreco
    You're welcome...glad I could help.

+ 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