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.

CustomerDestinationOrigin DatePieces
BobLAXCVG19/03/20181
BobCVGLAX14/03/20181
JackATLLAX14/03/20181
JackATLLAX14/03/20181
JackATLLAX14/03/20181
JackPBILAX14/03/20181
JackPBILAX14/03/20181
MarkPBIATL14/03/20181
MarkLAXJFK14/03/20181
DavidSEAJFK05/03/20181
DavidJFKSEA14/03/20181

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

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,214,833
Messages
6,121,869
Members
449,054
Latest member
juliecooper255

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