sumif count trips

makinmomb

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

DATE
1-Sep-18
1-Sep-18
1-Sep-18
1-Sep-18
1-Sep-18
1-Sep-18
2-Sep-18
2-Sep-18
2-Sep-18
2-Sep-18
2-Sep-18
2-Sep-18
2-Sep-18
2-Sep-18

<colgroup><col></colgroup><tbody>
</tbody>

I have this on column F
DESTINATION
KASUMBALESA
LUBUMBASHI
LUBUMBASHI
LUBUMBASHI
LUBUMBASHI
LUBUMBASHI
LUBUMBASHI
LUBUMBASHI
GOMA
LUBUMBASHI
LUSAKA
LUBUMBASHI
GOMA
KOLOWEZI

I have this on v2 onwards

DATEGOMKASKITLUBLUSNDO
1-Sep-1815
2-Sep-18251

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>

<colgroup><col></colgroup><tbody>
</tbody>

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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

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,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

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