+ Reply to Thread
Results 1 to 8 of 8

What the best function to use for auto copying values on another worksheet

  1. #1
    Registered User
    Join Date
    03-07-2018
    Location
    AUSTRALIA
    MS-Off Ver
    2010
    Posts
    11

    What the best function to use for auto copying values on another worksheet

    Hi,
    Im new here. I'm wondering what is the best function to use to auto copy data from one sheet to another.
    Data is provided to me in columns with title however I need to copy data into a template which is not in the same column order. I want to automate copy function.
    Im wondering what is the best quickest way to do this?
    Do I need to build a macro,vba or name manger?

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: What the best function to use for auto copying values on another worksheet

    Hi anshuplillay. Welcome to the forum.

    My first thought is an INDEX/MATCH formula that can find and match appropriate columns. Without sample data this is just a guess.

    The best way to resolve questions usually requires you to upload a representative Excel workbook file (not pics or screenshots ... saves retyping data) of what you are working with and what you want the output to be. It saves time and you often get faster and more response if you do.

    Be sure to desensitize the data.

    To attach a file to your post,
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: What the best function to use for auto copying values on another worksheet

    1st, no formula can "copy" data to another location, formulas only work in the cell they reside in. Formulas only "pull" data, they cannot "push" answers.

    2nd, you could put formulas where you want he data to show, probably something like FT suggested, but to be of more help, we will need to see some sample data

    3rd, if you dont want formulas in the destination cells, then yes, you will need VBA for that.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-07-2018
    Location
    AUSTRALIA
    MS-Off Ver
    2010
    Posts
    11

    Re: What the best function to use for auto copying values on another worksheet

    thanks for your response.
    Attached is sample data. Basically Data_Entry is what is received from the business. Data then needs to be copied on our own template for upload purpose. The upload needs to be in certain format, though all the information is provided on Data_Entry sheet we need to weed though the classification and copy paste data on different upload files.

    What I want excel to do is pull data based on classification and dump on upload template.

    Thanks in advance!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

    Re: What the best function to use for auto copying values on another worksheet

    In A2 of "Template_Employee"

    =IFERROR(INDEX(Data_Entry!$B$3:$B$1000,SMALL(IF(Data_Entry!$A$3:$A$1000="EMPLOYEE",ROW(Data_Entry!$A$3:$A$1000)-ROW($A$3)+1,""),ROWS($A$3:A3))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    copy down


    Change RED range to appropriate range for other columns then enter/copy down as above


    For other template change GREEN highlighted

  6. #6
    Registered User
    Join Date
    03-07-2018
    Location
    AUSTRALIA
    MS-Off Ver
    2010
    Posts
    11

    Re: What the best function to use for auto copying values on another worksheet

    Hi John,
    When I paste the formula I don't see the curly braces however the correct data is return.
    But when I copy down other entries are not returned for EMPLOYEE.

    Can you help please.

  7. #7
    Registered User
    Join Date
    03-07-2018
    Location
    AUSTRALIA
    MS-Off Ver
    2010
    Posts
    11

    Re: What the best function to use for auto copying values on another worksheet

    Hi John,
    After few attempts I got the formula working! So happy.
    However I need to add another criteria. ie only return where ABN (column D is blank).
    Can you update the formula, it tried but couldn't get it right. Thanks

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: What the best function to use for auto copying values on another worksheet

    you can try with PowerQuery (free add-in for Ex2010 Pro Plus from MS site)

    Headers can be changed
    criteria: ABN is blank
    no formula, no vba

    (it works only if PowerQuery is installed)

+ 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. Auto copying of red cells from one worksheet to another
    By stefa_80 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-21-2015, 06:38 AM
  2. Auto-copying values from one sheet to another
    By Anthony.mr in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-30-2015, 08:33 AM
  3. Copying cells dynamically to a worksheet based on values in another worksheet
    By freelance in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2013, 01:45 PM
  4. Auto copying rows from master worksheet to multiple worksheets
    By ClairePerm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2011, 07:18 AM
  5. Auto copying from one worksheet to another in same work book
    By LiamSutherland in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2010, 03:02 AM
  6. auto increment worksheet while copying
    By ocdg678 in forum Excel General
    Replies: 2
    Last Post: 09-13-2008, 12:17 AM
  7. VBA to enable auto calculation after copying worksheet
    By nockam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2007, 01:20 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