Answer the question
In order to leave comments, you need to log in
How to set up the "IF" statement correctly?
I need to set up a cell so that it works with a drop down list.
In the drop-down list, the list of names "Andrey, Anton, Vlad, Maxim, Kolya". I need the IF operator to check the combo box and return - "word".
For example:
Andrey, Vlad = first
Anton, Kolya = second
Maxim = third
Found something like:
=IFS(E9 = "Андрей"; "первый"; E9 = "Антон"; "второй"; E9 = "Максим"; "третий")
Answer the question
In order to leave comments, you need to log in
In this case, the easiest way is to start a directory on a separate sheet, and look for a match there.
And if you want without a separate reference, you can do this: through VLOOKUP (query; range; index; [sorted]) and an array literal , like this:
=ВПР(E9;{
"Андрей"\"1й";
"Антон"\"2й";
"Максим"\"3й"
};2;0)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question