More information
I am trying to have a cell return a value based on multiple conditions. From the table below:
[TABLE="width: 389"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project[/TD]
[TD]Origin[/TD]
[TD]Destination[/TD]
[TD]miles[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Alpha[/TD]
[TD]washington[/TD]
[TD]california[/TD]
[TD="align: right"]1500[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Alpha[/TD]
[TD]michigan[/TD]
[TD]california[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Alpha[/TD]
[TD]atlanta[/TD]
[TD]ohio[/TD]
[TD="align: right"]750[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Alpha[/TD]
[TD]chicago[/TD]
[TD]ohio[/TD]
[TD="align: right"]356[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Bravo[/TD]
[TD]nashville[/TD]
[TD]pennsylvania[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Bravo[/TD]
[TD]alabama[/TD]
[TD]pennsylvania[/TD]
[TD="align: right"]590[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Bravo[/TD]
[TD]florida[/TD]
[TD]georgia[/TD]
[TD="align: right"]875[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Bravo[/TD]
[TD]texas[/TD]
[TD]georgia[/TD]
[TD="align: right"]250[/TD]
[/TR]
</tbody>[/TABLE]
I want to have a cell (in another sheet) return the mileage by simply inputting the Project name, origin and destination.
So, the formula should first narrow to the matching project in A2 below, then match the origin in B2 below, then match the destination in C2 below and then return the corresponding mileage in D2 below. What formula do I need to put into D2??
[TABLE="width: 364"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]project[/TD]
[TD]origin[/TD]
[TD]destination[/TD]
[TD]miles[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Alpha[/TD]
[TD]Michigan[/TD]
[TD]California[/TD]
[TD]RETURNED MILEAGE[/TD]
[/TR]
</tbody>[/TABLE]
Help!
I am trying to have a cell return a value based on multiple conditions. From the table below:
[TABLE="width: 389"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Project[/TD]
[TD]Origin[/TD]
[TD]Destination[/TD]
[TD]miles[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Alpha[/TD]
[TD]washington[/TD]
[TD]california[/TD]
[TD="align: right"]1500[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Alpha[/TD]
[TD]michigan[/TD]
[TD]california[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Alpha[/TD]
[TD]atlanta[/TD]
[TD]ohio[/TD]
[TD="align: right"]750[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Alpha[/TD]
[TD]chicago[/TD]
[TD]ohio[/TD]
[TD="align: right"]356[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Bravo[/TD]
[TD]nashville[/TD]
[TD]pennsylvania[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Bravo[/TD]
[TD]alabama[/TD]
[TD]pennsylvania[/TD]
[TD="align: right"]590[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Bravo[/TD]
[TD]florida[/TD]
[TD]georgia[/TD]
[TD="align: right"]875[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Bravo[/TD]
[TD]texas[/TD]
[TD]georgia[/TD]
[TD="align: right"]250[/TD]
[/TR]
</tbody>[/TABLE]
I want to have a cell (in another sheet) return the mileage by simply inputting the Project name, origin and destination.
So, the formula should first narrow to the matching project in A2 below, then match the origin in B2 below, then match the destination in C2 below and then return the corresponding mileage in D2 below. What formula do I need to put into D2??
[TABLE="width: 364"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]project[/TD]
[TD]origin[/TD]
[TD]destination[/TD]
[TD]miles[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Alpha[/TD]
[TD]Michigan[/TD]
[TD]California[/TD]
[TD]RETURNED MILEAGE[/TD]
[/TR]
</tbody>[/TABLE]
Help!
Last edited: