I hope you enjoy this video. Let me know in the comments if you plan to use Python with Excel.
@anilaeek43743 жыл бұрын
I'm getting error will trying to import openpyxl thru vs code also tried to run thru terminal the error says "module error unable to import" and asking me to install mkl-packages for intel from git. How to fix this??
@banyagatiger3 жыл бұрын
Your tutorials are great! Keep it up mate! Hoping to see more python in excel samples! Thanks bud!
@OssMoss13 жыл бұрын
Excellent tutorial - well explained, 'no fluff, no noise; honest and down-to-earth'... I was missing a few bits and it was a pain of trial n'error... your video I filled the gaps... now I'm ready to take the plunge...
@kasio242 жыл бұрын
thanks for this report I see you from Colombia nice work. you have the new subscriber
@ExcelInstructor2 жыл бұрын
Hello I like your VBA videos, but will you make "python macro mastery" channel in which ull teach how to use python with excel / SAP / ERP systems?
@isadom75869 ай бұрын
You are a Magician! Me reading "Hello There" after you pyxld it: "Wow!" Thank you for the content in the description, I have spent 13 minutes watching this video. We're on Sunday, 6PM. Finally I found you!
@z.r.7773 жыл бұрын
Opened the video, jumped to an area of interest, within 5 seconds I learned something new... Thank you.
@yvonplancade7252 жыл бұрын
Big thanks! After long searches without success on the net, I arrived on your site thanks to which I finally managed to understand and implement xlwings.A great moment!!!
@rickwize11823 жыл бұрын
You are an excellent teacher & I learned about VBA from you. Would love to see you have a full course on Python / Excel / xlwings. Would sign up immediately!
@SpManos-zeke2 жыл бұрын
Installation worked like a charm, thank you. Though I did have to use this method to find the XLSTART folder since I don't know my way around the VBA Editor in Excel 1-Click File > Options. 2-Click Trust Center, and then under Microsoft Office Excel Trust Center, click Trust Center Settings. 3-Click Trusted Locations, and then verify the path to the XLStart folder in the list of trusted locations.
@ImtiazAhmad-hg4yk2 жыл бұрын
This kind of teaching is addictive
@시간속으로-s3k Жыл бұрын
Thank You~~As Always~~!!!
@michaellean3 жыл бұрын
Fantastic! Have been wanting to "jump ship" to Python - I can now steadily upgrade and use the best of both worlds! Thanks for the great and easy to follow intro
@Excelmacromastery3 жыл бұрын
You're welcome Michael.
@Freeflier19782 жыл бұрын
I was in Python before I got into Excel. I'd rather just run Python as excels backend vs VBA. I write most of my excel sheets using xlxswriter Python library as well.
@ckoriablack2 жыл бұрын
This video worth all the credits I can possibly give, so much information in just 30 minutes. Wow this was an amazing tutorial trust me I've done a lot
@pravinshingadia7337 Жыл бұрын
Thank you - this is awesome. First step taken today to learn Python thanks to you
@elsheep69513 жыл бұрын
Hi Paul, since doing your webinar VBA course (thank you it has proved useful time and again) I wandered into Python, pandas and saw that they were powerful and useful but could not for the life of me see how I could use them in the office. So glad you are still here to help. It also looks like my role playing project is getting an upgrade!
@donharrold13752 ай бұрын
"Poitin for excel" - Good video
@exeldom Жыл бұрын
thank you very much good sir. you have shared some valuable knowledge to the world of excel users.
@dwaynefong Жыл бұрын
OMg this video is such much beter than the others. very clear and concise Such a good instructor. great work thank you!
@rajatdogra96 Жыл бұрын
If .main is changes with fun1 will it call def fun1 from python code ? 28:38
@pbeeby Жыл бұрын
Cracking video. Really useful and informative. Thanks, mate. Best wishes from Melbourne australia
@dannym.1602 Жыл бұрын
@11:01 why does 'print(sheet["A10"].value)' print "Student 9" when it's actually in B10 in the workbook? Then @11:51 'sheet["b15"] = "Hello There"' add the statement directly to b15 in the workbook?
@renatocorreaarrieche3 жыл бұрын
Nice video, thanks, I learned a lot. Tip: maybe there is a wrong image in 11:05. You may had removed ID column in file and used an older image.
@Excelmacromastery3 жыл бұрын
Yes, you are right.
3 жыл бұрын
I have to postpone the babysitting job for 30 minutes just to watch and like this lol. Awesome! Tom from Danang.
@Excelmacromastery3 жыл бұрын
Hi Tom. Video was made in Danang😀.
@SpecArbor3 жыл бұрын
Im conufsed. At 11:09, you asked python to return the value in cell A10, but it returned the value in cell B10??? Can someone explain?
@KLiCuk13 жыл бұрын
This is great - hope there are more to come. Just a quick question.... print(sheet["A10"].Value) returned "Student 9" but this is the value in cell B10 on the example sheet. I'm assuming that wasn't the actual sheet that the Python code was pointing at ? If it was then I'm confused
@Excelmacromastery3 жыл бұрын
You're right. Actually I inserted a column after I recorded that. It did work correctly but the ID column didn't exist when I ran it.
@KLiCuk13 жыл бұрын
@@Excelmacromastery Cheers - I thought so
@blazer1253 жыл бұрын
Glad I read the comments and I'm glad you asked this question.
@surat-dt9sr3 жыл бұрын
Thanks so much. I'm newbie . Your explanation quick but we got the point
@freeliberalminds2 жыл бұрын
Great thanks for this tutorial sir Paul. This is very interesting and very informative.
@edclarke73982 жыл бұрын
Excellent tutorial
@jaimesastre63932 жыл бұрын
Wow, I do use python and Xls separately, sometimes with Pandas. But here the combination with other libraries open infinite possibilities. Thanks 🙏👍
@taxlala3 жыл бұрын
i like the vedio and knowledge most.....
@zetandpeligaming3 жыл бұрын
Very useful thanks. Been using VBA in excel for a while now, and wanted to learn another language. This bridges the gap nicely and allows me to apply what I've learnt with VBA to start playing with Python a bit more :)
@mKravedi3 жыл бұрын
Same goes for myself! Very useful video! Thanks Paul!
@Yitoamaya3 ай бұрын
Awesome. Many possibilities : )
@Jamesedwardkoch3 ай бұрын
Hey Paul. We am really looking forward to your take on the new Python inclusion in Excel :)
@mattkriese7170 Жыл бұрын
Excellent info!
@DavidRejavinski2 жыл бұрын
This is really a very concise and powerful mini-tutorial. Take your time and revise every detail. Thanks Paul K.
@Excelmacromastery2 жыл бұрын
Very welcome
@jonsmile42793 жыл бұрын
QQ: at 11:09 your code shows the print “Student 9” from cell A10. Cell A10 contains “9”. Cell B10 contains “Student 9”. What am I missing?
@estebanalfaroorozco92893 жыл бұрын
Is possibly because his first column was interpreted by pandas as an index
@OpenSesame0013 жыл бұрын
Awesome video.. Love VBA and now I can even use VBA via Python.. thanks for insight.. also I didnt know xlsz was a zip.. nice discovery too...
@Excelmacromastery3 жыл бұрын
Glad you liked it.
@azekialbayrak2 жыл бұрын
Thank you very much Paul.
@tigreonice2339 Жыл бұрын
Related with selenium: I have an excel or csv file, some cells have NaN value. I want when there's no value (Nan) the driver doesn't fill in the web input(with 'Nan' or nan), just skip it to the next line code instruction.... how can I do that???
@sanjayvaghela3 жыл бұрын
Awesome video Paul, I am always waiting for video, "VBA Code Run 1000 Times Faster" was amazing, I implemented on my code and my macro super fast now, keep posting, appreciated.. this video motivate me to learn Python.. thanks..
@Excelmacromastery3 жыл бұрын
Thanks Sanjay.
@arielspalter74252 жыл бұрын
Incredible tutorial. 👍
@MsOfficeLearning3 жыл бұрын
Thank you for the best tutorial sir.
@MrPaunty3 жыл бұрын
Thanks Paul, that will help me in start xl automation through python
@MichaelBrown-lw9kz3 жыл бұрын
At 16:42, the first two rows do not print out. I am getting an Empty Data Frame message. Does anyone know how to deal with this issue?
@SaidElnaffar3 жыл бұрын
Unique tutorial with a great contirbution!
@eprepr59143 жыл бұрын
Very interesting. Thanks.
@daves40263 жыл бұрын
Great video.
@MrMallesh13 жыл бұрын
Looking one more video on python ! no video since last one month ! desperately waiting one more video. thanks
@manassehkisame6286 Жыл бұрын
Splendid!
@kennethstephani6923 жыл бұрын
Excellent video!
@theapexpredator1572 жыл бұрын
@ 27:48 I can see you Intellisense working, but it doesn't work for me :/ (xlwings is ticked in the References) - Figured it out, used Ctrl+Space In the video you Imported Xlwings @ 20:04, but for me it doesn't work. I get the error "Import "xlwings" could not be resolved"
@mizzipaul822 жыл бұрын
When I push the button to run the "PythonCalledFromVBA" python script (which happens @28:25 in the video) I get this error window: --------------------------- Error --------------------------- Traceback (most recent call last): File "", line 1, in AttributeError: module 'xlwings.utils' has no attribute 'prepare_sys_path' Press Ctrl+C to copy this message to the clipboard. --------------------------- OK --------------------------- Not sure what I am missing...
@TheJonathanLugo2 жыл бұрын
Genius! Thank you :)
@reng77772 жыл бұрын
Hi i have a prolbem by importing openpyxl.. the massege says: " openpyxl is not accessed pylance, do you know what can i do from here?
@vasanthkumarkallannavar759410 ай бұрын
Good, Hey Excel MAcro Mastery i need command that reads the plotted charts and graphs in the sheet and save those charts to device, any support ?
@ggod003 жыл бұрын
This is awesome. More stuff like this please.
@Excelmacromastery3 жыл бұрын
Glad you like it.
@georgeiskander24583 жыл бұрын
Great Video ,,,, Check the pictures of the excel sheet it has ID col which is wrong
@wayneedmondson10653 жыл бұрын
Hi Paul. Thanks for this intro to Python with EXCEL. Nice to know the options and how they work together. Thanks for sharing :)) Thumbs up!!
@MichaelBrown-lw9kz3 жыл бұрын
At the 10:54 mark, I received the following error: ModuleNotFoundError: No module named 'openpyxl' What does this mean?
@MichaelBrown-lw9kz3 жыл бұрын
I figures it out. I basically had to install an upgrade by running a variation of the following line of code in the command line: pip install openpyxl
@speedyg2295 Жыл бұрын
Wish you had this for MAC. Very informative but i couldn't get the runPython from VBA too work. I did however get PyCharm and VSCode to reach in take from and give back to Excel
@hochun836 Жыл бұрын
How to show the intellisense in 27:45 ?
@marshallhosel12472 жыл бұрын
Thank you
@MrMallesh13 жыл бұрын
Awesome video..... how to use msgbox in python, to interact with user. error handling etc.
@CC-pt3di Жыл бұрын
11:11 cell A10 value is "9" from the screenshot? Cell B10 value is "Student 9"
@SeamusHarper12343 жыл бұрын
This is a really great introductions into the python / XLS ecosystem. I've played a lot with integrating pandas into my workflows, but I must say in most cases it's best to keep excel and other systems separate. Excels toolkit, especially considering power query, will solve nearly all problems you encounter in the wild and the benefits of python do not justify the added hassle. For example, your XLS files will not work properly on other peoples systems. You will have to setup python on your colleagues machines, and if you ship to customers.... Maybe you can freeze your script into an exe, but as an it admin, I would instantly fire any employee who executes random exe files... On the other hand, you can prepare your data with python, save to a CSV file and pull it in with power query. That's much cleaner.
@Excelmacromastery3 жыл бұрын
Thanks for the feedback Seamus. You raised some interesting points.
@Dr.Acula7872 жыл бұрын
I agree. I am the admin's nightmare myself, because I like to install software on my working PC (like Python or Total Commander as a replacement for the Windows Explorer as a filemanager) and I would love to automate more stuff. But the problem is, that other people couldn't work with the files anymore (but they have to), if I exaggerate it. So I usally stuck with Excel formulas, which works in many cases, at least for the most part.
@SeamusHarper12342 жыл бұрын
@@Dr.Acula787 try power query ;-) It does great work in automation and it ships with excel.
@Dr.Acula7872 жыл бұрын
@@SeamusHarper1234 Thanks, I will give it a try. 🙂
@emilymn4468 Жыл бұрын
Agreed fully. In finance & accounting teams work with huge excel files. I am yet to see any video/training on python based automation that can replace the manual/macro based processes. If anyone has such a video/training please share
@MichaelBrown-lw9kz3 жыл бұрын
When I run the code at 21:06, I am getting the following message: AttributeError: 'NoneType' object has no attribute 'books' Does anyone know what this means?
@tomaszlesiewicz3 жыл бұрын
I have the same error
@vikramjagtap68492 жыл бұрын
Wonderful
@taarigo61193 жыл бұрын
Great video, Thank you. Please I tried to run my xlsm file (with goalseek function) using python and import xlwings, but I have a run time error '1004' reference isn't valid, if I run the xlsm directly without python it works. Please what is the error?
@tomoo793 жыл бұрын
Paul, thanks for this it is really interesting! i think the environment setup is not so straight forward, at least for me. I had to: reinstall numpy from within vscode update xlwings and conda: "conda update -c conda-forge xlwings" wk.close does not seem to work but wk.close() does seem to work initialising excel if it is not already open is also necessary xw.App (visible=True, add_book=True)
@akshayc71523 жыл бұрын
Thank you..the video was very informative.. looking forward for more such videos..i am a beginner in python and this can be a good starting point..thankyou once again 🙏
@Excelmacromastery3 жыл бұрын
Glad it was helpful!
@champak_chacha251 Жыл бұрын
How can I get first row number after applying filter in Excel sheet using xlwings?
@firstcommenter2023 жыл бұрын
can python do OLE ActiveX? GUI programming, Windows API?
@bhaskarmukherjee78892 жыл бұрын
This is advanced... Is there any source to learn Python from very basics
@johnwayne80593 жыл бұрын
Well done, nice video Paul!👍👍👍 that's pretty helpful!🤟😎
@Excelmacromastery3 жыл бұрын
Thanks John.
@markyaney98203 жыл бұрын
Can the examples in this video be performed in Intelli J
@Metal-BIM3 жыл бұрын
Is is great, I will use many of this for my work
@Excelmacromastery3 жыл бұрын
Thaks Andres.
@micheltw3 жыл бұрын
Great intro video for this entry of python in Excel, looking forward to get more. Can you show how to get data from a file to another file?
@heyjude19713 жыл бұрын
Great video! Thanks so much for the info! It amazes me that only 9% of viewers upvoted it. We know the 91% who didn't upvote likely learned something. (And there are presently no down votes.) We can do better than this. If you learned something from (or enjoyed) a video, let's at least give it a click; it's effortless.
@munafdamani62333 жыл бұрын
Thank you for sharing knowledge which is rarely available in KZbin world. Dear sir, I am using Excel in stock market data analysis. It is automated with some VBA and formulas. On daily basis, I need to download 5 sheets (CSV and excel) from one site, need to change the dates at 2-3 places and have to appy some VBA code. Can the above procedure be automated? Currently the above procedure takes 15-20 and then I have to analyse data. If it gives direct results within 5 minutes, then it will be fantastic.
@Nedim893 жыл бұрын
Give me your contact I can make automation?
@varunaggarwal39582 жыл бұрын
Did you get a reply to your question? I can't access the reply.
@munafdamani62332 жыл бұрын
@@varunaggarwal3958 no
@sorledecoder7867 Жыл бұрын
Sir I want to know if we must have Anaconda installed on our system before we can get python work this way?
@phillipssky80492 жыл бұрын
When you do print(sheet["A10"].value) I thought you should get just number 9; how come it returned Student 9? Sorry maybe I missed something.
@thsetharus2 жыл бұрын
Ser, when trying to import, I get the error "Import "openpyxl" could not be resolved from source". So what is the reason of this? may you help?
@juanpablohorn66423 жыл бұрын
I have a question. I tried runnign the line import openpyxl, and an error popped up that says "Import "openpyxl" could not be resolved from sourcePylancereportMissingModuleSource" What can I do to solve this issue? EDIT: I could move one from this issue, but now i have another one. The problem comes when trying to run the xlwings code. here is my code: import xlwings as xw wk = xw.books.open(r'C:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\marks.xlsx') sheet = wk.sheets("Sheet1") rg = sheet.range("A1:C2") print(rg.value) The error says as follows:AttributeError: 'NoneType' object has no attribute 'books'. EDIT 2: I have solved the prior issue as well. Now the issue is when i try to run the VBA Macro to Run Python From VBA. This is what the error says: --------------------------- Error --------------------------- Traceback (most recent call last): File "", line 1, in File "C:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\PythonCalledFromVBA.py", line 5, in main wb=xw.Book.caller() File "C:\Users\Juan Pablo Horn\AppData\Local\Programs\Python\Python39\lib\site-packages\xlwings\main.py", line 763, in caller raise Exception('Book.caller() must not be called directly. Call through Excel or set a mock caller ' Exception: Book.caller() must not be called directly. Call through Excel or set a mock caller first with Book.set_mock_caller(). Press Ctrl+C to copy this message to the clipboard. --------------------------- OK ---------------------------
@Denis-pq9kq3 жыл бұрын
Awesome video! Do you know if I can install the xlwings addin on a Mac by any chance? Is there any pip install command for that? Thank you!
@RaianTourada Жыл бұрын
Hey Paul @Excelmacromastery ! I have a question and I will be grateful if you will answer :) I'm working with Excel but I don't know how to use VBA, I have some programming basics, but I can barely read VBA code intuitively (maybe 5% of some easy code), now I need to automatize excel files, something like: filter by column AJ values [90%:150%) and copy all the data to the new sheet .. and so on and so on. Also I'll need some UI with options and values input.. what is the best option for me - to start learning VBA or to start learning Python? Thank You in advance!
@steve_aventura Жыл бұрын
You can record a vba macro
@riteshsingh1183 жыл бұрын
Could you please share a comparision video on efficiency of these tools.
@julianevans22562 жыл бұрын
Followed this tutorial fine testing code in Vscode up until using xlwings where I'm getting an error; Exception has occurred: XlwingsError x Couldn't find any active App! Am I missing something?
@dominikyszkowski76632 жыл бұрын
A10 Has "9" value what od printing in my opinion is b10. Im confused. Unless there was wrong snip to show outcome ?
@manuelmoreno99102 жыл бұрын
This means that we could run excel macros on python?
@rsdyeahh3 жыл бұрын
Any chance to get RTD working?
@winstondemoura82673 жыл бұрын
Great video! Random question: Where are you from?
@martinholmes33052 жыл бұрын
Wow!!!!!!!!!!!!!! I did not even know... will be working through this on my project and seeing what gives, thank you so much Maestro. Can this be done on mobile phone, maybe need to run pyhton on colab? Or can my VBA project only be converted easily into an Android app using a PC, or running the python on Colab and Google Drive, on the Chrome browser for android? It would be cool if I could scrape the data and process it, as the VBA does currently, but on android mobile phone as well.
@thomasl.40812 жыл бұрын
Best way for me (and 1:1 VBA commands) is with the Python win32 functionality
@kisho26793 жыл бұрын
what are alternatives to Anaconda?
@StuartGreenley Жыл бұрын
How come you didn’t use the spyder development?
@sanjayvaghela3 жыл бұрын
Hay, one suggestion.. can you make video on VBA and selenium driver? If you can its very helpful.. Thanks in advance..
@khalilothman56383 жыл бұрын
when I press the button it say : Error --------------------------- Traceback (most recent call last): File "", line 1, in NameError: name 'fromvba' is not defined -
@muthoosmathew Жыл бұрын
Hi Paul, Newbie question. How can this be shared with other users who doesn’t have python installed? The advantage of using VBA is that distribution of the tool does not need any additional installations. Is there a workaround? Thanks in advance for your response!
@FRANKWHITE19963 жыл бұрын
thanks for sharing
@eliotharreau76273 жыл бұрын
Hi Paul, what is your color theme for VS code ? Thank you.
@Excelmacromastery3 жыл бұрын
I picked the default dark one.
@jimmybrancho6775 Жыл бұрын
hello & thank you for a wonderful tutorial! i've been fighting with xlwings for about three hours and i can't get the xlwings ribbon to appear in excel 2013. all other parts appear to be working. i'm working from a fresh anaconda install and xlwings v. 0.27.15 which conda installed itself. inside the vba editor, i see and can check xlwings as a reference. it also appears and appears to load correctly as an excel add-in. the only thing that is going wrong is that the ribbon won't appear. is there anything to be done at this point?
@lastspring Жыл бұрын
FYI, I could only get the xlWings section to work if Excel was actually running. It didn't have to be on the file being used (blank work sheet was OK).
@ojieuntoo3 жыл бұрын
Any idea how to add data to table in worksheet with python?