Hi everyone,
I am trying to use a version of the SUMIF function to convert 'one-way' flight segments to 'round trip' segments (e.g. sum all flights trips Atlanta - Nashville, and Nashville - Atlanta into one row 'Atlanta - Nashville'.
The formulas I come up are quite extensive and long, except the one below which seems ideal, but it still gives me incorrect values as the two wildcards pick up all instances where Atlanta appears + all instances where Nashville appears. The data returned is obviously wrong.
=SUM(SUMIFS(sum_range,criteria_range,{"*Atlanta*","*Nashville*"}))
What I want is ALL instances where Atlanta AND Nashville appear. Is that possible with wildcards?
Also - I am trying to use cell reference (instead of having to type cities "*manually*" I understand you can cell reference with a wildcard by doing "*"A1"*" but when adding another wildcard it doesn't seem to work. Thoughts?
Thanks in advance,
I am trying to use a version of the SUMIF function to convert 'one-way' flight segments to 'round trip' segments (e.g. sum all flights trips Atlanta - Nashville, and Nashville - Atlanta into one row 'Atlanta - Nashville'.
The formulas I come up are quite extensive and long, except the one below which seems ideal, but it still gives me incorrect values as the two wildcards pick up all instances where Atlanta appears + all instances where Nashville appears. The data returned is obviously wrong.
=SUM(SUMIFS(sum_range,criteria_range,{"*Atlanta*","*Nashville*"}))
What I want is ALL instances where Atlanta AND Nashville appear. Is that possible with wildcards?
Also - I am trying to use cell reference (instead of having to type cities "*manually*" I understand you can cell reference with a wildcard by doing "*"A1"*" but when adding another wildcard it doesn't seem to work. Thoughts?
Thanks in advance,