+ Reply to Thread
Results 1 to 2 of 2

How to automatically copy data from one sheet to another if certain criterias are met

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    Helsinki, Finland
    MS-Off Ver
    2010
    Posts
    1

    How to automatically copy data from one sheet to another if certain criterias are met

    What would be the function/formula to automatically move data from one sheet to another AS LONG AS certain criterias are met?

    In my case:

    I have one "Master" sheet and 3 other sheets. I would like to get the data from the other sheets columns "G" and "H" IF column "L" has the same number as in the "Master" sheet.

    Annotation 2020-01-14 151457.png

    So basically if any of the other sheets has the same value in column "L" as the "Master" sheet in column "L" --> Copy the data from the same rows columns "G" and "H" to the "Master" sheets row, where the value in column "L" matches the value of column "L" in Sheet2, Sheet3 or Sheet4.

    I hope I wasn't too unclear with this :D
    Last edited by EerikS; 01-14-2020 at 09:29 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: How to automatically copy data from one sheet to another if certain criterias are met

    You will need these two formulas. Adapt the formulas to meet your requirement and change the Lookup value in Cell D1 for each new tab.
    'Project Master' is a named range in the 1st tab, the address can be edited with the 'Name Manager' in the Formula Ribbon. Pay attention to where the $ signs are in each formula. Remember with any formulas you should only need to edit the 1st formula in a range then drag across the columns then fill down the rows.
    1st Row =IFERROR(INDEX('Project Master'!B$3:B$23,MATCH($C$1,'Project Master'!$B$3:$B$23,0)),"")
    2nd row { =IFERROR(INDEX('Project Master'!B$4:B$23,SMALL(IF('Project Master'!$B$3:$B$23=$C$1,ROW('Project Master'!$B$3:$B$23)-ROW(INDEX('Project Master'!$C$3:$C$23,1,1))),$A4)),"-")}
    The 2nd one is an Array. After any changes to the formula Press Shift Ctrl Enter
    To make a NEW tab select the entire 2nd tab by clicking the grey 'corner' above row 1 and left of column A' select 'Copy, click the new 'New tab button' select the corner again and select paste. Change Cell D1.
    Attached Files Attached Files
    Last edited by BlindAlley; 01-14-2020 at 02:40 PM.
    Uploading an attachment will assist Forum Members in finding the correct Solution for you. Create a dummy worksheet if necessary, add your start data and show where / what your expected results should be. TO ADD A FILE:

    Go to 'Advanced. click on 'Manage Attachments. Select 'Browse & Choose your file, Select 'Upload and then close the Attachment window.

+ 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. Replies: 19
    Last Post: 10-16-2017, 12:34 PM
  2. [SOLVED] automatically copy data from different sheets and sequentially copy to another sheet
    By darbar76528 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-13-2017, 02:12 PM
  3. Excel - copy data to another sheet once criterias met
    By jeffond756 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2015, 12:38 AM
  4. [SOLVED] How to Automatically Copy New Data into the next sheet and have it automatically sorted??
    By ReedDOT in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2013, 10:50 AM
  5. How do I Copy certain data to another sheet-automatically
    By scrumpyjack in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-26-2013, 11:15 AM
  6. [SOLVED] Automatically copy data from one sheet to another
    By BradGe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-03-2012, 04:09 AM
  7. Replies: 5
    Last Post: 06-21-2012, 05:16 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