IF Formula Assistance Required

garymu16

Board Regular
Joined
Sep 15, 2006
Messages
139
Can anyone advise me on where I am going wrong with the below forumla?

=if(J2>79,"80%",if(AND(J2<=79,J2>=50,"50/50",if(J2<50,"<50%",""))))

Basically I am trying to return 3 values based on the number in cell J2. If this number is 80 or more then return "80%". If the number in J2 is between 50 & 79 then return ""50/50" and if the value in J2 is less than 50 then return "<50".

Thx in advance

Gary
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Actually, the AND clause is not even necessary (if it is greater than 79, it will never get to the second level, so it is redundant to test for it again):

=IF(J2>79,"80%", IF(J2>=50, "50/50", "<50%"))
 
Upvote 0
Good point... I failed to remove that portion of the formula. just caught the missing end parenthesis and the fact that he did not need the last if statement. Thank you for picking up the slack.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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