+ Reply to Thread
Results 1 to 27 of 27

Gahtering information from one master sheet to others depending on given information

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Gahtering information from one master sheet to others depending on given information

    Hi.
    I'm trying to do the following at my work:

    Use a master sheet where some employees type in information regarding projects. This sheet will be protected so that only some can type in information. (this is OK)
    We want to create a database regarding completed and ongoing projects. How can I make Excel use information from the master sheet to copy information to the sheet we want without us updating our status twice?

    Example:

    Sheet 1 - Master - Project X - Ongoing | Project Z - Completed
    Sheet 2 - Ongoing - Project X - Ongoing (information gathered automatically)
    Sheet 3 - Completed - Project Z - Completed (information gathered automatically)

    Sheet 2 and 3 will be used in reporting to project managers and customers.


    Hope this is enough information for someone to help me.

    Thanks in advance!

  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: Gahtering information from one master sheet to others depending on given information

    Your request is not very clear. Why dont you attach a sample file with an expected output tab?

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    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]

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Ok Hope this will do.
    Attached Files Attached Files

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

    Re: Gahtering information from one master sheet to others depending on given information

    Your file just has the headings. Why not have some data input, so we can understand what the data looks like and how you want the output to be ?

  5. #5
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Sorry.. Is it possible to use numbers like 1 & 2 to set "status"? Like the conditional formatting function, just a bit more advanced...

    I'm really sorry for the lack of information, I'm from Norway so my english isn't that good.
    Attached Files Attached Files

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

    Re: Gahtering information from one master sheet to others depending on given information

    How do we determine which projects are delivered? Do we have to check if the date follows before today's date?

  7. #7
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    No, that will be done manually..

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

    Re: Gahtering information from one master sheet to others depending on given information

    So where do you want the status to be updated? If i understand correctly, depending on the status, the projects need to be moved to the respective sheets right?

  9. #9
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Yeah, thats right. So the information will appear on the respective sheet - either as an ongoing or delivered - and on the master sheet.

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

    Re: Gahtering information from one master sheet to others depending on given information

    Ok, your sample file does not have the status column. To avoid any future double work, can u tell me where the status data will be updated? which column of the master sheet?

  11. #11
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Hehe thats right.. I thought that we could column D on the master sheet and use number 1 & 2 as codes. Does it work that way? I'm open to other suggestions.

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

    Re: Gahtering information from one master sheet to others depending on given information

    You can have a dropdown in column D which will contain Ongoing & Delivered on separate lines. The user can select which they need and accordingly the data can be copied over. If you have 1 & 2, it can be confusing. May not be now but later when you have more status codes.

  13. #13
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Ok. That sounds like a good solution.. So is it easier to just copy each project into the respective sheet rather then making it like an automatic feature?

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

    Re: Gahtering information from one master sheet to others depending on given information

    The automatic feature can be messy, specially if you change the status from ongoing to delivered. Then the record needs to be removed from one sheet and put in another. Instead, you can have a button on the master sheet. When you click on it, the 2 tabs for ongoing and delivered will be cleared, except the headers. All the data from your master sheet will be copied to the 2 tabs depending on the status.

    What do you think?

  15. #15
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    That sounds incredible. I agree that my first solution can be quite messy. How do I add a button with your feature?

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

    Re: Gahtering information from one master sheet to others depending on given information

    I will provide you a code shortly and instructions on how to add the button.

  17. #17
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Great, thanks!

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

    Re: Gahtering information from one master sheet to others depending on given information

    This is the code. I have also attached the sheet with the button.
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Superb!!

    But there seems to be a problem when I copy the code into my other workbook.

    Worksheets("Delivered projects").Range("A6:C" & lrow).ClearContents

    Solution? .. This function was absolutely awesome!

  20. #20
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Forgot to mentiont the run time error message: "Cannot change part of merged cell"

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

    Re: Gahtering information from one master sheet to others depending on given information

    Do you have any merged cells in the delivered projects sheet?

  22. #22
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Ha-ha.. Funny.. Yeah, there was a hidden merged cell. Now it works perfectly! Thank you VERY VERY much!!

  23. #23
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Had to re-open the thread.. I stumbled upon a problem..

    If I press "Update" mutliple times it duplicates some of the cells, and only one time. It also removes information writen on line one (my headlines) .. How can I make it stop? The only thing I have edited in my workbook are cell references..

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

    Re: Gahtering information from one master sheet to others depending on given information

    I will need to see the code that you have modified. I clicked on Update several times and everything was fine. Please post your code here.

  25. #25
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    Please Login or Register  to view this content.
    As you can see I edited the status row from C to V and chose to use column A to F instead of A to D..

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

    Re: Gahtering information from one master sheet to others depending on given information

    Try this
    Please Login or Register  to view this content.

  27. #27
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Gahtering information from one master sheet to others depending on given information

    It still duplicates.. At least my headings are intact.. I'll try to put in the data all over to check.

    Edit:

    Still duplicates.. It doesn't mather.. It's not that many. I can just hide the duplicated rows.. Isn't there a formula for this? ..

    2nd edit:

    No problem highlighting the entire worksheet and use the button "Remove duplicates" ;-)

    Thanx for the help!!!
    Last edited by maximelling; 04-25-2012 at 01:43 AM.

+ 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