Closed Thread
Results 1 to 13 of 13

How to add data automatically from one sheet to another

  1. #1
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    How to add data automatically from one sheet to another

    Hi guys,

    Hope all is well.

    I have a question.

    I have a pivot table which summarizes the number of projects and it shows how many people that are involved in each project and how many hours they each put into the project. This can be found in tab "Pivot Table". Now, if you look at tab "Översikt" I want to reference the "project names", that will show up automatically in the tab "översikt" everytime the pivot table gets updated with new information. How the Pivot table gets updated automatically, is through the tab "Data". I have a form at the top where you can fill out employee name, project name, hours put and then you click at the top to add the information.

    Please I need help

    Is there a soul here who can help me :D

    Best regards,

    Sia!
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to add data automatically from one sheet to another

    Hello Regal, Refer your attach file. As i knowing i have workout in your file in sheet "Oversikt".

    In column "A" using formula "INDEX, MATCH, COUNTIF". If you add in data new project name, the same new project name add into Pivot & also in "Oversikt".

    In rest of sheet "1" to 42" create "sheetname" & in some of sheet first twelve in "A5" cell i modified with "DataValidation" project name.

    In those all sheets data pull out as per project name in "Oversikt". Tested in only column "C" which is highlighted.

    If you add record in "Data" sheet & go to "Oversikt" sheet, data shown as #VALUE!, but if you click on "Pivot Table" & again go to "Oversikt" sheet the data show as per formula.

    I have attach file. Kindly look into respective sheet.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: How to add data automatically from one sheet to another

    Dear AVK,

    Thank you so much for your time and help, I really appreciate it. You are the best :D

    But one question, when I open the excel paper, and "enable" to edit, the formulas in "översikt" turns to "#REF!", why does it do that? How to do I stop it from turning to "#REF!"?

    Thanks in advance AVK.

    Best regards,

    SIA

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to add data automatically from one sheet to another

    I think this can be done because of micro code, but not confirm. If anyone master in vba plz confirm.
    PHP Code: 
    ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh 

  5. #5
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: How to add data automatically from one sheet to another

    Dear AVK,

    Thanks for your quick reply.

    How do I apply that code and where?

    Thank you in advance.

    Best regards,

    SIA

  6. #6
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: How to add data automatically from one sheet to another

    Good morning dear AVK

    In tab "översikt" on "projekt 12", it shows 111 timmar? I think this number is wrong. .

    Also, it still hows "#REF!" in tab "översikt" as soon as I open the document and Excel asks me if I want to "Enable Content".

    Would really appreciate if you could help me out my dear friend!

    Best regards,

    SIA
    Last edited by Regal383; 01-23-2017 at 05:11 AM.

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to add data automatically from one sheet to another

    Dear Friend, timmar "111" : i enter for testing purpose only. Kindly remove from "12" number sheet.
    Regarding point no. 2 : Its because of micro code, (in my earlier post i mentioned that)
    From "13" onword sheet kindly select in "A5" (each sheet) project name respectively.

  8. #8
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: How to add data automatically from one sheet to another

    Dear avk

    Thank you for your reply. Now I understand better.

    But, how Do I fix the microcode, where in the VBA should I instert this code: ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh ?

    You are the best avk,

    Have a wonderful day my friend.

    Best regards,

    SIA

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to add data automatically from one sheet to another

    >Right click on sheet tab
    >click on "view code"
    >go to "module1" (double click) or any listed sheet name

  10. #10
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: How to add data automatically from one sheet to another

    Dear AVK,

    I did as you told me to. I went to sheet tab "Översikt", right click, "view code", then I went to module 1 and pasted the code. After I pasted the code, it still says #REF! in the sheet tab "översikt". Please look at attached screen shot.
    Your Messagev
    Attached Images Attached Images

  11. #11
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to add data automatically from one sheet to another

    I am not familier with vba micro. Any one plz assist.

  12. #12
    Registered User
    Join Date
    11-26-2015
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    44

    Re: How to add data automatically from one sheet to another

    Hi Avk,

    Now I am thinking, is there a way around VBA? For instance, take a look at my attachment.

    I have a pivot table, sheet name "pivot table", and then I have a sheet name, "data", where I fill out the persons name, project name and then at the top "Klicka här för att lägga..." is just a macro command. As you fill out the information and then click on the box, the information will appear below in the table, and the pivot table. In addition, I have added information at the sheet name, "pivot table" to the right of it, you can see information of every week of the month from januari week 1 2017 to 2018. The numbers are stating total number of hours which are references and summurization of hours from each week, this derives from sheet names "1", "2", and "3" and so forth.

    My question is, when I fill out information, in the sheet name "data", how can i make automatically that I will show up in "sheet" pivot table, and similiar references i made, but instead show up automatically. I tried with "show report filter pages" which will show every project in its own sheet, but how do I manage to make it show up like that automatically when I fill out information in the sheet name "data"?
    Best regards

    SIA
    Attached Files Attached Files
    Last edited by Regal383; 01-23-2017 at 09:26 AM.

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to add data automatically from one sheet to another

    This is the same one that you started here....http://www.excelforum.com/showthread...t=#post4561174

    If you have supplementary questions then you should stick to the same thread since those who helped you in the previous one will see the request and be in a better position to help you. In addition note the answer I gave you in that thread.

    You should seriously consider keeping all the data you currently hold in individual tabs in the single sheet database I described.
    Put together a sample test single sheet database that has an additiona column to hold whatever the current tab names are, upload it and then ask the supplementary questions.

    This thread will be closed. Now post in your original above.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-01-2015, 09:38 PM
  2. Replies: 6
    Last Post: 09-22-2014, 05:57 AM
  3. Replies: 5
    Last Post: 02-09-2014, 08:29 PM
  4. Replies: 5
    Last Post: 07-10-2013, 02:33 PM
  5. [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
  6. Replies: 0
    Last Post: 03-04-2013, 03:25 PM
  7. Replies: 0
    Last Post: 05-29-2009, 09:42 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