Calculating the Percentage With Values That Change

BuildingandFleet

New Member
Joined
Dec 9, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

Please help me figure out how to calculate the percentage in a group when the values change. So, I have three different types of vehicles (T, PM & W) and three different mileage categories (0-125k, 126k-150k & 151k-250k). My goal is to forecast the mileages based on last year's 6 month and 12 month average miles driven when I fill in the current mileage. I would like for the chart to show the different percentage of my total fleet as the mileages change from one category to another. I have used conditional formatting in order to separate the mileage categories by color.

Is this possible? TY!

I would like to have the following results:

% T green
% T yellow
% T red
% PM green
% PM yellow
% PM red
% W green
% W yellow
% W red

Mileage6mth12mth
T56741297427474
T197122701241512
PM265843388448384
PM482895558970089
PM523445964474144
T565516385178351
T569346423478734
T676627496289462
T8673594035108535
T8754594845109345
W95614102914117414
T96006103306117806
T98900106200120700
T106554113854128354
T109584116884131384
T130055137355151855
T131055138355152855
PM140804148104162604
PM147932155232169732
PM184317191617206117
PM199241206541221041
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Did this come close to what you need?

Book1
ABCDEFGHIJKLMNO
1Mileage6mth12mthVehicle Type:TPMWTPMWTPMW
2T567412974274740k-125k0k-125k0k-125k126k-150k126k-150k126k-150k151k-250k151k-250k151k-250k
3T1971227012415126 Month:791,857127,21795,614261,110288,73600383,5580
4PM26584338844838412 Month:872,157149,117102,914261,110140,80400531,4900
5PM4828955589700896 Month:40.65%6.53%4.91%13.40%14.82%0.00%0.00%19.69%0.00%
6PM52344596447414412 Month:44.77%7.65%5.28%13.40%7.23%0.00%0.00%27.28%0.00%
7T565516385178351
8T569346423478734Total 6 Month:1,948,092
9T676627496289462Total 12 Month:2,057,592
10T8673594035108535
11T8754594845109345Total T 6 Month:54.05%
12W95614102914117414Total PM 6 Month:41.04%
13T96006103306117806Total W 6 Month:4.91%
14T98900106200120700
15T106554113854128354Total T 12 Month:51.17%
16T109584116884131384Total PM 12 Month:38.86%
17T130055137355151855Total W 12 Month:4.65%
18T131055138355152855
19PM140804148104162604Total 0k-125k:53.40%
20PM147932155232169732Total 126k-150k:23.76%
21PM184317191617206117Total 151k-250k:22.84%
22PM199241206541221041
Sheet1
Cell Formulas
RangeFormula
G3:I3G3=SUMIFS($B$2:$B$22,$A$2:$A$22,G$1,$B$2:$B$22,"<"&126000)
J3:L3J3=SUMIFS($B$2:$B$22,$A$2:$A$22,J$1,$B$2:$B$22,">"&125000,$B$2:$B$22,"<"&151000)
M3:O3M3=SUMIFS($B$2:$B$22,$A$2:$A$22,M$1,$B$2:$B$22,">"&150000,$B$2:$B$22,"<"&251000)
G4:I4G4=SUMIFS($C$2:$C$22,$A$2:$A$22,G$1,$C$2:$C$22,"<"&126000)
J4:L4J4=SUMIFS($B$2:$B$22,$A$2:$A$22,J$1,$C$2:$C$22,">"&125000,$C$2:$C$22,"<"&151000)
M4:O4M4=SUMIFS($B$2:$B$22,$A$2:$A$22,M$1,$C$2:$C$22,">"&150000,$C$2:$C$22,"<"&251000)
G5:O6G5=G3/SUM($B$2:$B$22)
G8:G9G8=SUM(G3:O3)
G11G11=SUM(G3,J3,M3)/G8
G12G12=SUM(H3,K3,N3)/G8
G13G13=SUM(I3,L3,O3)/G8
G15G15=SUM(G3,J3,M3)/G9
G16G16=SUM(H3,K3,N3)/G9
G17G17=SUM(I3,L3,O3)/G9
G19G19=SUM(G3:I4)/SUM(G3:O4)
G20G20=SUM(J3:L4)/SUM(G3:O4)
G21G21=SUM(M3:O4)/SUM(G3:O4)
 
Upvote 0
Good Morning Jeffrey!

I really appreciate your help with my dilemma. Please correct me if I am wrong, but as I was going over the formulas, I changed the M4 formula to include column D. Originally, I was headed in the right direction with SUMIFS, but for someone like me who does not have many hours logged in Excel, I had no chance. Thank you again for your help with this and I hope you have a great day!
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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