+ Reply to Thread
Results 1 to 6 of 6

Add hours from one column based on a result in another column

  1. #1
    Registered User
    Join Date
    08-20-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Add hours from one column based on a result in another column

    I familiar with using IF statements in Excel but I'm having trouble coming up with the correct formula for this one. It might not be an IF statement that I need.

    For my web design company, I am doing an internal schedule to show who is working on what projects at any time. The whole goal of this is then to be able to look at the bottom of the workbook and see how many hours are scheduled for each employee at a time. So my column E is my resource name (employee) then column G starts on dates, so G is week of 8/24, H is 8/31, I is 9/7 etc. So at the bottom I want to be able to go the whole way down column G and check to see where a certain employees name is entered and if it is entered then go over to column G and add up all lines in that column (number of hours for that project) where the employees name is entered.

    I've attached the workbook for reference.
    Attached Files Attached Files
    Last edited by nickorfanella; 08-20-2009 at 05:44 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Strange If Statement

    Welcome to the forum.

    Please take a few minutes to read the forum ruules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-20-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Add hours from one column based on a result in another column

    Title Fixed.

    Thanks,

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    re: Add hours from one column based on a result in another column

    Hello Nick,

    You can use SUMIF for this. Try this formula in G29 copied across and down

    =SUMIF($E$4:$E$26,$F29,G$4:G$26)

  5. #5
    Registered User
    Join Date
    08-20-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Add hours from one column based on a result in another column

    Think I got it...I used =SUMIF...seems to be working

  6. #6
    Registered User
    Join Date
    08-20-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Add hours from one column based on a result in another column

    Quote Originally Posted by daddylonglegs View Post
    Hello Nick,

    You can use SUMIF for this. Try this formula in G29 copied across and down

    =SUMIF($E$4:$E$26,$F29,G$4:G$26)
    Thats exactly what I needed...Thanks!

+ 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