+ Reply to Thread
Results 1 to 6 of 6

Add/remove names in project (IF-Function)

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

    Add/remove names in project (IF-Function)

    Hello everyone,

    I am stuck, literally stuck. Unfortunately, I am the only one in my company who knows how excel works. I am a rookie and can do calculations on a basic level. I would trully appreciate if someone could help me...please.

    Thing is, I have created an project sheet to show how many hours each person spends on a specific project. This can be found in the "Översikt" tab, which shows the "persons name" at the top, also to the a summarization of how many hours each put into each project.

    My problem is, if you click on the "person" tab, I will show from A8 - A56, the persons name, each week/month, and how many hours they put in each project. This info is gathered further down below the excel sheet, from A244 to A341.

    Now, if we look at Alexander Pavlov (just random names), you can see in C244 that I made a "IF" function which gathers information from all the other tabs: 1-40 (each number on the tab represents a project), this function gathers info from the other tabs, which summurizes for me how many hours each spends on a certain projecet. My problem is, how can I add new people without the function messing up the whole excel document? How do I add/remove people without the excel function going balastic?

    Please, can you show me a easy function with an example in my excel document?

    Thanks in advance.

    All the best,

    Sia!
    Attached Files Attached Files

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

    Re: Add/remove names in project (IF-Function)

    Sorry guys, above is the wrong file. I have attached the correct file in this attachment. I tried to add a name (highlighted in yellow) but the function wont add up or show the hours worked in.

    Thank you appreciate it.

    Sia :D
    Attached Files Attached Files

  3. #3
    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: Add/remove names in project (IF-Function)

    Hi

    With respect you are making the same mistake that I see time and time again. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments.

    A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it. Yours exhibits all those features.

    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round.
    You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    So, and if your company is at all serious about this, before you get too far you should create a single sheet database that contains the following columns

    Date
    Name '*
    Function '*
    Project No. '*

    The * values could be Validation drop down cells from which you could pick values. The way I normally arrange these things is to have a single data entry row above the database in which the new values are entered, then a button which runs a macro that adds the new record to the database.

    See the attached.
    I've added three sheets. A data sheet, a variables sheet where you would maintain staff and project names and a pivot table
    To add data use the 4 cells at the top and click the button above. The new record will get added to the data.

    The Pivot Table is just one view at the moment. However since it's a PT you can pivot it to show other relationships
    Attached Files Attached Files
    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.

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

    Re: Add/remove names in project (IF-Function)

    Dear Richard,

    First and foremost, I can't thank you enough my dear friend! I really appreciate you and your time, also for the very nice example you attached. It makes things so much easier for me.

    I have some questions which hopefully will make this easier for me to understand. My question is and I would really appreciate it if you could show me step by step, with screenshots maybe, how you did the "Click to add information" in the data tab, I know you used "Assign Macro" and developer, but what commands did you put in. Thanks in advance :D

    Also, for instance, a person can maxium work 40 hours per week in a project (which should be shown in green, if this person works less than 40 hours week it should be shown in yellow), if they were to work more than 40 hours, it should show in the color red. How do I create this?

    Once again dear Richard, I thank you with all my soul! You deserve nothing but the best!

    Best and dearest regards!

    Sia :D
    Last edited by Regal383; 01-17-2017 at 06:35 AM.

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

    Re: Add/remove names in project (IF-Function)

    Lastly,

    I really like your Pivot Table. How do I add for instance, week 1 January Alex Pav will work 2 hours, week 2 January AP will work 5 hours and so fort. In other words, I try to delegate the amount of hours per week. Lastly, how do I create a sheet that shows:

    Project 1 has 5 people working on it with total 100 hours? So that this info keeps updating whenever I add new people and so forth?

    Thanks in advance, and wish you all the best!

    Sia :D

    PLS, anyone help me out!
    Last edited by Regal383; 01-18-2017 at 05:09 AM.

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

    Re: Add/remove names in project (IF-Function)

    I would greatly appreciate if anyone could help me out please.

    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-24-2017 at 03:33 AM.

+ 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. Remove all code from VB Project
    By stuartgb100 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-05-2015, 01:47 AM
  2. Need to copy store names from sheet1 to sheet3 and remove duplicate names
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2014, 08:47 AM
  3. Replies: 1
    Last Post: 10-06-2014, 09:44 AM
  4. [SOLVED] Grouping project names!!!
    By devpp in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2013, 06:20 AM
  5. [SOLVED] Function that concatenates multiple sub-project descriptions based on project code
    By markbpi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 06:49 PM
  6. Remove password from vba project
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2012, 04:28 AM
  7. Remove password from VBA project
    By Brisbane Rob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2006, 06:15 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