I have a list of 11 dept numbers that I need to be changed to the correct number. I tried using the Switch Function to do this, but after I create the Function it is telling me that "This expression you entered contains invalid synatx. You may have entered an operand without an operator."
Here is the switch function I am using.
Switch([AnalysisDept]=45H2,4502,[AnalysisDept]=79H1,7922,[AnalysisDept]=79H2,7982,[AnalysisDept]=79H3,7983,[AnalysisDept]=79H5,7999,[AnalysisDept]=79V3,7963,[AnalysisDept]=79V4,7964[AnalysisDept]=8500,7900,[AnalysisDept]=8501,7901,[AnalysisDept]=8505,7905,[AnalysisDept]=8511,7911).
When I just use 8500, 8501, 8505, and 8511 the result is #Error.
I am trying to figure out what I am doing wrong or it I should be using a different approach to get the result that I need.
Thanks!
Here is the switch function I am using.
Switch([AnalysisDept]=45H2,4502,[AnalysisDept]=79H1,7922,[AnalysisDept]=79H2,7982,[AnalysisDept]=79H3,7983,[AnalysisDept]=79H5,7999,[AnalysisDept]=79V3,7963,[AnalysisDept]=79V4,7964[AnalysisDept]=8500,7900,[AnalysisDept]=8501,7901,[AnalysisDept]=8505,7905,[AnalysisDept]=8511,7911).
When I just use 8500, 8501, 8505, and 8511 the result is #Error.
I am trying to figure out what I am doing wrong or it I should be using a different approach to get the result that I need.
Thanks!