nested if formula with True or False condition

kishore k

New Member
Joined
Jan 18, 2019
Messages
25
hi, I need a "if" formula with below case

in cell A1 i have amount 55000(positive), in cell B1 I have sign "+". similarly, in A2 i have amount -25000 (negative) and in cell B2 sign "-" . the signs +/- are manually input based on requirement.. now the formula should tell me if the amount in A1 is positive amount and sign in A1 is "+" sign, then the formula to tell as true.. as well it amount is negative and sign is also "-" then true..

if any blanks are other signs, it has to through "false"..
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hello Kishore Bhai
In B1 use this formula and drag down
Code:
=IF(SIGN(A1) = -1,"-",IF(SIGN(A1)=1,"+",""))
:beerchug:
 
Last edited:
Upvote 0
Thank you Bhai..:beerchug::pray:. it works.. also is it possible to extend the formula for B1, i.e if A1 having positive number and B1 having "+" sign, then formula to be true..
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,707
Members
452,667
Latest member
vanessavalentino83

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