Nested If Function Contains Errors. Need help..

HelpExcel1

New Member
Joined
Oct 2, 2013
Messages
3
I am trying to do the following with a value in P7 to print text in an adjacent cell based on the value in P7.

I am trying to get the function to return as follows:
If P7 <.95 return LVL 8
If P7 <1.06, but >.95 return LVL 7
If P7 <1.20, but >1.06 return LVL 6
If P7 <2 but > 1.20 return LVL 5
If P7 >2 return LVL4

Here is what I wrote in excel:
IF(P7<0.95,"LVL8", IF(P7<1.06,"LVL7", IF(P7<1.20,"LVL6", IF(P7<2 "LVL5", "LVL4"))))

It returned an error in the function, but I cannot figure out exactly what I did wrong.

Thanks for the help.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try this formula; =IF(P7<0.95,LVL8,IF(P7<1.06,LVL7,IF(P7<1.2,LVL6,IF(P7<2,LVL5,IF(P7>2,LVL4,0)))) Put it into the cell you want the results to go. I am guessing that lvl8,7,6,5,4 are cell locations? bsmill
 
Upvote 0
Bsmill,

Thank you for this, but they are not cell values. I am trying to to have it say LVL8 in the cell corresponding to P7 when the value in P7 is less than .95. Any suggestions on how to do this?
 
Upvote 0
Try this: =IF(P7<0.95,"LVL8",IF(P7<1.06,"LVL7",IF(P7<1.2,"LVL6",IF(P7<2,"LVL5",IF(P7>2,"LVL4"," "))))) bsmill
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

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