Fuel Calc problem

mikeba

New Member
Joined
Jul 18, 2023
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
Hello,

So I would like to have excel sheet calculate how much fuel is needed for an airplane sight seeing flight.
There is a 10 hour window for the trip to be completed. Any delay from scheduled departure time will result in a trip being shortened by the amount of time delayed.
If the flight is not delayed it will use 4000 lbs of fuel and fly over every sight seeing point.
The airplane burns 400 lbs of fuel per hour.
The airplane has 3 fuel tanks. Let's call them tanks A, B, and C. Tank A capacity is 2,000 lbs, tank B is 1,000 lbs, and tank C is also 1,000 lbs.
Based on time delay, I want to have excel show how much fuel is required for flight and how much fuel is required in each tank.
If a tank will not require fuel then I want the cell to read "empty", and if the tank is full to read "full", otherwise show fuel needed in that tank.
Tank A is filled first, then B tank, and finally C tank in that order.

Thanks for any suggestions on formulas.

Mike
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Does this get you close to your goal?

Book2
ABCDEFGHIJ
1Gallons Per Hour:400Capacity:200010001000
2
3Flight NumPlanned Departure DatePlanned Departure TimeActual Departure TimeExpected Flight TimeActual Flight TimeTotal Fuel NeededTank ATank BTank C
412347/18/20237:007:2510:009:343,830.272,000.001,000.00830.27
Sheet1
Cell Formulas
RangeFormula
D4D4=IF(B4=TODAY(),MAX(C4,NOW()-INT(NOW()),C4))
F4F4=C4+E4-D4
G4G4=F4*24*GPH
H4H4=MIN(G4,TankACap)
I4I4=MIN(G4-H4,TankBCap)
J4J4=MIN(G4-H4-I4,TankCCap)
Named Ranges
NameRefers ToCells
GPH=Sheet1!$C$1G4
TankACap=Sheet1!$H$1H4
TankBCap=Sheet1!$I$1I4
TankCCap=Sheet1!$J$1J4
 
Upvote 0
I changed a couple cells. I forgot to account that you needed Empty put in the tank cells if 0 fuel was needed for that tank

Book2
HIJ
3Tank ATank BTank C
42,000.001,000.00803.15
Sheet1
Cell Formulas
RangeFormula
H4H4=MIN(G4,TankACap)
I4I4=IF(MAX(MIN(G4-H4,TankBCap),0)=0,"Empty",MAX(MIN(G4-H4,TankBCap),0))
J4J4=IF(MAX(MIN(G4-H4-I4,TankCCap),0)=0,"Empty",MAX(MIN(G4-H4-I4,TankCCap),0))
Named Ranges
NameRefers ToCells
TankACap=Sheet1!$H$1H4
TankBCap=Sheet1!$I$1I4
TankCCap=Sheet1!$J$1J4
 
Upvote 0
Sorry for the iterations. I changed the cell format for Expected Flight Time and Actual Flight Time to be a decimal number instead of Time. It's easier to enter and understand. This is a complete redo.

Book2
ABCDEFGHIJ
1Pounds Per Hour:400Capacity:200010001000
2
3Flight NumPlanned Departure DatePlanned Departure TimeActual Departure TimeExpected Flight TimeActual Flight TimeTotal Fuel NeededTank ATank BTank C
412347/18/20234:007:3710.006.372,549.812,000.00549.81Empty
Sheet1
Cell Formulas
RangeFormula
D4D4=IF(B4=TODAY(),MAX(C4,NOW()-INT(NOW()),C4))
F4F4=(C4*24)+E4-(D4*24)
G4G4=F4*PPH
H4H4=MIN(G4,TankACap)
I4I4=IF(MAX(MIN(G4-H4,TankBCap),0)=0,"Empty",MAX(MIN(G4-H4,TankBCap),0))
J4J4=IF(MAX(MIN(G4-H4-I4,TankCCap),0)=0,"Empty",MAX(MIN(G4-H4-I4,TankCCap),0))
Named Ranges
NameRefers ToCells
PPH=Sheet1!$C$1G4
TankACap=Sheet1!$H$1H4
TankBCap=Sheet1!$I$1I4
TankCCap=Sheet1!$J$1J4
 
Upvote 0
Tank A is filled first, then B tank, and finally C tank in that order.
That seems odd. The capacities suggest that tanks B & C are wing tanks. Don't you want the takeoff weight balanced between them as much as possible?
 
Upvote 0
In reality yes, but this sounds like a homework question.

I assumed so, but if we are going to supply solutions to homework problems, why not encourage some thinking along the way? :).

