From the course: Python in Excel: Data Outputs in Custom Data Visualizations and Algorithms
Unlock the full course today
Join today to access over 24,300 courses taught by industry experts.
Managing errors
From the course: Python in Excel: Data Outputs in Custom Data Visualizations and Algorithms
Managing errors
- [Instructor] In Excel, we run into error messages frequently if there's an issue with our formulas. Similarly, we can encounter additional errors specifically when we write Python code in Excel. There's a diagnostics pane to show errors. Let's go into the Python menu in the Excel formula ribbons tab and turn this feature on. This opens a pane on the right side where we will see a list of errors that run when we execute our Python code. Let's select the checkbox to show it automatically. Now let's create some errors. If we create code that takes a long time to run, we'll see a busy message like running a loop 10 million times when we put a formula like this in cell C3. To cancel this Python execution, let's just delete it. If we're not able to connect to the Microsoft server that runs Python, we'll see a #CONNECT! error, like we see and cell B four. If a Python integration isn't set up to run in our version of Excel, we'll conversely see a value or unknown error message. Conversely…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Breaking down Excel and Python processes1m 48s
-
(Locked)
Leveraging Power Query6m 32s
-
(Locked)
Using the PY Excel function3m 44s
-
(Locked)
Using the XL Excel function and Python variables4m 23s
-
(Locked)
Determining calculation order4m 31s
-
(Locked)
Importing Python libraries into Excel3m 20s
-
(Locked)
Managing errors4m 14s
-
(Locked)
Working with Python objects7m 3s
-
(Locked)
Transforming DataFrame objects7m 41s
-
(Locked)
Challenge: Creating table objects in Excel2m 15s
-
(Locked)
Solution: Creating table objects in Excel3m 9s
-
-
-
-