If condition required

Faraz5023

New Member
Joined
May 9, 2024
Messages
3
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Web
I have a sheet and in this sheet column U have QTY 1 to 100 I need If the condition is less than 5 to give me a text "Good" if the QTY is between 5 to 10 give me a text "poor", and greater than 10 give me text "bad". currently, I use the Below-mentioned formula but given the error between conditions.

=IF(U2<=6,"Good",IF(U2>=6<10,"Poor",IF(U2>10,"Bad","-")))


1715239697192.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
=IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor",IF(U2>10,"Bad","-")))
BUT
What do you want 10 to be ???
as you dont have an =10

Also a blank cell will give good
so maybe
=IF(U2="", "", IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor","Bad")))
As - will never be seen
Cell Formulas
RangeFormula
V2:V9V2=IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor",IF(U2>10,"Bad","-")))
W2:W9W2=IF(U3="","",IF(U3<=6,"Good",IF(AND(U3>6,U3<10),"Poor","Bad")))
 
Upvote 0
Solution
=IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor",IF(U2>10,"Bad","-")))
BUT
What do you want 10 to be ???
as you dont have an =10

Also a blank cell will give good
so maybe
=IF(U2="", "", IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor","Bad")))
As - will never be seen
Cell Formulas
RangeFormula
V2:V9V2=IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor",IF(U2>10,"Bad","-")))
W2:W9W2=IF(U3="","",IF(U3<=6,"Good",IF(AND(U3>6,U3<10),"Poor","Bad")))

Superb Issue resolved thanks a lot.
 
Upvote 0
you are welcome, I notice my formula is in row 3 - BUT referencing row 2
so just for completeness

Cell Formulas
RangeFormula
V2:V9V2=IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor",IF(U2>10,"Bad","-")))
W2:W9W2=IF(U2="","",IF(U2<=6,"Good",IF(AND(U2>6,U2<10),"Poor","Bad")))
 
Upvote 1
less than 5 to give me a text "Good" if the QTY is between 5 to 10 give me a text "poor", and greater than 10 give me text "bad"
You asked for this right? hence I gave you what you wanted exactly i.e. =IF(U2<5,"Good",IF(AND(U2>=5,U2<=10),"Poor","Bad"))

or you can use this as well =IF(U2="","",IF(U2<5,"Good",IF(AND(U2>=5,U2<=10),"Poor","Bad")))

Book1
UV
21Good
36Poor
45Poor
58Poor
66Poor
74Good
82Good
97Poor
109Poor
113Good
124Good
1310Poor
1411Bad
15 
Sheet1
Cell Formulas
RangeFormula
V2:V15V2=IF(U2="","",IF(U2<5,"Good",IF(AND(U2>=5,U2<=10),"Poor","Bad")))
 
Upvote 1

Forum statistics

Threads
1,216,125
Messages
6,128,998
Members
449,480
Latest member
yesitisasport

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