Add two cells and change sign to match third cell

nxmike

New Member
Joined
Sep 2, 2015
Messages
6
Hello everyone!!!

I need help on how to sum two cells whatever the sign is and if a third cell is for example positive to result in a positive number.
for example

if the first cell is 100
second cell is -50
third cell is -25
the fourth cell should be -50 (+) -25=-75 but because the first cell is a positive number i want to show me +75(instead of-75)


thanks a lot
im really waiting for someone to help me

Mike
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
with -50 in A2 and -25 in A3

try
=SIGN(A3)*(A2+A3)

ignore this, gives wrong result.

RoryA's should work
 
Last edited:
Upvote 0
Welcome to the forum.

Perhaps:

=ABS(B1+C1)*SIGN(A1)
 
Upvote 0
sorry guys i made a mistake..
i want something like =if(a1>0,(b2*-1)*(a1),b2*a1)

what am i doing wrong here?
 
Upvote 0
Can you give a more specific example of what you want if the solutions so far don't do it?
 
Upvote 0
i want to multiply a1*b1 but if the a1 is positive i want the result to always be positive otherways i want to be what it normaly is.
 
Upvote 0
=if(a1>0,ABS(b2*A1),b2*a1)
should do it.
 
Upvote 0
try

=if(A1>0,ABS(A1*B1),A1*B1)
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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