Bring ChatGPT INSIDE Excel to Solve ANY Problem Lightning FAST



Join 300,000+ professionals in our courses: https://www.xelplus.com/courses/
⯆ Get the files Here: https://github.com/LG-Experiment/Scripts

OpenAI inside Excel? How can you use an API key to connect to an AI model from Excel?
This video shows you how. You can download the files from the GitHub link above.
Wouldn’t it be great to have a search box in Excel you can use to ask any question? Like to create dummy data, create a formula or ask about the cast of the The Sopranos. And then artificial intelligence provides the information directly in Excel – without any copy and pasting!
In this video you’ll learn how to setup an API connection from Microsoft Excel to Open AI’s ChatGPT (GPT-3) by using Office Scripts.
As a bonus I’ll show you how you can parse the result if the answer from GPT-3 is in more than 1 line. This makes it easier to use the information in Excel.

🌍 My Online Courses ► https://www.xelplus.com/courses/

00:00 How to Connect Excel to Open AI ChatGPT
01:18 Answer Any Question in Excel
02:16 Use ChatBot to Write Excel Formulas
04:16 Analyze Financial Statements with AI GPT
05:21 Use AI to Create Dummy Data in Excel
07:26 How to Build Your Own AI ChatBot in Excel
08:54 Create Office Script to Connect to GPT-3
11:13 Wrap Up

🎬 LINKS to related videos:
How ChatGPT Can Help With Your Complex Excel Spreadsheets: https://youtu.be/21bXQDXSxYs

👕☕ Get the Official XelPlus MERCH: https://xelplus.creator-spring.com/

🎓 Not sure which of my Excel courses fits best for you? Take the quiz: https://www.xelplus.com/course-quiz/

📚 Excel RESOURCES I Recommend: https://www.xelplus.com/resources/

🎥 GEAR I use: https://www.xelplus.com/resources/#gear

More resources on my Amazon page: https://www.amazon.com/shop/leilagharani

🚩Let’s connect on social:
Instagram: https://www.instagram.com/lgharani
Twitter: https://twitter.com/leilagharani
LinkedIn: https://at.linkedin.com/in/leilagharani

👉 This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

#Excel #chatgpt #ai

38 comments
  1. Hi Leila, I love your videos, but I do not find this one useful!! When will I ever want to bring in the cast of the Sopranos or a list of countries by land mass into one of my spreadsheets?? Keep trying to show practicle uses with ChatGPT. I do not think that this video does it. Thanks!!

  2. …while the api takes all of your company's data out of the spreadsheet to process the request. danger: this is against company policy in almost every company in the US.

  3. I like how you sort of admitted you worked with ChatGPT to help it break out of it's cell (or rather, into more technologies in more places) lol someone help us…

  4. Newbie here! Is the "Ask AI Bot" we see at the beginning of the video what is coded in to excel at the end of the video via automate? I'm confused about how she got the "Ask AI Bot" into excel. Thanks!

  5. Hmmm. In my experience, ChatGPT generates junk code that doesn't work for SPSS. Since Excel is very powerful and could be used to disable that A key or wipe the harddrive, I don't know if I'd want ChatGPT in there.

    But if it isn't taking over the app…. can you integrate ChatGPT Bing with it?

  6. I recently read that OpenAI had released the API for ChatGPT (CGPT). Interesting that Chat 3 (sp?) was the source of the API, rather than 3.5, or 4 (should we wish for this….??) This is the first video I have run across that puts that API to use. I had the same experiences learning XL as you describe. I no longer use XL much at all, but gonna search for a problem to make it worthwhile to join XL to CGPT.

  7. The technique and instruction are very impressive as always, but ability of OpenAI to answer correctly was not…
    I asked it this:

    If we sold $2,691,000 in the first 14 weeks of the year, how much do we expect to sell for the whole year?
    Running it multiple times, these are the answers it gave (some answers came back multiple times):

    $2,691,000 * (52 / 14) = $7,844,285.71

    If we sold $2,691,000 in the first 14 weeks of the year, we expect to sell for $5,382,000 for the whole year.

    $2,691,000 * 52 weeks / 14 weeks = $7,869,143

    $2,691,000 is not a whole number, so it cannot be accurately predicted how much will be sold for the whole year.

    $2,691,000 * 52 / 14 = $9,964,285.71

    $2,691,000 * 52 / 14 = $10,364,000

    $2,691,000 is not enough information to calculate how much we expect to sell for the whole year.

    We expect to sell $10,364,000 for the whole year.

    If we sold $2,691,000 in the first 14 weeks of the year, we expect to sell for the whole year.

    $7,000,000

    $2,691,000 * 52 / 14 = $9,832,857.14

    $2,691,000 * 52 weeks / 14 weeks = $9,932,857.14

    $2,691,000 is 26.91% of the total sales for the year. If we expect to sell $10,000,000 for the whole year, then we would expect to sell $2,691,000 in the first 14 weeks.

    $38,128,571

    $2,691,000 * (52 / 14) = $7,764,285.71
    Even the answers that gave the same math formula reported different answers. It's all over the map. Hopefully it does better at generating Excel formulas.

  8. The hack I did not even know existed! I am so glad I came across your page, you just gained a new subscriber. It would be wonderful if you could share information on BlueWillow. I am really curious about this new ai tool and I believe I can learn a lot from you😄

  9. I've edited slightly, so the line number in mine is not the same as yours .. bu't im getting this error now, that i dodn't use to get:

    Line 68: Cannot read properties of undefined (reading '0')

    .. and it's for this line:

    // Get the answer – i.e. output

    const text: (string | boolean | number) = json.choices[0].text;

  10. I gave ChatGPT-4 the same question and it doubled down with a different answer…

    "what is the volume of a sphere with a radius of 11 cm

    The formula for the volume of a sphere is V = (4/3)πr³, where r is the radius of the sphere.
    Substituting r = 11 cm into the formula, we get:
    V = (4/3)π(11)³ V = (4/3)π(1331) V = (4/3) × 1392.54 V = 1857.76 cubic centimeters (rounded to two decimal places)
    Therefore, the volume of a sphere with a radius of 11 cm is approximately 1857.76 cubic centimeters.

    what is the volume of a sphere with a diameter of 22 cm

    The diameter of a sphere is twice the radius, so if the diameter of the sphere is 22 cm, the radius would be 11 cm (since 22/2 = 11).
    To find the volume of a sphere with a radius of 11 cm, we can use the formula V = (4/3)πr³, where V is the volume of the sphere and r is the radius.
    Substituting r = 11 cm into the formula, we get:
    V = (4/3)π(11)³ V = (4/3)π(1331) V = (4/3) × 1392.54 V = 1857.76 cubic centimeters (rounded to two decimal places)

    Therefore, the volume of a sphere with a diameter of 22 cm is also approximately 1857.76 cubic centimeters, since it has the same radius as the sphere we calculated above."

    The correct answer is 5575.27976257 cm^3

Comments are closed.