sum and count ifs

flychic

New Member
Joined
Nov 8, 2017
Messages
5
Hi, I'd like to know if a cell equals a certain criteria, what the total number is of said criteria. For example, if column A is number of flights, column B is the date, and column C is the size of wing flown - I want to know if the size of wing flown is "10,5"; how many flights were completed (total). What formula will add up column A if C = "10,5"


A B C
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
# flightsdatewing size
211/7/1710,5
711/4/1710,5
211/2/1710,5
110/30/1716
110/29/179
610/29/1710,5
210/28/1742
310/28/179
610/28/1710,5

<colgroup><col style="width: 100px"><col width="100"><col width="100"></colgroup><tbody>
</tbody>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Sumif you are totaling numbers in flights column. Countif if not summing # flights. Here's sumif:


Book1
ABC
1FlightsDateWing Size
22.0011/7/201710,5
37.0011/4/201710,5
42.0011/2/201710,5
51.0010/30/201716
61.0010/29/20179
76.0010/29/201710,5
82.0010/28/201742
93.0010/28/20179
106.0010/28/201710,5
11
1223
Sheet1
Cell Formulas
RangeFormula
A12=SUMIF(C2:C10,"10,5",A2:A10)
 
Upvote 0
@gvillepa - that's the one, thank you so much!! :)

Sumif you are totaling numbers in flights column. Countif if not summing # flights. Here's sumif:

ABC
1FlightsDateWing Size
22.0011/7/201710,5
37.0011/4/201710,5
42.0011/2/201710,5
51.0010/30/201716
61.0010/29/20179
76.0010/29/201710,5
82.0010/28/201742
93.0010/28/20179
106.0010/28/201710,5
11
1223

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
A12=SUMIF(C2:C10,"10,5",A2:A10)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
One more scenario - if Column D states the name of a wing, how do I calculate the sum of that type of wing? For example, if I want to know how man flights are on the 21 Hook, how do I determine the difference between the 21 Goose?


<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
ABCD
1FlightsDateWing SizeName
2211/7/201710,5Goose
3711/4/201710,5Goose
4211/2/201710,5Goose
5110/30/201721Goose
6110/29/201721Hook
7610/29/201710,5Goose
8210/28/201742Twin
9310/28/201721Hook
10610/28/201721Goose
11
1223

<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="100"><col width="100"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,935
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top