IF CONDITION

avisoft20

Board Regular
Joined
Sep 10, 2016
Messages
64
Dear All,
I am working on if condition, but while putting the formula it does not show the correct result. Below is the table for example.

Sr.NoSlab-1Slab-2Slab-3MarksResult
1​
10255010.00Slab-1
2​
5101511.00Slab-2
3​
10255086.00Slab-3
4​
1020305.00No Slab

i am using this formula :
=IF(B2>=E2,"Slab-1",IF(C2>=E2,"Slab-2",IF(D2>=E2,"Slab-3"," ")))
Condition is:
1. if Marks is greater than or equal to Slab-1, the result will be Slab-1.
2. if Marks are greater than or equal to Slab-2, the result will be Slab-2.
3. if Marks is greater than or equal to Slab-3, the result will be Slab-3.
Else No Slab

Thank You
Avisoft20
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You're formula & description are at odds with each other, which is correct. Also what are your expected results from that data?
 
Upvote 0
EDIT
Ignore - already asked

1. if Marks is greater than or equal to Slab-1, the result will be Slab-1.

So that would mean E2 > B2

what do you need ?
do you order by Slab3 , then check slab 2 , then slab1

as in row 3 , they are all smaller
 
Upvote 0
As per the expected Results provided, I could come up with

Book3
ABCDEF
1Sr.NoSlab-1Slab-2Slab-3MarksResult
2110255010Slab-1
325101511Slab-2
4310255086Slab-3
541020305No Slab
Sheet1
Cell Formulas
RangeFormula
F2:F5F2=IFERROR(INDEX($B$1:$D$1,,MATCH(E2,B2:D2,1)),"No Slab")
 
Upvote 0
What error are you getting? The conditions look correct as far as i can see
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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