If formula

pranamu

Board Regular
Joined
Nov 2, 2011
Messages
56
Hi expertise,

I have 5 different values to be used in multiple cells. if cells contain all the value then, Unsatisfactory to be shown.
if cells contains all value except unsatisfactory then Inconsistent to be shown.
If cells contains all value except Unsatisfactory and Inconsistent then Effective to be shown. so on...

[TABLE="width: 146"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Exceptional[/TD]
[/TR]
[TR]
[TD]Excellent[/TD]
[/TR]
[TR]
[TD]Effective[/TD]
[/TR]
[TR]
[TD]Incosistent[/TD]
[/TR]
[TR]
[TD]Unsatisfactory

Please can you write a formula with if or any other formula you can suggest would be great help:)[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Is this what you mean?
Formula in A2 copied down

=CHOOSE(COUNTA(B2:F2),"Exceptional","Excellent","Effective","Inconsistent","Unsatisfactory")

Grade is cell A1, data is in columns B:F starting in cell B2


<tbody>
[TD="class: xl63"] Grade [/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63, width: 100"][/TD]
[TD="class: xl63, width: 104"][/TD]
[TD="class: xl63, width: 124"][/TD]

[TD="class: xl63"]Unsatisfactory[/TD]
[TD="class: xl63"]Exceptional[/TD]
[TD="class: xl63"]Excellent[/TD]
[TD="class: xl63"]Effective[/TD]
[TD="class: xl63"]Inconsisitent[/TD]
[TD="class: xl63"]Unsatisfactory[/TD]

[TD="class: xl63"]Inconsistent[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Excellent[/TD]
[TD="class: xl63"]Effective[/TD]
[TD="class: xl63"]Inconsisitent[/TD]
[TD="class: xl63"]Unsatisfactory[/TD]

[TD="class: xl63"]Effective[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Effective[/TD]
[TD="class: xl63"]Inconsisitent[/TD]
[TD="class: xl63"]Unsatisfactory[/TD]

[TD="class: xl63"]Excellent[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Inconsisitent[/TD]
[TD="class: xl63"]Unsatisfactory[/TD]

[TD="class: xl63"]Exceptional[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"]Unsatisfactory[/TD]

</tbody>
 
Last edited:
Upvote 0
Or is it like this?


Book1
ABCDEF
1Grade
2ExceptionalExcellentEffectiveInconsistentUnsatisfactoryUnsatisfactory
3ExceptionalExcellentEffectiveInconsistentExceptionalInconsistent
4ExceptionalExcellentEffectiveEffectiveExcellentEffective
5ExceptionalExcellentExceptionalExcellentExceptionalExcellent
6ExceptionalExceptionalExceptionalExceptionalExceptionalExceptional
Sheet2
Cell Formulas
RangeFormula
F2{=INDEX({"Exceptional","Excellent","Effective","Inconsistent","Unsatisfactory"},MAX(IFERROR(MATCH({"Exceptional","Excellent","Effective","Inconsistent","Unsatisfactory"},$A2:$E2,0),0)))}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0
Or a non-array formula which returns the same as post above by @wideboydixon

=IF(COUNTA($D2:$F2)=0,"",IF(COUNTIF($D2:$F2,"Unsatisfactory")>0,"Unsatisfactory",IF(COUNTIF($D2:$F2,"Inconsisitent")>0,"Inconsisitent",IF(COUNTIF($D2:$F2,"Effective")>0,"Effective",IF(COUNTIF($D2:$F2,"Excellent")>0,"Excellent","Exceptional"))
 
Upvote 0
Or a non-array formula which returns the same as post above by @wideboydixon

=IF(COUNTA($D2:$F2)=0,"",IF(COUNTIF($D2:$F2,"Unsatisfactory")>0,"Unsatisfactory",IF(COUNTIF($D2:$F2,"Inconsisitent")>0,"Inconsisitent",IF(COUNTIF($D2:$F2,"Effective")>0,"Effective",IF(COUNTIF($D2:$F2,"Excellent")>0,"Excellent","Exceptional"))



This formula worked as expected. Thank you so much for your support, really appreciated much!
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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