Yes/No if two columns are both Positive or Negative

sacajamo

New Member
Joined
May 9, 2007
Messages
22
Office Version
  1. 365
I need to evaluate two columns in which I need a simple outcome. If both numbers in a row are positive or both are negative, output needs to be YES. If one number is positive and the other is negative, output needs to be NO. See example attached. I manually entered the output here but need to figure out the excel formula for several hundred rows. TIA!

10.7411.35Yes
-17.4341.03No
3.5739.74Yes
-70.8824.92No
25.62-56.26No
11.4420.42Yes
-10-18.39Yes
14.6940.73Yes
-132.243.24No
2.72-20.19No
-10.0542.39No
32.154.98Yes
17.4635.12Yes
58.061.26Yes
 
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Is this what you mean?

25 02 23.xlsm
ABC
1
210.7411.35Yes
3-17.4341.03No
43.5739.74Yes
5-70.8824.92No
625.62-56.26No
711.4420.42Yes
8-10-18.39Yes
914.6940.73Yes
10-132.243.24No
112.72-20.19No
12-10.0542.39No
1332.154.98Yes
1417.4635.12Yes
1558.061.26Yes
Yes No
Cell Formulas
RangeFormula
C2:C15C2=IF(A2*B2>0,"Yes","No")
 
Upvote 0
Solution

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