IF Statement and Negative Figures

AliGeeJay

New Member
Joined
Nov 28, 2018
Messages
14
Office Version
  1. 365
Platform
  1. Windows
I am having issues with an IF statement and cells that contain negative figure.

The IF statement I have at the moment in Column D is: =IF(AND(C3/A3*100>10%,A3>100),C3/A3*100,"")

When the formula comes to cell - for example C5 - with a negative figure, I need the formula to return the negative figure instead of a blank cell. I have tried putting C5 instead of the "" for Value_if_FALSE

The other challenge I have is that if C5 is a negative figure, but cell E5 says monitor, then it needs to carry out the IF statement above.

I hope my ramblings make sense as I have been trying to sort this one out for over a day now, and getting a brain ache from trawling the internet looking for a solution to this.

Sample.xlsx
ABCDE
1HeldUsedBalanceThreshold %Status
2871 Good
34201420100Good
4510-5 Check
51015-5 Monitor
Status
Cell Formulas
RangeFormula
D2:D5D2=IF(AND(C2/A2*100>10%,A2>100),C2/A2*100,"")
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
you could add an OR to your AND
=IF(OR(C2<0,AND(C2/A2*100>10%,A2>100)),C2/A2*100,"")

The other challenge I have is that if C5 is a negative figure, but cell E5 says monitor, then it needs to carry out the IF statement above.

Does that mean IF C5 is negative AND E5 is monitor , then you want a blank Cell
as the IF
AND(C2/A2*100>10%,A2>100)
will be false

Book4
ABCDE
1HeldUsedBalanceThreshold %Status
2871 Good
34201420100Good
4510-5-100Check
51015-5-50Monitor
Sheet1
Cell Formulas
RangeFormula
D2:D5D2=IF(OR(C2<0,AND(C2/A2*100>10%,A2>100)),C2/A2*100,"")
 
Upvote 0
Solution
your welcome
BUT what about
Does that mean IF C5 is negative AND E5 is monitor , then you want a blank Cell
as the IF
AND(C2/A2*100>10%,A2>100)
will be false
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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