+ Reply to Thread
Results 1 to 5 of 5

Easy macro for copying data to new worksheet

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Easy macro for copying data to new worksheet

    Hello,

    From worksheet "List" I would like to copy to "Results" columns B, C, D (in "D" will be several values seperated by comma).

    In the attachment You can find data and example.

    Worksheet "List" will be updating every week.
    Attached Files Attached Files

  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: Easy macro for copying data to new worksheet

    Not as easy as first blush, this macro seems to be giving the desired results:

    Please Login or Register  to view this content.
    _________________
    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
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Re: Easy macro for copying data to new worksheet

    Hello,

    Thanks for reply! Is it possible to do not show the same values?
    Excample... for this 22LJ620H-ZA.AEKNLBP: AGF76438301,AGF76438301,AGF76438301,AGF76453501,AGF76453501
    I would like to see only: AGF76438301, AGF76453501
    etc...

    Another case... is it possible show only one value if there is more than one same model.suffix?
    For example:
    This:
    22LJ620H-ZA.AEKNLBP AAA74829109 AGF76438301
    22LJ620H-ZA.AEKNLBP AAA74829109 AGF76438301
    22LJ620H-ZA.AEKNLBP AAA74829109 AGF76438301
    22LJ620H-ZA.AEKNLBP AAA74829109 AGF76453501
    22LJ620H-ZA.AEKNLBP AAA74829109 AGF76453501

    Show as below:
    22LJ620H-ZA.AEKNLBP AAA74829109 AGF76438301, AGF76453501 ?


    Thank you in advance

  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: Easy macro for copying data to new worksheet

    As I said, progressively less "easy" as new parameters are added.

    This will eliminate the duplicate column C values. As for your second question, when I run the new macro I get those results for that item, so perhaps that issue self-resolved.
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    Mlawa
    MS-Off Ver
    13
    Posts
    19

    Re: Easy macro for copying data to new worksheet

    Works fine. Thank You!

+ 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. Issue with Macro Copying data from one worksheet to another
    By jcg894 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2014, 05:03 PM
  2. Easy way of copying a table into a macro?
    By TomWolowiec in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2013, 06:01 PM
  3. [SOLVED] Copying Data to Another Worksheet - Macro
    By fmfernandez11 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-01-2013, 01:52 PM
  4. Macro copying data from unopened worksheet to open worksheet
    By chriswiec in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-01-2013, 02:14 PM
  5. Macro help with copying data from one worksheet to another
    By ashy_16in in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2011, 11:13 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