I need help with code for excel.
What I need is if a cell contains "Achieved" then display 1, "Partially Achieved" display 2 and if "Not Achieved" display 3.
Can someone help with what I need to enter?
Thanks
I need help with code for excel.
What I need is if a cell contains "Achieved" then display 1, "Partially Achieved" display 2 and if "Not Achieved" display 3.
Can someone help with what I need to enter?
Thanks
Where A1 is the cell you want to check of course.
Try,
fwiw, to perform the reverse (with 1, 2 or 3 in a cell) use,
For those without SWITCH (and half the length):