My first post. I have two tabs, Assets and Fuel. On the Asset tab I want to total the miles for my three vehicles, Jeep 1, Jeep 2 and Car 1. There are multiple columns on both tabs in addition to the ones I listed; I included only the bare necessities in this example.
I have tried vlookup and sumif. I am able to pull the first row that matches (i.e. Jeep 1 returns 42 rather than 117 for miles). No matter what I do, I can't get 117 for the answer, let alone the correct figure for Jeep 2 and Car 1.
Running Excel 2016.
Thank you!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Table 1-Asset[/TD]
[TD][/TD]
[TD][/TD]
[TD]Table 2-Fuel[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Vehicle[/TD]
[TD]Miles[/TD]
[TD][/TD]
[TD]Vehicle[/TD]
[TD]Miles[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]Jeep 1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 1[/TD]
[TD]42[/TD]
[TD]17.45[/TD]
[/TR]
[TR]
[TD]Jeep 2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]10[/TD]
[TD]12.01[/TD]
[/TR]
[TR]
[TD]Car 1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 1[/TD]
[TD]75[/TD]
[TD]25.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 2[/TD]
[TD]65[/TD]
[TD]14.95[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]14[/TD]
[TD]12.70[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 2[/TD]
[TD]64[/TD]
[TD]42.64[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]49[/TD]
[TD]32.75[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]13[/TD]
[TD]6.42[/TD]
[/TR]
</tbody>[/TABLE]
I have tried vlookup and sumif. I am able to pull the first row that matches (i.e. Jeep 1 returns 42 rather than 117 for miles). No matter what I do, I can't get 117 for the answer, let alone the correct figure for Jeep 2 and Car 1.
Running Excel 2016.
Thank you!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Table 1-Asset[/TD]
[TD][/TD]
[TD][/TD]
[TD]Table 2-Fuel[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Vehicle[/TD]
[TD]Miles[/TD]
[TD][/TD]
[TD]Vehicle[/TD]
[TD]Miles[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]Jeep 1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 1[/TD]
[TD]42[/TD]
[TD]17.45[/TD]
[/TR]
[TR]
[TD]Jeep 2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]10[/TD]
[TD]12.01[/TD]
[/TR]
[TR]
[TD]Car 1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 1[/TD]
[TD]75[/TD]
[TD]25.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 2[/TD]
[TD]65[/TD]
[TD]14.95[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]14[/TD]
[TD]12.70[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jeep 2[/TD]
[TD]64[/TD]
[TD]42.64[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]49[/TD]
[TD]32.75[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Car 1[/TD]
[TD]13[/TD]
[TD]6.42[/TD]
[/TR]
</tbody>[/TABLE]