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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
You don't really need AND, this should suffice

=IF(J2>=80,"80%",IF(J2>=50,"50/50","<50%"))
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,129
Office Version
  1. 365
Platform
  1. Windows
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%"))
 

brian.wethington

Well-known Member
Joined
Jul 20, 2006
Messages
1,739
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.
 

Forum statistics

Threads
1,181,647
Messages
5,931,209
Members
436,784
Latest member
amuljono

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
Top