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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,222,018
Messages
6,163,425
Members
451,835
Latest member
kristianb63

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