formula help

Jagat Pavasia

Active Member
Joined
Mar 9, 2015
Messages
406
Office Version
  1. 2021
Platform
  1. Windows
1.JPG
2.JPG


dear sir,
I want that A2-(B2:D2) - E2-(F2:H2) than answer in I2.
An example of pics with yellow highlighted in second image is my answer which I manually typed which I want.
so , which formula should I put in I2 ?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
try
(A2-sum(B2:D2)) - (E2-(sumF2:H2))
as all minus , should not be an issue in order - BUT i have added brackets just for clarity

excel carries out calculations in a specific order , so need to be careful sometime
 
Upvote 0
try
(A2-sum(B2:D2)) - (E2-(sumF2:H2))
as all minus , should not be an issue in order - BUT i have added brackets just for clarity

excel carries out calculations in a specific order , so need to be careful sometime
give me full formula
 
Upvote 0
To get the results in column I it would need to be:
Excel Formula:
=(A2-sum(B2:D2)) + (E2-(sumF2:H2))
 
Upvote 0
@Jagat Pavasia As I see it, given your examples, it is the data in row 5 that defies the above suggestions.

I think the below covers your examples but only you know if that will cover all eventualities?
If not then for one of us to be able to offer a fuller solution I would suggest that you try and better explain your required logic.

Book1
ABCDEFGHI
11000255-5045011
200005003146
3-150031-3000255-484
425020220020048
5-30002825000-285
65000280000490
Sheet1
Cell Formulas
RangeFormula
I1:I6I1=(A1-SUM(B1:D1))+((E1-SUM(F1:H1))*IF(AND(A1>0,E1>0),-1,1))
 
Upvote 0
Solution
@Jagat Pavasia As I see it, given your examples, it is the data in row 5 that defies the above suggestions.

I think the below covers your examples but only you know if that will cover all eventualities?
If not then for one of us to be able to offer a fuller solution I would suggest that you try and better explain your required logic.

Book1
ABCDEFGHI
11000255-5045011
200005003146
3-150031-3000255-484
425020220020048
5-30002825000-285
65000280000490
Sheet1
Cell Formulas
RangeFormula
I1:I6I1=(A1-SUM(B1:D1))+((E1-SUM(F1:H1))*IF(AND(A1>0,E1>0),-1,1))
THANK YOU ... FORMULA WORKS PERFECTLY AS I WANT
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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