If Formula

eramirez148

Board Regular
Joined
Aug 17, 2022
Messages
54
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
Platform
  1. Windows
  2. MacOS
Hello, I need a formula that will deliver results in column "C". I need it to tatste "NO" if there is data in column B. If there is no data in column B and the percentage in column "A" is higher that 20% or lower than -20% the results should say "YES" otherwise the cell should remain empty.

ABC
20.00%​
MONDAYNO
21.00%​
TUESDAYNO
10.00%​
-1.00%​
THURSDAYNO
-20.00%​
FRIDAYNO
-30.00%​
SATURDAYNO
20.00%​
YES
21.00%​
YES
10.00%​
-1.00%​
-20.00%​
YES
-30.00%​
YES
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Excel Formula:
=IF(B2="","",IF(ABS(A2)>=20%,"YES")

Your description says "higher than" and "lower than" but your example shows "higher than or equal to" and "lower than or equal to." My solution matches your example, not your description.
 
Upvote 0
My solution matches your example,
In relation to the 20% I agree, but not in relation to ..
I need it to tatste "NO" if there is data in column B

Sounds like this to me.

22 08 26.xlsm
ABC
1ABC
220.00%MONDAYNO
321.00%TUESDAYNO
410.00% 
5-1.00%THURSDAYNO
6-20.00%FRIDAYNO
7-30.00%SATURDAYNO
820.00%YES
921.00%YES
1010.00% 
11-1.00% 
12-20.00%YES
13-30.00%YES
YES NO
Cell Formulas
RangeFormula
C2:C13C2=IF(B2="",IF(ABS(A2)<20%,"","YES"),"NO")
 
Upvote 0
Solution

Forum statistics

Threads
1,216,118
Messages
6,128,939
Members
449,480
Latest member
yesitisasport

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