Switch it Up

Michael Scott once famously gave Jim 10 points, Dwight a gold star, and Stanley a thumbs up.  If Michael had known how to use the SWITCH function, it would have been easy as pie to convert his employee's ratings to determine the winner of beach day.

 Check out the gif above for an example of SWITCH in action.  We’ve got a list of product ratings from 1-5, and we need to return whether that rating is considered poor, below average, average, above average, or great for each of our products.  Rather than entering this manually, we can use the SWITCH function to swap a descriptive rating in for the numeric rating.

The SWITCH function has four core arguments that we’ll need to set to return our product rating:

  • Expression Argument:  the value we’re swapping out
  • Value/Results Argument:  the value we’re swapping in

Default Argument:  allows us to set a default return value if the function can’t find the defined results argument

To swap our numeric ratings for our text descriptors, we’ll enter the SWITCH function, set our old 1-5 number as our expression argument, and set the adjective outcome possibilities as the value/results argument as follows​[1,”Poor”,2,”Below Average”,3,”Average”,4,”Above Average”,5,”Great”].  This completes our function formula, so we’ll just enter the function and watch as Excel returns our product rating’s corresponding value!  We can easily flash fill this down our column to complete this transformation for all products.  Done!

Back to blog

Meet Emma

Emma is the founder of Excel Dictionary, your ultimate source for impactful, digestible Excel tips and tricks.  After graduating from The Ohio State University in 2019 with a degree in Actuarial Science, Emma began her professional career as an actuary, just in time for COVID to hit.  New to the industry, new to the company, adjusting to a new WFH environment, and new to Excel, Emma quickly realized how overwhelming those Excel projects could be and didn’t know where to turn for help – so she taught herself.

Emma created Excel Dictionary to help others avoid Excel overwhelm and to be the coworker that you can turn to.  She was recently awarded the Microsoft MVP award and has built a community of over 7 million people across the globe! Join her across all social channels to learn quick, actionable skills that will make you more efficient, comfortable, and confident in your daily work!

Follow Emma