Uber Routes

MARKEGANDERSON

Active Member
Joined
Apr 7, 2007
Messages
264
Hello Guys,

I am trying to come up with a formula for each Uber Routes.

For Example,
  1. Route A to B = 4.5 miles
  2. Route B to A = 4.5 miles
  3. Route A to C = 10 Miles
  4. Point C to A = 10 miles
So basically you have 10 different Points(A-J)

A4 = Pick up, C4 = Drop off
B4 = Mileage

How would I approach this?

I was thinking nested Ifs(but that's a lot of variables)

Any ideas?
Capture.JPG
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Excel Message board.xlsm
ABCDEFGHIJ
1
2MondayLocationTOFromMiles
3PickupMilesDrop Off:AAB4.5
4C5.5BBBA4.5
5Driver NameOccupantsCAC10
6DAC10
7BC5.5
8CB5.5
9AD11
10DA11
11BD6.5
12BB6.5
13CD1
14DC1
15
Cell Formulas
RangeFormula
B4B4=SUMPRODUCT(($H$3:$H$14=A4)*($I$3:$I$14=$D$4)*($J$3:$J$14))
Cells with Data Validation
CellAllowCriteria
A4List=$F$3:$F$6
D4List=$F$3:$F$6


Hi Try This!
 
Upvote 0
Thanks again for your help. B4 ==SUMPRODUCT(($H$2:$H$5=A4)*($I$2:$I$5=$D$4)*($J$2:$J$5)) is resulting in a zero.
I must be missing something?
1610901853881.png
 
Upvote 0
Value from A4 must be from the range of H2:H5
Value from D4 must be from the range of I2:I5

To avoid miss spelling Use Data Validation
In A4 =$H$2:$H$5
In D4 =$I$2:$I$5
 
Upvote 0
Can you upload your sheet using XL2BB here?
 
Upvote 0

Forum statistics

Threads
1,214,883
Messages
6,122,077
Members
449,064
Latest member
MattDRT

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