+ Reply to Thread
Results 1 to 2 of 2

Inserting rows from one sheet into the table in another sheet under certain conditions

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Inserting rows from one sheet into the table in another sheet under certain conditions

    Hello,

    I have the following problem: 2 worksheets - the first one has a table of sales operations of Company X during the year, the second one has a table with production of the Company during the year. Some part of the data like product IDs are same in each sheet. I need to copy a row from the second sheet (for example: production of the product "03 001" at the date "05.07.2011") and insert it into the table in the first sheet (above the sale operation of the product "03 001" at the date "06.07.2011" or later), so that I have one table with production and sales like this:

    ID Operation Name Date Quantity Price
    03 001 Production Product-X 05.07.2011 15 30
    03 001 Sale Product-X 06.07.2011 10 40

    Maybe there are some ways to solve this problem using Macro. My English is not very good, so I'm sorry if my explanation of the problem is not clear enough.

    Any ideas for this problem would be much appreciated.

    Best Regards,

    Vasim

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Inserting rows from one sheet into the table in another sheet under certain conditions

    Do you have a sample file (with dummy data) that you can upload?

    To Attach a File:

    1. Click on Go Advanced.
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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