+ Reply to Thread
Results 1 to 6 of 6

How to make IF than SUM formula?

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Belgrade
    MS-Off Ver
    2007
    Posts
    3

    How to make IF than SUM formula?

    I have simple table for entering date and value of fuel receipt for company cars. What I would like to do is to make formula which will automatically SUM all the values in column F for given type of fuel (LPG, PETROL, DIESEL) in column E.

    THANK YOU SO MUCH

    Fuel.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: How to make IF than SUM formula?

    Change the values in column E from

    TOTAL/gas
    TOTAL/petrol
    TOTAL/disel


    to

    gas
    petrol
    disel



    and use this formula in F14, copy down
    =SUMIF($E$3:$E$11,E14,$F$3:$F$11)
    You can type Total into D14, D15, and D16 if you need to display the word TOTAL
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: How to make IF than SUM formula?

    F14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    10-21-2014
    Location
    Belgrade
    MS-Off Ver
    2007
    Posts
    3

    Re: How to make IF than SUM formula?

    Guys thank you so much. But it doesn't work
    I have tried both solutions and I am getting error

    Screenshot 2014-10-21 22.16.42.jpg
    Last edited by wc420pro; 10-21-2014 at 04:20 PM.

  5. #5
    Registered User
    Join Date
    10-21-2014
    Location
    Belgrade
    MS-Off Ver
    2007
    Posts
    3

    Re: How to make IF than SUM formula?

    Guys :-) I have made it!!!!

    THANK YOU!!!!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: How to make IF than SUM formula?

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Make formula disregard other formula entry if blank
    By DHFE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2014, 04:23 AM
  2. Alternative Formula for multiples IFs (to make my formula shorter)
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2013, 12:37 AM
  3. [SOLVED] Formula whit INDEX and MATCH. I try to make this formula to result.
    By Anka in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2012, 06:26 PM
  4. Formula question - cell value to make a formula true?
    By jabadeer in forum Excel General
    Replies: 3
    Last Post: 07-19-2011, 12:07 PM
  5. Replies: 7
    Last Post: 03-25-2011, 02:44 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