How to sum up with different input?

Status
Not open for further replies.

MrNewExcel

New Member
Joined
Apr 14, 2022
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
How do you sum up different cells with different input? what i'm trying to to do is to have a formula that will sum up the gas product i used. In my excel i have 3 diffrent gas product
but i used different gas product at the same time or sometimes the same gas product. Is there a formula that will automatically compute this. for example if i use shell(i will mark"x")and if i
use caltex(i will mark"x") it will sum up how much i consume in shell, caltex and petron individually. Pls note that Engine No. 3 always use petron gas product.

pls check my excel example. Sorry for the terminology I'm not good in excel. Thank you. Pls help.


GAS PRODUCT MONITOR.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1ENGINE NO.1 CONSUMPTIONENGINE NO. 2 CONSUMPTIONENGINE NO. 3 CONSUMPTION (ALWAYS IN PETRON)OIL ConsumptionConsumption (Total)
2CounterDensityTemp[ltr.]Cons.SHELLPETRONCALTEXCounterDensityTemp[ltr.]Cons.SHELLPETRONCALTEXCounter INCounter OUTDensityTemp[ltr.]Cons.CounterLBSOHSSHELLPETRONCALTEX
3698688000.98001309000.8X111347000.9900929000.8X79798200.98001301600.1143669010=1.6 (0.8+0.8)=0.1
4698693000.98001305000.5X111351500.9900924500.4X79799300.98001301100.1143670010=0.4=0.1=0.5
5698696000.98001303000.3X111356400.9900924900.5X79800200.9800130900.1143671010=0.1=0.8
6698697000.98001301000.1X111362700.9900926300.6X79802000.98001301800.2143671010=0.9 (0.1+0.6+0.2)
Sheet1
Cell Formulas
RangeFormula
E3:E6,V3:V6,M3:M6E3=ROUND((B3-0.000625*(C3-15))*D3/1000,1)
L4:L6,D4:D6D4=IF(A4>0,A4-A3,0)
U4:U6U4=IF(Q4>0,(Q4-Q3)-(R4-R3),0)
 

Attachments

  • Screenshot (395).png
    Screenshot (395).png
    33.9 KB · Views: 5

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
There are more than 1 possible way I think. Mine is this
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1ENGINE NO.1 CONSUMPTIONENGINE NO. 2 CONSUMPTIONENGINE NO. 3 CONSUMPTION (ALWAYS IN PETRON)OIL ConsumptionConsumption (Total)
2CounterDensityTemp[ltr.]Cons.SHELLPETRONCALTEXCounterDensityTemp[ltr.]Cons.SHELLPETRONCALTEXCounter INCounter OUTDensityTemp[ltr.]Cons.CounterLBSOHSSHELLPETRONCALTEX
3698688000.981309000.8X1.1E+070.99929000.8X79798200.981301600.11436690101.60.10
4698693000.981305000.5X1.1E+070.99924500.4X79799300.981301100.11436700100.40.10.5
5698696000.981303000.3X1.1E+070.99924900.5X79800200.98130900.114367101000.10.8
6698697000.981301000.1X1.1E+070.99926300.6X79802000.981301800.214367101000.90
Sheet1
Cell Formulas
RangeFormula
E3:E6,V3:V6,M3:M6E3=ROUND((B3-0.000625*(C3-15))*D3/1000,1)
Z3:Z6Z3=--(F3="X")*E3+--(N3="X")*M3
AA3:AA6AA3=--(G3="X")*E3+--(O3="X")*M3+V3
AB3:AB6AB3=--(H3="X")*E3+--(P3="X")*M3
L4:L6,D4:D6D4=IF(A4>0,A4-A3,0)
U4:U6U4=IF(Q4>0,(Q4-Q3)-(R4-R3),0)


Note:
Expression F3="X" will give value TRUE. A -(F3="X") will give -1. So, double negative --(F3="X") give value 1.
 
Upvote 0
Solution
Duplicate to: how create a formula that is autocalculate?

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,937
Messages
6,181,859
Members
453,068
Latest member
DCD1872

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