+ Reply to Thread
Results 1 to 8 of 8

Formula that Sums total for only rows that contain a certail value?

  1. #1
    Registered User
    Join Date
    04-09-2015
    Location
    Ohio
    MS-Off Ver
    2014
    Posts
    3

    Formula that Sums total for only rows that contain a certail value?

    Please see the attachted picture.

    I trying to calculate the total amounts for all purchases that are gas, misc., groceries/dining, debit vs credit.

    How do i go about doing this?
    Attached Files Attached Files
    Last edited by baumerr1; 04-09-2015 at 04:02 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Formula that Sums total for only rows that contain a certail value?

    the picture hasnt been displayed but take a look at SUMIF function to see if that helps you, ideally if you require more help then uploading your workbook will make it easier to understand.
    If someone has helped you then please add to their Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Formula that Sums total for only rows that contain a certail value?

    Hi Baumerr,

    Welcome to the forum!!!

    You can simply use SUMIFS function to get your expected result. Refer the following formula - "=SUMIFS(sum_range (column for which you wanted to get the total), criteria_range1 (select your range of criteria in your case it will be list of purchases),criteria1 (make unique list of purchases for which you wanted to get the total and select it).

    Assuming you have your sum range from column C2, your criteria range from column B2 and you have unique list of purchases from column D2 so your function will look like somewhat..

    =SUMIFS(C:C,B:B,$B2)

    Let me know if it works for your or please upload your sample file to get your answer more quickly.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Registered User
    Join Date
    04-09-2015
    Location
    Ohio
    MS-Off Ver
    2014
    Posts
    3

    Re: Formula that Sums total for only rows that contain a certail value?

    I attached the excel file above.

    I don't really understand the SUMIF formula.
    Last edited by baumerr1; 04-09-2015 at 02:22 PM.

  5. #5
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Formula that Sums total for only rows that contain a certail value?

    Please refer the attachment to see your expected result.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Formula that Sums total for only rows that contain a certail value?

    Quote Originally Posted by baumerr1 View Post
    I attached the excel file above.

    I don't really understand the SUMIF formula.
    SUMIF basically gives you sum for different criteria you have taken in formula.

  7. #7
    Registered User
    Join Date
    04-09-2015
    Location
    Ohio
    MS-Off Ver
    2014
    Posts
    3

    Re: Formula that Sums total for only rows that contain a certail value?

    Awesome, thank you so much... I don't think I would ave figured that out on my own.

  8. #8
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Formula that Sums total for only rows that contain a certail value?

    Hi baumerr,

    Please take few seconds to mark this thread as SOLVED and say Thanks to the person by adding *Add Reputation who helped you.

    Cheers!!!

+ 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. [SOLVED] Macro to Create Total/Partial Sums
    By cckaesar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-06-2015, 10:32 AM
  2. Independently variable entries, total sums to 100%
    By joefrankenheimer in forum Excel General
    Replies: 4
    Last Post: 05-14-2012, 08:47 AM
  3. Counting names, total time, and comparing sums
    By WillGabriel in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 11-27-2007, 04:19 PM
  4. Giving a certail value in one cell and getting details of the value from Sheet
    By subhojitdas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2007, 12:19 AM
  5. [SOLVED] add non-contiguent sums in one column to a Grand Total
    By Ryan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2006, 07: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