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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hello Kishore Bhai
In B1 use this formula and drag down
Code:
=IF(SIGN(A1) = -1,"-",IF(SIGN(A1)=1,"+",""))
(y)
 
Last edited:
Upvote 0
Thank you Bhai..(y):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
if a1 has a positive number and b1 has a + sign, then c1 must show TRUE ?
 
Upvote 0
use this in C1 and then drag down
Code:
=IF(B1="+", TRUE,IF(B1="-",FALSE,""))
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,054
Members
448,940
Latest member
mdusw

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