Results 1 to 10 of 29

Thread: copy and paste by VBA based on criteria

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #23
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,521
    Rep Power
    10
    Hi
    There are very many different ways to do something like this.
    So this solution would be just one of many ways.

    Example:

    Before:

    _____ Workbook: 1.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    1
    Stock Name Data Data Data Data Data Data Data Data Data Data Data Data
    2
    ACC
    800
    700
    600
    500
    400
    300
    200
    100
    90
    80
    70
    3
    ADANIENT
    800
    700
    600
    500
    400
    300
    200
    100
    90
    80
    70
    4
    ADANIPORTS
    800
    700
    600
    500
    400
    300
    200
    100
    90
    80
    70
    5
    ADANIPOWER
    800
    700
    600
    500
    400
    3
    200
    100
    90
    80
    70
    6
    AMARAJABAT
    800
    700
    600
    500
    400
    300
    200
    100
    90
    80
    70
    7
    AMBUJACEM
    800
    700
    600
    500
    400
    300
    200
    100
    90
    80
    70
    8
    ONGC
    800
    700
    600
    500
    400
    300
    200
    100
    90
    80
    70
    9
    Worksheet: Sheet1 (2)

    run macro here: http://www.excelfox.com/forum/showth...ll=1#post13059

    Output results After running macro

    _____ Workbook: 2.xlsx ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    1
    ACC 500
    2
    ADANIENT 700
    3
    AMARAJABAT 400
    4
    Worksheet: Tabelle2



    macro is here : https://imgur.com/Rs0EaVf , and also in uploaded file.
    Attachment 2838
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. Replies: 48
    Last Post: 09-23-2020, 02:03 AM
  2. Replies: 85
    Last Post: 06-09-2020, 05:58 PM
  3. Copy paste data based on criteria
    By analyst in forum Excel Help
    Replies: 7
    Last Post: 01-13-2014, 12:46 PM
  4. Replies: 8
    Last Post: 10-31-2013, 12:38 AM
  5. Replies: 2
    Last Post: 09-18-2013, 12:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •