+ Reply to Thread
Results 1 to 7 of 7

autocopy rows from one spreadsheet to another depending on the value of a cell in each row

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    autocopy rows from one spreadsheet to another depending on the value of a cell in each row

    I've got a workbook with information about products.

    In my first spreadsheet I've got all the data, the spreadsheet is named AB. The following spreadsheet, named CD, should be fill with exactly the same information of the AB spreadsheet depending on the value of one cell in AB.

    What I would like to know is a procedure or a formula which can copy and paste automatically entire rows from AB to CD depending on the value of one cell in AB, (the constrain of this shell is >0).

    At the same time I do not want blank rows in the CD.

    I don't know whether this is possible or not!!

    Thank you all in advance!!!

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: autocopy rows from one spreadsheet to another depending on the value of a cell in each

    Welcome to the forum

    from the looks of it, you probably need a VBA solution, but, you have not provided the needed information for any usable answer, FIRST>which cell in AB determines copy?
    otherwise, this is all guesswork that is almost guaranteed to NOT meet your needs

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Re: autocopy rows from one spreadsheet to another depending on the value of a cell in each

    Please find the file attached.

    My intention is to use a formula to copy automatically full rows from AB to CD depending on cells at "Column W". If the cell M in each row is greater than 0 (zero) then such formula should copy all the row to CD. If zero no action should be done.

    E.g. After typing numbers in cells, K4, K6, K8 numbers change automatically in cells W4, W6, W8. Then rows 4,6,8 should be copied in CD spreadsheet.

    I hope you I clear up my explanation!!

    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Re: autocopy rows from one spreadsheet to another depending on the value of a cell in each

    Sorry Cell W instead of M

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: autocopy rows from one spreadsheet to another depending on the value of a cell in each

    Okay, have uploaded 3 examples for you (all in the same wb, just separate sheets):
    Example 1)
    In a2 of cd:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down and across
    This works well for data set provided, however as the amount of data grows, this will start taking longer and longer to process (all the solutions will, of course, but this one in particular )
    this assumes all column headers will be in same position on cd sheet as in ab sheet

    Example 2)
    In a2 of cd (2):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down
    In b2 of cd (2):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down and across
    This will work better for larger data sets
    Assumes all columns in same position as ab sheet and that MNP No. (column a) is unique to each product

    Example 3)
    In a2 of cd (3):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down
    In b2 of cd (3):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down and across
    Similar to example 2, it assumes MNP No. is unique to each product, however, it does not assume column position is constant, and is bettr suited to a summary page where some column data may not be required, or the order of columns may be different than on sheet ab

    Hope this helps
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-22-2013
    Location
    Shanghai
    MS-Off Ver
    Excel Professional Plus 2013
    Posts
    18

    Re: autocopy rows from one spreadsheet to another depending on the value of a cell in each

    Thank you very much!!

    It works perfectly!

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: autocopy rows from one spreadsheet to another depending on the value of a cell in each

    Umm...which one?... lol
    Glad you are happy!
    and you are welcome!

+ 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. Autocopy the first cell with more than 30 characters to a different sheet?
    By Excelnoobie100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 05:20 AM
  2. [SOLVED] autocopy lowest date from other cells to another cell in the same worksheet
    By RogerRangeRover in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2012, 06:39 AM
  3. Autocopy Cell From Previously Sheet?
    By MikiMix in forum Excel General
    Replies: 2
    Last Post: 01-17-2007, 11:31 AM
  4. [SOLVED] Dynamicly change spreadsheet tab names depending on cell value
    By Mikus in forum Excel General
    Replies: 3
    Last Post: 08-13-2005, 09:05 PM
  5. Replies: 1
    Last Post: 07-21-2005, 12:05 PM

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