- Joined
- Nov 7, 2008
- Messages
- 5,979
I am trying to work on a spreadsheet that reflects a price fuel adjustment in Excel from Office 2003.
I have a cell that will contain the info of the contract price for fuel.
The next cell is for the price of fuel cost for that particular month that work was performed.
Next cell contains the calculation that reflects the difference.
If the price of fuel is just a difference of .25 cents or less then no action is taken.
Say the contract price was for $2, then if the monthly price fluctuates between $1.75 to $2.25 then no adustment is made.
If greater than a .25 change in monthly fuel price, then make the adjustment based off of the contractors monthly fuel usage.
So if the contract price was for $2, and for the month of March the price of fuel went down to $1.65, then the Adjustment Factor would be -.35
I have used an IF statment which works as long as both values are positive. When introduced to a negative, "0" is in the calculated cell.
=IF(J4<=0.25,0,IF(J4>0.25,J4*E4)) cell J4 is the Monthly Fuel Index Adjustment Factor.
This statment works for a positive but I haven't managed to complete the statment to handle a negative number. SHould I be looking at this differntly? Maybe the "IF" statement isn't what I really should be using?
Make sense? Any assitance would be helpful as I sniff around the web for more info.
I have a cell that will contain the info of the contract price for fuel.
The next cell is for the price of fuel cost for that particular month that work was performed.
Next cell contains the calculation that reflects the difference.
If the price of fuel is just a difference of .25 cents or less then no action is taken.
Say the contract price was for $2, then if the monthly price fluctuates between $1.75 to $2.25 then no adustment is made.
If greater than a .25 change in monthly fuel price, then make the adjustment based off of the contractors monthly fuel usage.
So if the contract price was for $2, and for the month of March the price of fuel went down to $1.65, then the Adjustment Factor would be -.35
I have used an IF statment which works as long as both values are positive. When introduced to a negative, "0" is in the calculated cell.
=IF(J4<=0.25,0,IF(J4>0.25,J4*E4)) cell J4 is the Monthly Fuel Index Adjustment Factor.
This statment works for a positive but I haven't managed to complete the statment to handle a negative number. SHould I be looking at this differntly? Maybe the "IF" statement isn't what I really should be using?
Make sense? Any assitance would be helpful as I sniff around the web for more info.