Forum Discussion
CORRECT AN EXCEL FUNCTION
Dear all, i thank you for your help.
Finally, i have found the exact formula which i a sharing with you as follows :
=SI(S8="Majeur";5;SI(S8="Fort";4;SI(S8="Moyen";3;SI(S8="Faible";2;SI(S8="Nul";1)))))
Many thanks to you all
Thomas,
That's great you found the solution yourself. Nested IF works fine.
As the comment. As always in Excel you may achieve the result by several ways. The only minus of your formula is maintainability. If one day you decide to change "Nul" on "Extremely Low" or, as in UK, grades will be changed from alphabetical A-G on numerical 1-9, you have to change all your formulas.
Better to keep the list with scores somewhere in Excel sheet and connect all your formulas to this list. If any changes you correct only the list, in one place, not all formulas.
To S8 and other cells you may define data validation based on this list like this
assuming your list is in A2:A6 (and related scores are in B2:B6). Could at any place in your workbook.
To calculate related scores in X8, etc, the formula could be like
=IFERROR(INDEX($B$2:$B$6,MATCH(S8,$A$2:$A$6,0)),0)
MATCH finds the position of the S8 in the list and INDEX returns related score.
Please see attached file.
- Thomas WielezynskiSep 01, 2017Copper Contributor
Thank you very much, Sergei, for your support and advices.
Best regards
Thomas
- Thomas WielezynskiSep 01, 2017Copper Contributor
Thank you very much, Sergei, for your support and advices.
Best regards
Thomas