+ Reply to Thread
Results 1 to 9 of 9

SUM when values are equal to SOLVED

  1. #1
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    SUM when values are equal to SOLVED

    I have a column with years (2013, 2014, 2015) in column D2 and a list of words (Public, Employee) in column F2.

    I then have sums of money in column Q2.

    I wish to look for a specific year and word and only sum the values from Q which match that criteria, thus ignoring all other values.
    Last edited by nathanexcelhelp; 07-27-2016 at 10:47 AM.

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

    Re: SUM when values are equal to

    Like this...

    A1 = 2014
    B1 = Employee

    =SUMIFS(Q:Q,D:D,A1,F:F,B1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: SUM when values are equal to

    Try the sumifs formula. =SUMIFS(Q:Q,criteria range 1, criteria 1, criteria range 2, criteria 2) if you want two added together you can use them back to back like =sumifs(formula1)+sumifs(formula2) if for instance you wanted both public and employee.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: SUM when values are equal to

    sumifs formula
    Attached Files Attached Files
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  5. #5
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    Re: SUM when values are equal to

    Im still struggling

    Its the formulas to get the values in red im struggling with

    Add up various values.jpg

  6. #6
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    Re: SUM when values are equal to

    Was thinking something along the lines of

    =SUMIFS(Q2:Q10,D2:D10,"2014", AND F2:F10,"Public")

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

    Re: SUM when values are equal to

    You have hidden columns so the formula can not be easily drag copied!


    Entered in F16:

    =SUMIFS($Q$2:$Q$10,$D$2:$D$10,$D16,$F$2:$F$10,F$15)

    Copy down to F17

    Entered in Q16:

    =SUMIFS($Q$2:$Q$10,$D$2:$D$10,$D16,$F$2:$F$10,Q$15)

    Copy down to Q17

  8. #8
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    Re: SUM when values are equal to SOLVED

    That works great. Thanks Tony

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

    Re: SUM when values are equal to SOLVED

    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)

Similar Threads

  1. Values in a single row to be equal to values of a column
    By ExcelJWS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2014, 02:36 AM
  2. Determining if Excel values equal Access table values
    By jlynn303 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-25-2014, 09:04 AM
  3. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  4. Replies: 1
    Last Post: 09-25-2013, 10:05 AM
  5. [SOLVED] If values in a column are equal, then need to calc average of values in other columns
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2013, 02:33 PM
  6. Replies: 16
    Last Post: 11-20-2012, 11:32 AM
  7. Replies: 3
    Last Post: 09-26-2012, 09:48 AM

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