Skip to main content

The Excel Formula : SUMIF



Dear Friends.
We sometimes required to sum the value in the given range with certain criteria. It is very painful and time taking tasks if you have to do this manually, specially in a large database. So, here you will find the ways to get the output within seconds using the Excel inbuilt formulas.

ColumnC
ColumnD
ColumnE
Row3
Item
Date
Cost
Row4
Brakes
01-Jan-98
80
Row5
Tyres
10-May-98
25
Row6
Brakes
01-Feb-98
80
Row7
Service
01-Mar-98
150
Row8
Service
05-Jan-98
300
Row9
Window
01-Jun-98
50
Row10
Tyres
01-Apr-98
200
Row11
Tyres
01-Mar-98
100
Row12
Clutch
01-May-98
250
Total cost of all Brakes bought.

160
 =SUMIF(C4:C12,"Brakes",E4:E12)
Total cost of all Tyres bought.

325
 =SUMIF(C4:C12,"Tyres",E4:E12)
Total of items costing £100 or above.
1000
 =SUMIF(E4:E12,">=100")
Total of item typed in following cell.
service
450
 =SUMIF(C4:C12,E18,E4:E12)
What Does It Do ?






This function adds the value of items which match criteria set by the user.
Syntax







=SUMIF(RangeOfThingsToBeExamined,CriteriaToBeMatched,RangeOfValuesToTotal)
=SUMIF(C4:C12,"Brakes",E4:E12)
This examines the names of products in C4:C12.
It then identifies the entries for Brakes.
It then totals the respective figures in E4:E12
 =SUMIF(E4:E12,">=100")
This examines the values in E4:E12.
If the value is >=100 the value is added to the total.
Formatting






No special formatting is needed.
For any confusion, feel free to comment or mail at sharma.ctc@gmail.com

Comments

  1. Thanks for sharing this blog Very useful Post. Choose the best Vat registration Company in Dubai

    fta vat registration
    dubai vat registration

    ReplyDelete

Post a Comment

Popular posts from this blog

Password Protect your USB Flash Drive without any software....

I was trying to protect my USB flash drive from a long time but didn’t find anything nice. Almost all the software were either not giving full features or were asking for money to do so and give full benefits. One software called Truecrypt was nice but not giving me simple password protection feature. Anyways, now I submit one good info with all who want to simply password protect their USB flash drive / pen drive without all unnecessary softwares. Steps to protect your USB flash drive 1.       Insert your pendrive. 2.       Open the drive 3.       Create a folder (lets name is ABCD) and keep all your data in it. (You can partially protect this disk too by moving your important / secure data only into this folder) 4.       Remember a password. Lets name is 12345 5.       Now open a note pad and copy and paste the following text into it: -...

List out the details of files in a specified folder - automatically through excel without vba.

Hiii. I was preparing a list of files (govt. forms) but it was difficult to manually copy the file name and paste into the excel sheet as there are more than 300 files in that folder. After 8-10 copy paste I thought to do it automatically and the time saved is now used for writing this blog. LOL Well, You can actually automatically list out the names of files in a specified folder into excel, assume that in a school there are 1000 students and their admit card is in one folder.. and for some reasons you need to list out it into an excel sheet.. So how you will do it........... Here is a simple and superb way to do that........ These are the steps assuming your folder name is "Admit Card" and it is stored in D Drive... 1. Open a new excel file 2. Click on "Formulas" and then "Define Naem" 3. In the name field type AdmitCardList    (You can put any other name also) 4. In refers to Column type: -  =FILES("D:\Admit Card\*.*")&T(NOW...

How to Calculate Detention of Vehicles considering the complex Date & Time in excel

Some times it is difficult to calculate some cases which deals with Date & Time and calculating the Detention charges is one of them. Please download the excel file (and do remember that it has been prepared on the basis the following basis.... which can be changed with the help of formulas) https://drive.google.com/file/d/0Bw1qNoQ8YzHZY3E5VVl1SUduWm8/view?usp=sharing