Consulting

Results 1 to 4 of 4

Thread: Sum Values Assigned to a Name

  1. #1
    VBAX Regular
    Joined
    Jan 2018
    Posts
    35
    Location

    Sum Values Assigned to a Name

    Hello,

    I have a spreadsheet that have list tasks, assigns a name to the task, and estimated hours to complete task. Individuals can be assigned to multiple tasks. I would like to sum the total of hours an individual has assigned to them. There may be multiple individuals assigned to a single task. I tried using sumif as follows =SUMIF(LOSAP!F:F,LOSAP!C:C="*Individuals last name, First*") Column F contains the estimated hours and Column C contains each individual name. Any help is greatly appreciated. Thanks!

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    It'd be easier if you posted a small workbook with some sample data
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    =SUMIF(LOSAP!F:F,LOSAP!C:C="*Individuals last name, First*")
    =SUMIF(LOSAP!C:C,"*Individuals last name, First*",LOSAP!F:F)

    Alternately Replace "*Individuals last name, First*" With a cell reference.

    For example, Say that on sheet 1, you have a list of *LastName, FirstName* in column A, In Column B, Row 1, use the formula
    =SUMIF(LOSAP!C:C,A1, LOSAP!F:F)
    SumIf(EvaluateRange, EvaluateValue, SumRange)
    SumIf(NameList, Name, HoursList)
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  4. #4
    VBAX Regular
    Joined
    Jan 2018
    Posts
    35
    Location
    Thanks Sam T. This now works. Appreciate everyone's help!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •