+ Reply to Thread
Results 1 to 5 of 5

SUMIF with conditional

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    7

    SUMIF with conditional

    I have a spreadsheet with two Rows, "Hours Worked" and "Name". In the row for each Name is the number of tasks completed.

    A B C D E F
    1 Hours Worked 8 7.5 5 8 6
    2 Name1 6 4 4 4 3
    3 Name2 7 5 6 6 8

    How can I get Excel to sum the number of tasks completed for Name1 and Name 2 in Rows 2 and 3, columns B thru F, only when the "Hours Worked" number in Row 1 is = to 8? For instance in this example, Name1's total should be 10, and Name2's total should be 13...

    Thanks!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: SUMIF with conditional

    hi ERoemer, try this in row 2:
    =SUMIF($B$1:$F$1,8,B2:F2)

    then copy down

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIF with conditional

    Like this...

    =SUMIF(B$1:F$1,8,B2:F2)

    copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-31-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: SUMIF with conditional

    That worked great! Thanks!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIF with conditional

    You're welcome. Thanks for the feedback!

+ 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