sumif count trips

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
I have this on column B

[TABLE="width: 67"]
<colgroup><col></colgroup><tbody>[TR]
[TD]DATE[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[/TR]
</tbody>[/TABLE]

I have this on column F
[TABLE="width: 118"]
<colgroup><col></colgroup><tbody>[TR]
[TD]DESTINATION[/TD]
[/TR]
[TR]
[TD]KASUMBALESA [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]GOMA [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]LUSAKA [/TD]
[/TR]
[TR]
[TD]LUBUMBASHI [/TD]
[/TR]
[TR]
[TD]GOMA [/TD]
[/TR]
[TR]
[TD]KOLOWEZI

I have this on v2 onwards

[TABLE="width: 357"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD]DATE[/TD]
[TD]GOM[/TD]
[TD]KAS[/TD]
[TD]KIT[/TD]
[TD]LUB[/TD]
[TD]LUS[/TD]
[TD]NDO[/TD]
[/TR]
[TR]
[TD]1-Sep-18[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2-Sep-18[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

I want formula on w2 rightwards drag down to do the
count automatically , I have shortened the name of the
locations , but assume the names are exactly in long length
so that the sumif catches the count of trips

Moto of the formula count trip to destination date wise without
computing them manually
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Book1
VWXYZAAAB
1DATEGOMAKASUMBALESAKITLUBUMBASHILUSAKANDO
21-Sep-18010500
32-Sep-18200410
Sheet1
Cell Formulas
RangeFormula
W2=COUNTIFS($B$2:$B$15,$V2,$F$2:$F$15,W$1)
X2=COUNTIFS($B$2:$B$15,$V2,$F$2:$F$15,X$1)
Y2=COUNTIFS($B$2:$B$15,$V2,$F$2:$F$15,Y$1)
Z2=COUNTIFS($B$2:$B$15,$V2,$F$2:$F$15,Z$1)
AA2=COUNTIFS($B$2:$B$15,$V2,$F$2:$F$15,AA$1)
AB2=COUNTIFS($B$2:$B$15,$V2,$F$2:$F$15,AB$1)
copy down
 
Upvote 0
works with this on w2 drag right but does not work on copy down

=COUNTIFS($B$2:$B$1000,$V3,$F$2:$F$1000,W$2)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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