Sumifs one of the column meet the criteria

Eran2

New Member
Joined
Feb 28, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I have table with 120,000 trips.
Each trip have a column with origin city and a column with destination city.
I want so sum the the quantity column, for all trips that either the origin column=Manchester or the destination column=Manchester .

Example attached below. I want my formula to sum all the bold numbers.

origindestinationquantity
LondonManchester3,521
BristolLondon2,100
ManchesterBristol402
ManchesterManchester 900

Thanks a lot in advance!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEF
1origindestinationquantity
2LondonManchester3,521Manchester4823
3BristolLondon2,100
4ManchesterBristol402
5ManchesterManchester900
6
Main
Cell Formulas
RangeFormula
F2F2=SUM(FILTER(C2:C10,(A2:A10=E2)+(B2:B10=E2)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,121
Members
452,545
Latest member
boybenqn

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