Need help in solving the below scenario

Chitti409

New Member
Joined
Jun 10, 2019
Messages
4
I am trying to write a formula for the below conditions
B1 value varies based on that I need to get output in C1 using below condition
If B1>70 C1 should be 40
If B1>0 & <70 C1 should be 20
If B1<0 C1 should be 0
If B1=Exempted C1 should be Null
If B1=Not Reached C1 should be Null
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the board.

This will not be a particularly difficult formula to write, and I'd be happy to help you do that, but don't forget the inflection points = 70 and 0. You address ">70" and "<70", and the same with 0, but you don't say what happens at B1 = 70 or B1 = 0.

Also, it's not exactly clear what B1 "exempted" means. Null? N/A? "Blank"? "Space"? Error value?

Ditto "not reached" for B1. What does that mean in terms of evaluating the cell?
 
Last edited:
Upvote 0
.
As the question was posted :

Code:
=IF(B1<0,"0",IF(B1="Exempted","Null",IF(B1="Not Reached","Null2",IF(B1>70,"40",IF(AND(B1>0,B1<70),"20","")))))

Blue Hornet raises several valid points.
 
Upvote 0
Hi,

Try this:


Book1
BC
1-10
2
3020
4Exempted
56920
6Not Reached
77040
Sheet675
Cell Formulas
RangeFormula
C1=IF(OR(B1={"Exempted","Not Reached",""}),"",IF(B1>=70,40,IF(B1>=0,20,0)))
 
Upvote 0
In addition to the above scenario i have to include the below scenario into the below formula how can i do it.

If B1="" it should become Not applicable and C1 should be ""

=IF(B1<0,"0",IF(B1="Exempted","Null",IF(B1="Not Reached","Null2",IF(B1>70,"40",IF(AND(B1>0,B1<70),"20","")))))
 
Upvote 0

Forum statistics

Threads
1,223,754
Messages
6,174,313
Members
452,554
Latest member
Louis1225

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