Jun 07 2022 09:37 AM
I have been working for hours trying to get a formula to calculate mileage totals for three different vehicles. I need to calculate the personal and business miles for each vehicle. the ranges on my current spread sheet are C15 to C105 USE, F15 to F105 MILES and K15 to K105 Vehicle. Any help will be greatly appreciated.
Tom Jenkins
USE | MILES* | VEHICLE |
Personal | 2.5 | Junior |
Personal | 2.7 | Jeepy |
Business | 2.5 | Jeepy |
Personal | 2.7 | Boris |
Business | 2.9 | Junior |
Business | 2.7 | Boris |
Jun 07 2022 09:44 AM
=SUMPRODUCT(($K$16:$K$105=$C6)*($C$16:$C$105=D$5)*$F$16:$F$105)
You can try this formula like in the attached file.
Jun 07 2022 11:40 AM
SUMIFS provides an alternative approach
= SUMIFS(
milesData,
usageData, usageHdr,
vehicleData, vehicleHdr
)