SUMIFS with multiple criteria in different rows

eldeartho

New Member
Joined
Mar 13, 2019
Messages
3
Hi everyone,

Apologies I seem to be stuck on what I thought would be a simple formula.

I have a large dataset of customers taking flights (one ways in the dataset) and I am trying to calculate how many are 'most likely' round trip flights (matching by customer name then origin to destination from different rows in the dataset)

The data is laid out below whereby Bob and David would each count as 1 roundtrip but i can't get sumif/s to work.

any advice much appreciated.

[TABLE="width: 485"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Customer[/TD]
[TD]Destination[/TD]
[TD]Origin[/TD]
[TD] Date[/TD]
[TD]Pieces[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]LAX[/TD]
[TD]CVG[/TD]
[TD]19/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]CVG[/TD]
[TD]LAX[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]ATL[/TD]
[TD]LAX[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]ATL[/TD]
[TD]LAX[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]ATL[/TD]
[TD]LAX[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]PBI[/TD]
[TD]LAX[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD]PBI[/TD]
[TD]LAX[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Mark[/TD]
[TD]PBI[/TD]
[TD]ATL[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Mark[/TD]
[TD]LAX[/TD]
[TD]JFK[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]SEA[/TD]
[TD]JFK[/TD]
[TD]05/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]David[/TD]
[TD]JFK[/TD]
[TD]SEA[/TD]
[TD]14/03/2018[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Excellent! many thanks.

Is there a way to do the same but calculate the number by the customer name:
Bob = 1
Jack = 0
Mark = 0
David = 1
 
Upvote 0

Forum statistics

Threads
1,225,761
Messages
6,186,893
Members
453,383
Latest member
SSXP

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