+ Reply to Thread
Results 1 to 6 of 6

Copy Paste based on Specific Criteria

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Copy Paste based on Specific Criteria

    Hi all,

    I need help regarding the below problem. We use an excel to track opening and closing stock details month wise in an excel sheet. There would be columns stating the stock type, code, opening stock, closing stock and approved stock count for a particular stock type

    We'll enter the opening details only for the starting month of the year (i.E for Jan). For Rest all months the opening stock details should be pulled from the second table only (which would be the closing stock of prior month). We will not enter any other month's opening stock details manually.

    The stock type Stock code and approved stock remains same for every month unless if there is any addition of new stock type. The opening details should be pulled from the 2nd table based on the month chosen from the drop down. and closing details would be calculated based on the formula and other data.

    Previous month's details in the 2nd table won't change. The closing count remains same as once the month ends we'll close the books. The details in the 1st table keeps changing depending on the month selected from the drop down.

    Thank you
    Attached Files Attached Files
    Click on the star * if some1 helped you.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Copy Paste based on Specific Criteria

    The fact that your tables are one beneath the other will create problems dealing with the addition of new stock type because as you add or remove stock type, the location of the second table will keep changing. I have moved the second table to a new sheet to accommodate for this. Click on this link to download a sample file: https://app.box.com/s/rmus4h1x5yrg0uadehd1wwtcxed7exw8
    Hopefully, I have interpreted correctly what you want to do. Choose a month from the drop down list in B4.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Copy Paste based on Specific Criteria

    Hi Mumps1

    Thank u for your time and providing me with the solution.

    I want to know if the same is possible to assign to a button and do the same operation on the click of button rather than using worksheet change event.

    Thanks
    Last edited by kittu55; 08-31-2015 at 10:02 AM.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Copy Paste based on Specific Criteria

    Assign this macro to your button.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Copy Paste based on Specific Criteria

    Thanks Mumps1.

    Rep Added.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Copy Paste based on Specific Criteria

    My pleasure.

+ 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. [SOLVED] VBA - Copy and Paste data based on two criteria to specific start row and column
    By ndgo10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2014, 09:15 AM
  2. [SOLVED] Copy entire row based on 2 criteria and paste on the next blank row on a specific sheet
    By ALNER in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2014, 11:23 PM
  3. Replies: 0
    Last Post: 10-29-2013, 09:38 AM
  4. Replies: 0
    Last Post: 07-16-2013, 05:22 AM
  5. HELP! Macro to Copy specific cells from one sheet to another based on specific criteria
    By atriscritti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 11:05 AM
  6. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 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