Formula for IF to calculate and add and subtract production remaining

Lukma

Active Member
Joined
Feb 12, 2020
Messages
259
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Friends

Good day all it's been a while just came back from my Leave with a bunch of work on my desk.

Please can anyone help with my formula I am trying to calculate and subtract using the IF formula but I guess I could not find my way around it.
What am trying to get is this

In Column D4 is the received Quantity of production
In Column D5 Is the consumed Quantity from the Actual received Quantity
In Column D6 is the Remaining Quantity after subtracting the Consumed from the actual received

Now i need a formula that will sum the received and the Remaining Quantity and subtract the Consumed but in Column M am getting an error.

Appreciate someone helping out with a better formula to go about this.

Regards

2023-Master Data Onshore Jetty Operation Tracking Update 2023.xlsx
CDEFGHIJKLMNOPQR
14.546
2219.969OctNovDecJanFebMarAprMayJunJulAugSepOctNovDec
3Actual Supplied in Liters50,000.0096,000.00110,000.0066,000.0072,000.00108,000.00108,000.0072,000.0036,000.000.0072,000.00
4Received in IG10,998.6821,117.4724,197.1014,518.2615,838.1023,757.1523,757.1515,838.107,919.05 15,838.10    
5Consumption In IG11,578.0021,840.0017,798.0020,430.0020,306.0024,274.0021,890.0016,559.001,902.005,190.0013,348.00
6ROB10,998.6820,538.1522,895.2419,615.5015,023.6018,474.7517,957.9011,906.003,266.05#VALUE!#VALUE!#VALUE!
Bio_Diesel Consumption
Cell Formulas
RangeFormula
D4:R4D4=IFERROR(1/(1/SUM(D3/$C$1)),"")
D6D6=IF(D4=D4,D4-D5,IF(D4="",D5=D5,D5))
E6:M6E6=IF(E4=E4,E4+D6-E5,IF(E4="",D6-E5))
N6:O6N6=(N4+M6)-N5
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Changing this formula:
Excel Formula:
=IF(E4=E4,E4+D6-E5,IF(E4="",D6-E5))
Like this
Excel Formula:
=IF(E4="",D6-E5,E4+D6-E5)

Does it affect your calculations?
 
Upvote 0
Solution
Changing this formula:
Excel Formula:
=IF(E4=E4,E4+D6-E5,IF(E4="",D6-E5))
Like this
Excel Formula:
=IF(E4="",D6-E5,E4+D6-E5)

Does it affect your calculations?
Hi Flashbond

Many thanks :)

Regards
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,215
Members
452,618
Latest member
Tam84

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