Just for fun:
Book4
ABCD
1Plane DataTank ATank B
2Main Fuel Tank A Capacity2500lbs
3Wing Tank B Capacity1000lbs
4Wing Tank C Capacity1000lbs(wing tanks are the same size)
5Total Onboard Fuel Capacity4500lbs
6
7Fuel Consumption Rate400lbs/hour
8
9Trip Data
10Normal Flight Duration10hours
11Flight Duration Safety Margin0.5hours
12Normal flight fuel requirement4200lbs 
13
14Trip Delay Data
15Flight delay1.5hours
16Flight duration if delayed8.5hours
17Delayed flight fuel requirement3600lbs
18
19Tank Fill RequirementsTank Fill
20Tank A2500lbs
21Tank B550lbs
22Tank C550lbs
23Calc Check:3600lbs
Sheet2
Cell Formulas
RangeFormula
B4,B22B4=B3
B5,B23B5=SUM(B2:B4)
B12B12=(B10+B11)*B7
D12D12=IF(B12>B5,"Warning - Flight fuel requirement exceeds fuel capacity!","")
B16B16=IF(B15>B10,0,B10-B15)
B17B17=(B16+B11)*B7
B20B20=IF($B$17>=B2,B2,$B$17)
B21B21=IF(($B$17-B20)/2<=0,"Empty",($B$17-B20)/2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D12Expression=$B$12>$B$5textNO
B12Expression=$B$12>$B$5textNO
B23Expression=$B$17=$B$23textNO
B21:B22Cell Value="Empty"textNO
 
Upvote 0
I assumed so, but if we are going to supply solutions to homework problems, why not encourage some thinking along the way? :).

Just for fun:
Book4
ABCD
1Plane DataTank ATank B
2Main Fuel Tank A Capacity2500lbs
3Wing Tank B Capacity1000lbs
4Wing Tank C Capacity1000lbs(wing tanks are the same size)
5Total Onboard Fuel Capacity4500lbs
6
7Fuel Consumption Rate400lbs/hour
8
9Trip Data
10Normal Flight Duration10hours
11Flight Duration Safety Margin0.5hours
12Normal flight fuel requirement4200lbs 
13
14Trip Delay Data
15Flight delay1.5hours
16Flight duration if delayed8.5hours
17Delayed flight fuel requirement3600lbs
18
19Tank Fill RequirementsTank Fill
20Tank A2500lbs
21Tank B550lbs
22Tank C550lbs
23Calc Check:3600lbs
Sheet2
Cell Formulas
RangeFormula
B4,B22B4=B3
B5,B23B5=SUM(B2:B4)
B12B12=(B10+B11)*B7
D12D12=IF(B12>B5,"Warning - Flight fuel requirement exceeds fuel capacity!","")
B16B16=IF(B15>B10,0,B10-B15)
B17B17=(B16+B11)*B7
B20B20=IF($B$17>=B2,B2,$B$17)
B21B21=IF(($B$17-B20)/2<=0,"Empty",($B$17-B20)/2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D12Expression=$B$12>$B$5textNO
B12Expression=$B$12>$B$5textNO
B23Expression=$B$17=$B$23textNO
B21:B22Cell Value="Empty"textNO
Thanks for all the suggestions. I think this will work great!!
 
Upvote 0
Does this get you close to your goal?

Book2
ABCDEFGHIJ
1Gallons Per Hour:400Capacity:200010001000
2
3Flight NumPlanned Departure DatePlanned Departure TimeActual Departure TimeExpected Flight TimeActual Flight TimeTotal Fuel NeededTank ATank BTank C
412347/18/20237:007:2510:009:343,830.272,000.001,000.00830.27
Sheet1
Cell Formulas
RangeFormula
D4D4=IF(B4=TODAY(),MAX(C4,NOW()-INT(NOW()),C4))
F4F4=C4+E4-D4
G4G4=F4*24*GPH
H4H4=MIN(G4,TankACap)
I4I4=MIN(G4-H4,TankBCap)
J4J4=MIN(G4-H4-I4,TankCCap)
Named Ranges
NameRefers ToCells
GPH=Sheet1!$C$1G4
TankACap=Sheet1!$H$1H4
TankBCap=Sheet1!$I$1I4
TankCCap=Sheet1!$J$1J4
 

Attachments

  • Screenshot (1).png
    Screenshot (1).png
    78 KB · Views: 4
  • Screenshot (2).png
    Screenshot (2).png
    78.2 KB · Views: 4
Upvote 0
Jeff,

I attached screenshots of my spreadsheet. Just need to tweak formulas. So if total fuel required is > or = 2000, Tank A should read "full". If less than 2000, Tank A should read fuel required amount in cell C12. Tank B and C at this point should read "Empty". Tank A has to be full first, then tank B, followed by Tank C. If fuel required is between 2000 and 3,000 then Tank A would read "Full", and Tank B would show the fuel difference between 2000 and 3000. Tank C would read "empty". If fuel required is between 3000 and 4000 then Tanks A and B would read "full" and the difference between 3000 and 4000 would show in Tank C. If fuel required is 4000 then all Tanks would read "Full".

Thanks for your input.

Mike
 

Attachments

  • Screenshot (1).png
    Screenshot (1).png
    78 KB · Views: 4
  • Screenshot (2).png
    Screenshot (2).png
    78.2 KB · Views: 5
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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