Grab the files from here 👉 pages.xelplus.com/chatgpt-in-excel-file For more ideas on using ChatGPT to boost productivity check out our "Quick Wins with ChatGPT" course: link.xelplus.com/yt-chatgpt-course 🔥use coupon code YTGPT at checkout to get 30% off - available for limited time 🔥 If you get the following error: "Line 46: Cannot read properties of undefined (reading ‘0’)" - It's probably because the API key was not input in the right place or is incorrect - or you need to update the gpt version used. Please double check on OpenAI or create a new API key.
I am a beginning-intermediate Excel user, and I often return to your channel for help. Even though I don't know how to write code, I gave this a try and am surprised and delighted it worked! Even though I believe it's important to learn Excel without AI assistance, it's tutorials like this that make learning fun, inspiring, and keep me motivated to continue learning. Thank you so much! I hope to take your courses someday too :)
All this time I thought _you_ were the real AI behind all the Excel videos I've watched! Seriously though, if this had been around when you were learning you may not be as well versed in teaching the rest of us. Thanks Leila!
A lot of us figured out solutions to problems from our jobs through channels like this. We'd be grateful to still have these jobs with videos like this...
You say "let me know what you think" I say and I think this is totally awesome. And you made such a great contribution to my day's work by sharing this with us all. Thank you Leila.
You asked what we think? I think you are a Darling and a Genus. The fact which make me appreciate you more is your constant quest of learning & pushing your boundaries. This is a wonderful quality. Thanks again for sharing, Best Regards from Pakistan.🌺
Great VDO (again). My I suggest, as a possible improvement, that you could also ask chatGPT to "give me the result in 2 columns so I can use it in Excel". You'll get the result directly formatted into a tabular reponse 🙂
Leila, Thank you so very much for this! I have successfully gotten my secret API key from OpenAI and have entered the proper script into excel. I can't wait to begin using this to help me with my data. You are so knowledgeable and I thank you for sharing your talent with the world.
Thanks Robert. No genius here. Just having fun on a Saturday morning experimenting and learning some JavaScript and Office Scripts along the way. Thanks for dropping by.
Outstanding video, we are on the verge of the next technological revolution... brace yourselves, it's goign to be a fun ride! Thank you Leila for taking the time to put this together.
@@LeilaGharani Hi Leila. Ask chartGPT to solve the following problem: "Maria's seven dollars short to buy a book and Mike is one dollar short to buy the same book. They combined their money, but it is still not enough to buy the book. How much does the book cost?" Than do the back-testing the solution., please. You will be surprised.
Too few people out there know of the pain of having to split a single row into multiple. I swear it likely comprises a good chunk of my lifetime thus far ;D Great video , and really well explained. Even though i have long since left excel behind, i know without a doubt there will be many that will find this an absolute godsend !
“Text to columns”. With character delimiters or the option where you drag lines through the data which is good if all the strings on each row have similar spacing. The better way is get good using the “mid” and “search” and “cell(“file name”). Those are all very powerful ways to parse data
Hi, I'm going to bet you have an example that does the following that I and other Excel fans would greatly appreciate. Ex. Column A, B = Company Name and stock symbol. Column C - Have ChatGPT return something in column C for each company (based on the stock symbol in column B) Any chance you have something like this to share?
Wow, this is amzing stuff! I was thinking about this the other day. Thought that it would be nice if it could analyze my data for me and show me how to do the formulas.
Awesome integrations! However, ChatGPT does not really analyze this financial statement as an analyst would do it. If you change your question to simply "can you analyze this financial statement", it will tell you the company is very healthy with strong assets. If you suggest it might be at risk, it will find risks, if you make suggestions it will follow it. It is true that this language generation AI can be trained for specific purposes like finding numerical patterns in financial data for example, however I think it's very important that people who promote the use of such tool understand how the answers are built and what's their status.
I can't stop to be amazed by how you can leverage the capabilities of AI to work for you. @Leila, you are a real inspiration to the excel and tech world etc
Nice! Would love to see this done in the Excel Macro or VB script space. Commercial Excel is required for Scripts so it leaves some of us out. Thank you. As a 20 year MS vet who started while we were battling Lotus 123, it is great to see you showcasing these great features.
That's amazing Leila! While it is great to have this tool, couple of things about what you said in the end... 1) If this was made available before few years, we would have missed learning from you, many tricks, tips and inputs on Excel and other topics in person. and 2) There is no substitute for the self efforts to understand and apply the techniques by learning, and ChatGPT may be used as a starting point, or as a quick fix, when you don't have time due to urgency/demand. Of course, this is my view and I respect everyone else's POV. Thanks for a great and insightful video! Keep it up! 🙂
Totally agreed. ChatGPT requires oversight. You can't take everything it gives you without cross-checking and having your own view. The model is still learning.
Hello Leila, I have been following through your videos for quite sometime now. Beautiful content, I love watching it. However I was trying same steps as you have mentioned above in my local pc, but I can't happen to see "Automate" tab at all. Can you help me by telling me which version and suite were you using for this excel spreadsheet shown in the video? And do mention if there's any other details I should know. Thanks in advance, and great work, wishing you more success! Kind Regards, Tasneem.
Great insights. This will change the way we use Excel. Though it makes it useful for dumb users, I still think we need to kow a lot about Excel, the ability to set-up and do an API call etc.. but the level of advancement in usage would be phenominal. Thanks Leila for the insights and this will set the mind ringing on how to leverage AI in excel.
I asked for a checker board program in c++ and a floating colourful banner in c++ and it give me code in seconds. Back in the 90’S we were asked in school to do these programs. So cool.
Thanks Leila . I am your one of the students from different forums and platforms. This video is on another level Ma’am . Looking forward to see more like this . Thank You once again . ☺️
Incredibly useful video. Thanks so much for sharing your code. This a great for those looking to get more out of excel by incorporating AI, something a lot of us wouldn’t have thought to do natively. I really appreciate your passion for Excel and for teaching others. Your videos are always my goto for learning new things in Excel. You have really supercharged my Excel skills and workflow!
this is AWESOME!!!It's my first time commenting but I'm a long-time subscriber already because you have a very simple explanation and speak clearly and on point. Keep it up! Thank you so much!!!!
Always enjoy your videos and usually learn lots. But sometimes I have trouble keeping up with you when you are doing things so quickly. Guess I can replay over and over to get better understanding.
Thanks Doug for your comment. Yes - agree, in this case I didn't go through the code step by step as the video would get far too long. You can download the Office Scripts from the link in the video description. I hope that would help.
Good work! Since this is an excel integration, you could determine the delimiter of a table output from chatGPT (i.e. "," for CSV) and output the separated values in the table directly
Leila, you are awesome! As always, I've learned so much from you courses. However, I keep getting the error Line 46: Cannot read properties of undefined (reading '0') for const text: (string | boolean | number) = json.choices[0].text; In reading other messages you mention the API key. I regenerated the key (so tried two key) and I've pasted it into the API sheet B1 and still get the error. Any suggestions on how to resolve. Also using business account, saved on one-drive business, and have Office 365 automate option. Thanks in advance.
I got the same error, before I asked the Bot a question. I also fixed line 23: headers.append("Authorization", `Bearer ${apiKey}`); where I had used apostrophes instead of backquotes- which may have corrected it. Once I corrected that and asked a question, that error resolved (I also had to delete the original Run button and replace it with a new one, and renamed and resaved the script).
Good work! A few questions. 1. Why can't you ask GPT-3 to write your OfficeScript? 2. How far are we from doing the following: Refer a data range to GPT-3 and prompt it to answer an analytical question. We can now ask to write some code and then execute it to get the answer. Of course, later we can build more complicated analysis, What do you think?
Thank you for the amazing video, Laila! I was really impressed by the demonstration of connecting OpenAI's GPT-3 to Microsoft Excel. The tutorial was very helpful and the bonus of parsing the results was a great touch. I was wondering if you could consider creating a similar video for Python/Streamlit? That would be really great!
@@LeilaGharani Ah, that's fantastic! I've used macros on a number of occasions and was very sad to see them stripped from online access -- especially since I have a lot of colleagues I design workbooks for whom that's the only way they access Excel. I'm going to have to look into Office Scripts. Maybe you've already created a video on using those Scripts to import ChatGPT into Excel, but if not, that'd definitely be something I'd be very excited to learn.
Yeah, cross checking is critical! ChatGDP is still liable to go totally off sometimes (especially with complex problems) ... but, as you point out, it's still a good tool to help us humans get there! The oversight seems really important so we don't automate this entirely. Personally I'm slightly concerned about the feedback loop where AI generated content inavertantly generates it's own training sets from what it's generated ... guess we'll see.
Absolutely right. I luv the opportunities for using integrated AI to streamline actions, activities and information. The video is a nice representation of that and a nice, inspiring presentation. I'll definitely take the steps to automate and link internal information through code. We just also need to be aware of the limitations of AI generated responses at this stage. It does not KNOW things. It mimics, and predicts. Test, verify, utilize what you can in ways you can. do NOT take responses for granted when asking questions...Sudan isn't #10 in area in any reliable list I can find. AI hallucination and factual failures abound at this stage. The automation within your workbooks is great! Well worth the video. Grabbing information from the web is still just as reliable as the random web. Be aware. Thanks for the vid!
Your first step was more advanced that I was capable of understanding. I've been using Excel for many years, but I just didn't understand where you came from starting off. If I have a cell open, how can I get it to go online?
Awesome to see this done with Office Scripts! I'm curious to hear your preference between building this in Office Scripts vs PQ. I made a video a while back about integrating the ChatGPT API into PQ and giving it a front end much like this in Excel. Would love to hear what you think! ua-cam.com/video/GzrcS5ws_nw/v-deo.html
9:09 you are brilliant! I can relate to your excitement! I can’t wait to begin trying your methods! Thank you for showing me ways to reduce hours of researching!
For sure in the near FUTURE ChatGpT will be able to built our own personalized dashboard in Power BI but what will be a MILESTONE is that instead of manually using the mouse to click over a different scenario( e.g. to see the expenses by month instead of quaterly or to look for some specific category of expenses,etc) We will be able to ask with our voice to the Dashboard to show us that kind of information by using the collaboration of A.I. what a great Era!!
Thank you, thank you, thank you! This will save me untold hours of research. You are amazing Leila! You provide quality information that is much appreciated.
I'm 80 years old in a few days, so I'm close to checking out whether I like it of not and I have FOMO. Wow, this is such great stuff. I'm been using it for some C and Python code I've been dabbling in. I just happened to see Leila over on the right in the list of videos and decided to check it out as ChatGPT was mentioned with Excel. I'm going to have a go at it later. Leila, you do a really really good job. Keep it up.
Thanks for the Video. I managed to have ChatGPT produce a VBA version of the Office Script and have the script run when a new value is entered in the ask cell removing need of the button. This is fun.
Example script uses model "text-davinci-002" which is not in use anymore. I got this working by replacing that with "gpt-3.5-turbo-instruct" It's line 18. ChatGPT didn't know where the problem was, but it helped me get proper error message and there find the correct error.
Quel talent ! Merci Leila ! Anytime I hear and see your productions that inspires really much. Today with GPT_3 and MS Script integration, l have a lot to grind. ;-)
Thanks Leila - Been following your channel for a while and there a lot of tricks I have learnt from you. Keep up the good work. This one makes it easier for me to start playing around with ChatGPT native to excel.
😳 Impressionnant d'être allé chercher la fonction Indirect, en 10 secondes ! Fonction si difficile à faire comprendre à beaucoup. La synthèse automatique ? Et bien on revient au même problème de base sur Excel : comment être sûr des données de base (validité, structure...) pour être certain du résultat de la synthèse ? Votre démo est impressionnante. Bravo. Hubert (France). Traduction google : Impressive to have picked up the Indirect function, in 10 seconds! Function so difficult to make understand to many. Automatic synthesis? Well we come back to the same basic problem on Excel: how to be sure of the basic data (validity, structure...) to be sure of the result of the synthesis? Your demo is impressive. Cheer.
Great Video, I downloaded the excel sheet, changed the API key and tried to run from the script but came up with errors, I better get back to work now 🙂
Hi Leila, absolutely love your work, this is one if those eureka moments you have a few times a year, watching this. Now you have us longing this functionality....2 q’s: 1. Where can I access this script and, 2. Can this run on vanilla version of excel or do you need an enterprise version?
Leilah I am a Regular viewer of you channel and I love the way you explain all formulas. I have a problem on Excel: D5 contain some data number. my criteria is- if D5 contain 3 there would be 1 in H5 & for Every 3 there will be added 1 with the previous one on H5. Example: D5 contain 6- H5 have to be 2. if D5 contain 9. H5 have to be 3 I hope it's really easy to you. And you'll give me the solution. Thanks Leilah. Love From Bangladesh
Grab the files from here 👉 pages.xelplus.com/chatgpt-in-excel-file
For more ideas on using ChatGPT to boost productivity check out our "Quick Wins with ChatGPT" course: link.xelplus.com/yt-chatgpt-course 🔥use coupon code YTGPT at checkout to get 30% off - available for limited time 🔥
If you get the following error: "Line 46: Cannot read properties of undefined (reading ‘0’)" - It's probably because the API key was not input in the right place or is incorrect - or you need to update the gpt version used. Please double check on OpenAI or create a new API key.
Tried several keys, same error. Line 46..
😂 you code it using the ChatGPT 😂
This is impressive dear, you know asynchronous programming
Doesn't work even with API key in the right cell... Looking forward to the solution!
@@vibhanshsaini7350 paste your error inside chat gpt
The section where you uploaded the balance sheet into ChatGPT to perform analyses has been a powerful eye opener . THANK YOU LEILA!!!!!🥰😍
That analysis didn't make any sense. It adds words from previously written sequences. Like a parrot with larger memory.
Love the updated emoji
First was as well until i saw the answer.
I am a beginning-intermediate Excel user, and I often return to your channel for help. Even though I don't know how to write code, I gave this a try and am surprised and delighted it worked! Even though I believe it's important to learn Excel without AI assistance, it's tutorials like this that make learning fun, inspiring, and keep me motivated to continue learning. Thank you so much! I hope to take your courses someday too :)
All this time I thought _you_ were the real AI behind all the Excel videos I've watched!
Seriously though, if this had been around when you were learning you may not be as well versed in teaching the rest of us.
Thanks Leila!
So cool. I don't know how many hours I've spent researching formulas, but it's a lot. What a time saver!
A lot of us figured out solutions to problems from our jobs through channels like this.
We'd be grateful to still have these jobs with videos like this...
the most organized, neat and workable version ever. Appreciate your clear, concise and detailed explanation. Please do more!
can you please help in the error i am getting to run this script?
I didn't quite understand how to set up a button. Can you share short instruction?
Ye idek how to get rid of the error
Finally, a tool that can save hours of researching right excel formula.
Thanks a lot.
You say "let me know what you think"
I say and I think this is totally awesome. And you made such a great contribution to my day's work by sharing this with us all. Thank you Leila.
Wow, thank you!
Could not have said it better. Thank you Leila, you are inspirational.
You asked what we think?
I think you are a Darling and a Genus.
The fact which make me appreciate you more is your constant quest of learning & pushing your boundaries.
This is a wonderful quality.
Thanks again for sharing,
Best Regards from Pakistan.🌺
Great VDO (again). My I suggest, as a possible improvement, that you could also ask chatGPT to "give me the result in 2 columns so I can use it in Excel". You'll get the result directly formatted into a tabular reponse 🙂
Leila, Thank you so very much for this! I have successfully gotten my secret API key from OpenAI and have entered the proper script into excel. I can't wait to begin using this to help me with my data. You are so knowledgeable and I thank you for sharing your talent with the world.
Hi Leila, genius is the word that comes to mind! Amazing integration of the application!
Thanks Robert. No genius here. Just having fun on a Saturday morning experimenting and learning some JavaScript and Office Scripts along the way. Thanks for dropping by.
@@LeilaGharani Leila, continue being the light in a world of darkness, more than just what you do with Excel - you are an inspiration for the world!
I am from Bangladesh. You're my Master in Excel. I am grateful to you. Love you, Ma'am. ❤❤❤
Outstanding video, we are on the verge of the next technological revolution... brace yourselves, it's goign to be a fun ride! Thank you Leila for taking the time to put this together.
you inspired me to have ChatGpt to write code to embed gpt3 in to excel ... this is soooooooo much fun and exciting.
I learned a lot of new things and found this all very intriguing! Thanks for sharing your programming adventures in Excel and ChatGPT!
Great to hear!
Leila and chandoo are the two excellent excel tutors on youtube,😍
Lots of love from India...
Thank you! Chandoo’s content is top notch.
Eagerly awaiting an Xelplus course that expands upon this!
Thanks for the trust.
I was wondering Leila hasn't shared her thought about this AI monster. THANK YOU FOR TAKING THE FLOUR. I hope to learn more about the magic of ChatGPT
After watching to the end, I am delighted to say that this is just awesome and I couldn't imagine it
Thanks for watching!
@@LeilaGharani Hi Leila. Ask chartGPT to solve the following problem: "Maria's seven dollars short to buy a book and Mike is one dollar short to buy the same book. They combined their money, but it is still not enough to buy the book. How much does the book cost?" Than do the back-testing the solution., please. You will be surprised.
For all those who toil away writing VBA code this will be a game changer !! Thank you
Too few people out there know of the pain of having to split a single row into multiple. I swear it likely comprises a good chunk of my lifetime thus far ;D Great video , and really well explained. Even though i have long since left excel behind, i know without a doubt there will be many that will find this an absolute godsend !
Textsplit you can also use text split with an index to get the value you need
“Text to columns”. With character delimiters or the option where you drag lines through the data which is good if all the strings on each row have similar spacing.
The better way is get good using the “mid” and “search” and “cell(“file name”). Those are all very powerful ways to parse data
So so true!!! Was so painful 😣. Not anymore 😊
Is that you that I now hear doing voice-over for car advertising? It is a unique and silky voice, absolutely makes you want to go out a buy a new car!
This is a brilliant use case and fabulous execution as well!!
Leila’s the best. I personally learned a lot from your videos, which impacted my works and projects. Thank you Leila and keep videos coming please.
I’ve been using chatgpt to give me vba and python programmes and while not perfect, with patience and specific questions the results are incredible
Follower from Iraq 🇮🇶 Baghdad and ❤ ⚘ Thank you for a useful and interesting lesson. You are amazing .thank you ⚘
How did you even think to do this? Like you are next level good at everything
Hi, I'm going to bet you have an example that does the following that I and other Excel fans would greatly appreciate.
Ex. Column A, B = Company Name and stock symbol.
Column C - Have ChatGPT return something in column C for each company (based on the stock symbol in column B)
Any chance you have something like this to share?
Wow, this is amzing stuff! I was thinking about this the other day. Thought that it would be nice if it could analyze my data for me and show me how to do the formulas.
Awesome integrations! However, ChatGPT does not really analyze this financial statement as an analyst would do it. If you change your question to simply "can you analyze this financial statement", it will tell you the company is very healthy with strong assets. If you suggest it might be at risk, it will find risks, if you make suggestions it will follow it. It is true that this language generation AI can be trained for specific purposes like finding numerical patterns in financial data for example, however I think it's very important that people who promote the use of such tool understand how the answers are built and what's their status.
Nice work Leilia, I reckon the API integration could be done with Power Query too, it would be a bit tricky but I'd love to see it.
Absolutely! I actually made a tutorial on how to do this a couple months ago:
ua-cam.com/video/GzrcS5ws_nw/v-deo.html
I think you will save some precious time for populating exemples in your videos. Thanks for your work.
I can't stop to be amazed by how you can leverage the capabilities of AI to work for you. @Leila, you are a real inspiration to the excel and tech world etc
speaking of AI - this is most certainly a bot
Mind boggling. I have been using Excel for many years, but this stuff is just superb!
Glad you like it!
And here I just been using chatgpt to make knock knock jokes.
😂 those are also great!
27 years fast forward...
@@LeilaGharani Hello Leila are involved in the Give away process now?
Who's there?
😂
Thank you for contributing Leila. This is fun
Nice! Would love to see this done in the Excel Macro or VB script space. Commercial Excel is required for Scripts so it leaves some of us out. Thank you. As a 20 year MS vet who started while we were battling Lotus 123, it is great to see you showcasing these great features.
ua-cam.com/video/AEgzrEYYboU/v-deo.html
Yeah I didnt realize that I needed commercial Excel :(
"while we were battling Lotus 123" that took me to such a specific point in time lol
Just ask ChatGPT? 😉
@@dave9624 me too :)
That's amazing Leila! While it is great to have this tool, couple of things about what you said in the end... 1) If this was made available before few years, we would have missed learning from you, many tricks, tips and inputs on Excel and other topics in person. and 2) There is no substitute for the self efforts to understand and apply the techniques by learning, and ChatGPT may be used as a starting point, or as a quick fix, when you don't have time due to urgency/demand. Of course, this is my view and I respect everyone else's POV. Thanks for a great and insightful video! Keep it up! 🙂
Thanks Vijay for sharing your view and dropping by. I do agree with you that we have to learn the concepts.
Totally agreed. ChatGPT requires oversight. You can't take everything it gives you without cross-checking and having your own view. The model is still learning.
Love this great video and tutorial guide. For someone like me who has little knowledge around this subject this is fantastic
simply amazing Leila, my head has exploded here! many thanks for sharing!
That's great stuff, Leila! Too bad the script function does NOT run in a personal account (only school or organization).
I agree. That is a pity. I hope Microsoft will decide to roll it out to personal accounts too.
I have been watching your videos for the last few months and find them to be very excellent. I really enjoy them a great deal :-)
Hello Leila,
I have been following through your videos for quite sometime now. Beautiful content, I love watching it. However I was trying same steps as you have mentioned above in my local pc, but I can't happen to see "Automate" tab at all. Can you help me by telling me which version and suite were you using for this excel spreadsheet shown in the video? And do mention if there's any other details I should know.
Thanks in advance, and great work, wishing you more success!
Kind Regards,
Tasneem.
There's no Automate tab or menu either here. And I'm set to auto-update O365...so it might be rolling out slowly to the mass over time.
Very creative 😲
I was in shock when I saw the title
Great insights. This will change the way we use Excel.
Though it makes it useful for dumb users, I still think we need to kow a lot about Excel, the ability to set-up and do an API call etc.. but the level of advancement in usage would be phenominal.
Thanks Leila for the insights and this will set the mind ringing on how to leverage AI in excel.
I asked for a checker board program in c++ and a floating colourful banner in c++ and it give me code in seconds. Back in the 90’S we were asked in school to do these programs. So cool.
You explained what you can do with it in excel but you've failed to tell us how to get AI into excell
exactly what i wanted to comment
ua-cam.com/video/K5vXaQwa8cE/v-deo.htmlsi=EIPPjR50F70vMWy5
Aa... Glad see this comment. So i dont wasting my time
Option in insert and then, excel must be 2023
Wow still hasn’t been answered over a year later. You suck at responding to your viewers Layla.
Thanks Leila . I am your one of the students from different forums and platforms. This video is on another level Ma’am . Looking forward to see more like this . Thank You once again . ☺️
Glad you liked it!
Incredibly useful video. Thanks so much for sharing your code. This a great for those looking to get more out of excel by incorporating AI, something a lot of us wouldn’t have thought to do natively. I really appreciate your passion for Excel and for teaching others. Your videos are always my goto for learning new things in Excel. You have really supercharged my Excel skills and workflow!
Did you get it to work?
this is AWESOME!!!It's my first time commenting but I'm a long-time subscriber already because you have a very simple explanation and speak clearly and on point. Keep it up! Thank you so much!!!!
Awesome, thank you!
Always enjoy your videos and usually learn lots. But sometimes I have trouble keeping up with you when you are doing things so quickly. Guess I can replay over and over to get better understanding.
Thanks Doug for your comment. Yes - agree, in this case I didn't go through the code step by step as the video would get far too long. You can download the Office Scripts from the link in the video description. I hope that would help.
Ms. Gharani, I have been impressed by you many times. However, this time you are simply and utterly outstanding, truly incredible! ❤️ Well done 👏
Thank you so much 🙂
Good work! Since this is an excel integration, you could determine the delimiter of a table output from chatGPT (i.e. "," for CSV) and output the separated values in the table directly
Love this. I did a Video last week about being able to use chatgpt in any programs like this but with AHK so I am not tied just to one program.
Leila, you are awesome! As always, I've learned so much from you courses. However, I keep getting the error Line 46: Cannot read properties of undefined (reading '0') for const text: (string | boolean | number) = json.choices[0].text; In reading other messages you mention the API key. I regenerated the key (so tried two key) and I've pasted it into the API sheet B1 and still get the error. Any suggestions on how to resolve. Also using business account, saved on one-drive business, and have Office 365 automate option.
Thanks in advance.
If some one help here to resolve this issue, facing same.
Same here
same here 2
@@ioannischatzipantazis479 same here - any solutions?
I got the same error, before I asked the Bot a question. I also fixed line 23: headers.append("Authorization", `Bearer ${apiKey}`); where I had used apostrophes instead of backquotes- which may have corrected it. Once I corrected that and asked a question, that error resolved (I also had to delete the original Run button and replace it with a new one, and renamed and resaved the script).
I can't believe I created a similar excel. It worked! This is awesome!
Wow , thanks for taking this to next level by opening our thoughts. Thanks a ton 👍
Good work! A few questions. 1. Why can't you ask GPT-3 to write your OfficeScript? 2. How far are we from doing the following: Refer a data range to GPT-3 and prompt it to answer an analytical question.
We can now ask to write some code and then execute it to get the answer. Of course, later we can build more complicated analysis, What do you think?
Thank you for the amazing video, Laila! I was really impressed by the demonstration of connecting OpenAI's GPT-3 to Microsoft Excel. The tutorial was very helpful and the bonus of parsing the results was a great touch. I was wondering if you could consider creating a similar video for Python/Streamlit? That would be really great!
Its Leila!
Dumb Noomen
You're the best teacher to me, your teaching style I like most.
Is there any plan that you will launch an office script course in the near future!???
Please, how do you integrate ChatGPT in Excel?? Is this an Add-In?? How do you create this button directly in Excel? Thank you.
I'd very much like to know, too.
It's not an add-in. It's using Office Scripts which is new macros of Office 365 (similar to VBA but Office Scripts also works online).
@@LeilaGharani Ah, that's fantastic! I've used macros on a number of occasions and was very sad to see them stripped from online access -- especially since I have a lot of colleagues I design workbooks for whom that's the only way they access Excel. I'm going to have to look into Office Scripts. Maybe you've already created a video on using those Scripts to import ChatGPT into Excel, but if not, that'd definitely be something I'd be very excited to learn.
Awesome stuff. A whole new world has opened
Yeah, cross checking is critical! ChatGDP is still liable to go totally off sometimes (especially with complex problems) ... but, as you point out, it's still a good tool to help us humans get there!
The oversight seems really important so we don't automate this entirely. Personally I'm slightly concerned about the feedback loop where AI generated content inavertantly generates it's own training sets from what it's generated ... guess we'll see.
Absolutely right. I luv the opportunities for using integrated AI to streamline actions, activities and information. The video is a nice representation of that and a nice, inspiring presentation. I'll definitely take the steps to automate and link internal information through code.
We just also need to be aware of the limitations of AI generated responses at this stage. It does not KNOW things. It mimics, and predicts.
Test, verify, utilize what you can in ways you can. do NOT take responses for granted when asking questions...Sudan isn't #10 in area in any reliable list I can find. AI hallucination and factual failures abound at this stage.
The automation within your workbooks is great! Well worth the video. Grabbing information from the web is still just as reliable as the random web. Be aware.
Thanks for the vid!
Your first step was more advanced that I was capable of understanding. I've been using Excel for many years, but I just didn't understand where you came from starting off. If I have a cell open, how can I get it to go online?
Awesome to see this done with Office Scripts! I'm curious to hear your preference between building this in Office Scripts vs PQ. I made a video a while back about integrating the ChatGPT API into PQ and giving it a front end much like this in Excel. Would love to hear what you think!
ua-cam.com/video/GzrcS5ws_nw/v-deo.html
9:09 you are brilliant! I can relate to your excitement! I can’t wait to begin trying your methods! Thank you for showing me ways to reduce hours of researching!
For sure in the near FUTURE ChatGpT will be able to built our own personalized dashboard in Power BI but what will be a MILESTONE is that instead of manually using the mouse to click over a different scenario( e.g. to see the expenses by month instead of quaterly or to look for some specific category of expenses,etc) We will be able to ask with our voice to the Dashboard to show us that kind of information by using the collaboration of A.I. what a great Era!!
Thank you, thank you, thank you! This will save me untold hours of research. You are amazing Leila! You provide quality information that is much appreciated.
Wow! That’s super helpful and like 3 lessons - Excel, scripts, api integration - all in one video!
This is the future and this is just a scratch on the surface, the idea has potential for a lot of things. Well structured explanation.
I'm 80 years old in a few days, so I'm close to checking out whether I like it of not and I have FOMO. Wow, this is such great stuff. I'm been using it for some C and Python code I've been dabbling in. I just happened to see Leila over on the right in the list of videos and decided to check it out as ChatGPT was mentioned with Excel. I'm going to have a go at it later. Leila, you do a really really good job. Keep it up.
I have no idea on how chatgpt works but as someone who works in excel and sheets I badly want to learn this. Exciting stuff wow
Thanks for the Video. I managed to have ChatGPT produce a VBA version of the Office Script and have the script run when a new value is entered in the ask cell removing need of the button. This is fun.
how to get Office Script? is that only available through the full MS 365 version? Didnt even see it under the Add-In options?
I saw your presentation at Excel summit 2023 today... and it's already working on my side. Thank you very much
YAY Pedro! That's great to hear! Thank you for attending. I hope you find a lot of value in the sessions.
Example script uses model "text-davinci-002" which is not in use anymore. I got this working by replacing that with "gpt-3.5-turbo-instruct"
It's line 18.
ChatGPT didn't know where the problem was, but it helped me get proper error message and there find the correct error.
Leila, you always present EXCEL skills very succintly.. TQ
This is gonna change my life.
Hi Leila
Thanks for this wonderful presentation. My question is can we use excel macros instead if office scripts/ automate
Quel talent ! Merci Leila ! Anytime I hear and see your productions that inspires really much. Today with GPT_3 and MS Script integration, l have a lot to grind. ;-)
You are the best. I knew when you came out with your experiments with GPT it would be worth waiting for....Bravo!!!!
Love that ghost typing though the panel. Prefer to be my kitchen hand.
I love you for using 90s Hiphop as your first example ❤😂
You did a greatest showcase about ChatGPT what I'm looking for, thanks a lot!
Glad you enjoyed it!
Thanks Leila - Been following your channel for a while and there a lot of tricks I have learnt from you. Keep up the good work. This one makes it easier for me to start playing around with ChatGPT native to excel.
YOU ARE FANTASTIC, LEILA !!!
Thanks for the awesome video !
as a soprano fan, this starts really well
Thanks Leila, Not often I´m lost for words, but this is simply outstandingly interesting.
Thank you! I was super excited too when it worked ; )
It's a very useful video, thanks for sharing.
Thank you! I learnt some JavaScript and got this to work in google sheets :) I can send the code if anyone wants it
I would love this code!
Just Wow!!!!!
Please do a lot of videos on automation using scripts
😳 Impressionnant d'être allé chercher la fonction Indirect, en 10 secondes ! Fonction si difficile à faire comprendre à beaucoup.
La synthèse automatique ? Et bien on revient au même problème de base sur Excel : comment être sûr des données de base (validité, structure...) pour être certain du résultat de la synthèse ?
Votre démo est impressionnante.
Bravo.
Hubert (France).
Traduction google :
Impressive to have picked up the Indirect function, in 10 seconds! Function so difficult to make understand to many.
Automatic synthesis? Well we come back to the same basic problem on Excel: how to be sure of the basic data (validity, structure...) to be sure of the result of the synthesis?
Your demo is impressive.
Cheer.
Your knowledge and application are incredible!
Great Video, I downloaded the excel sheet, changed the API key and tried to run from the script but came up with errors, I better get back to work now 🙂
Hi Leila, absolutely love your work, this is one if those eureka moments you have a few times a year, watching this. Now you have us longing this functionality....2 q’s: 1. Where can I access this script and, 2. Can this run on vanilla version of excel or do you need an enterprise version?
Leilah I am a Regular viewer of you channel and I love the way you explain all formulas.
I have a problem on Excel:
D5 contain some data number. my criteria is- if D5 contain 3 there would be 1 in H5 & for Every 3 there will be added 1 with the previous one on H5.
Example: D5 contain 6- H5 have to be 2.
if D5 contain 9. H5 have to be 3
I hope it's really easy to you. And you'll give me the solution.
Thanks Leilah.
Love From Bangladesh
Awesome video and great idea!!! My mind is spinning with ideas on such applications! Just impressive!
Glad you liked it!!
I'm an ardent fan of yours! You truly show there's limit to imagination!