Python in Excel vs. VBA - What You Should Learn in 2024!

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 165

  • @DaveOnData
    @DaveOnData  9 місяців тому +6

    Stuck waiting on Microsoft to grant you access to Python in Excel? Don't wait! Check out my video and start building skills NOW: ua-cam.com/video/0iV4FtpSriY/v-deo.html

    • @phandongexcel
      @phandongexcel 9 місяців тому +1

      I like this video ❤❤❤

  • @stevewolfe6096
    @stevewolfe6096 9 місяців тому +10

    Well spoken David. I grew up with Excel’s own automation language in the 90s - it could do a lot but was a pain to use. I was pleased when Excel VBA came in as I had some familiarity with it in MS Access. I have always maintained that a major problem “power” Excel users have is trying to use Excel as a database application. Although it has improved over the years it still does very little on its own to enforce data and calculation integrity as many companies and individuals (including my late brother) found out to their chagrin and $ loss.

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Thank you for taking the time to share your experiences. Any thoughts on Power Pivot as a database substitute?

    • @Detteermiig
      @Detteermiig 2 місяці тому +1

      @@DaveOnData Power Pivot is definitely not a database substitute, but rather a data manipulator/analyser very much dependent on an external database or similar.

  • @PS-zw4gi
    @PS-zw4gi 6 місяців тому +12

    I am stopping half way through your video to tell you that the way you communicate this information in a conversational manner is PURE GOLD. Now onto the rest of this video and others that you have produced 😇

    • @DaveOnData
      @DaveOnData  6 місяців тому

      Wow! Thank you so much for the kind words. I am happy to hear that you are enjoying the content.

  • @Supe063
    @Supe063 19 днів тому +2

    Odd ... I feel smarter somehow. First, I had no idea about VBA. None. I'm just an old guy trying to learn stuff. To understand VBA's functionality and Python's functionality this way gives me an crystal clear idea of what I want to learn and why. GOLD!! Thanks David!

    • @DaveOnData
      @DaveOnData  19 днів тому

      Woohoo! So glad you found this video useful. I hope you find my other videos useful as well.

  • @tadmarshall2739
    @tadmarshall2739 9 місяців тому +6

    Nice! I'd never heard of Python In Excel and you pretty well told me what I need to know. I've written some VBA for Excel and for me it was all about writing scripts that automated long sequences of steps I'd been doing by hand and finding tedious. It's an annoying programming language if you come from any of the "real" programming languages but usable if you need it.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Excellent! Glad that you found the video's content useful.

    • @JoeyCbr
      @JoeyCbr Місяць тому

      Chat GPT can write VBA no problem

  • @OzduSoleilDATA
    @OzduSoleilDATA Місяць тому +2

    Thanks for this! I appreciate how you broke this down.
    My main uses for VBA have been automation. I've never done any serious analytics.
    It also helps to know that Python runs in the cloud. That raises questions about being able to use a workbook that has Python while I'm on a plane or some other place with no internet.

    • @DaveOnData
      @DaveOnData  Місяць тому

      You are most welcome!
      Regarding the Internet aspect, an option for some will be to run Python locally.
      Easily 99% of the Python code is the same whether you use Excel or another tool (e.g., Jupyter Notebooks).
      If needed, you can write the Pythom code on the airplane using a local tool and paste it into the workbook once you land.

  • @peterk6215
    @peterk6215 9 місяців тому +6

    Thanks David. Been wondering about this question for a while. I now know the answer.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      My pleasure! I hope you found the content useful.

  • @spongebobby188
    @spongebobby188 5 місяців тому +4

    Ok...this is the first video on python that made any sense to me! Well done on your style of teaching.

    • @DaveOnData
      @DaveOnData  5 місяців тому +1

      Thank you for the comment! I'm glad you found the video useful.

  • @jhkim156
    @jhkim156 9 місяців тому +1

    Excellent. Thank you for the explanation. I have one more question. Is it possible to insert or execute Python formulas in a cell using VBA? If this is possible, it seems like additional automation could be achieved.

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      I checked with my contact at Microsoft and here's the response:
      Yup, you just write out the formula using range.formula = “=PY(, )”
      In beta, you currently have to have users click the try preview first otherwise it might throw an exception

  • @engineeringinspectionsirel1385
    @engineeringinspectionsirel1385 9 місяців тому +5

    Can't wait for more. Excellent again, so glad I found you 😀

  • @geerliglecluse5297
    @geerliglecluse5297 9 місяців тому +6

    Python in Excel as implemented by Microsoft does not satisfy data privacy requirements in Europe as required by GDPR regulations. As shown in this video, Microsoft only promises "not to persist data in the Microsoft Cloud". That does not preclude MS from copying your data or metadata to one of their non-cloud servers, etc. Not surprising, MS has a reputation for dragging its feet when it comes to complying with (data) privacy regulations instead of toeing the line as they should.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      A fair criticism! We shall see how Microsoft will address (or not) what you mention here.

    • @RedShiftGalaxy
      @RedShiftGalaxy 9 місяців тому +1

      @@DaveOnData Meanwhile All of us could store/share our most valuable resource, private and/or company data stored in our Excel workbooks and databases over Power Query connections with Microsoft over Microsoft Cloud.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      @RedShiftGalaxy - Do you mean to say that organizations should never use cloud providers?

    • @geerliglecluse5297
      @geerliglecluse5297 9 місяців тому +1

      @@DaveOnData Depends on the exact use and the nature of data stored in the external cloud on the one hand, and how well the cloud service provider complies with GDPR regulations on the other hand.

    • @RedShiftGalaxy
      @RedShiftGalaxy 9 місяців тому

      @@DaveOnData Sometimes some companies intentionaly for some of their data use local/private datastores like local databases and/or local excels and/or send part of their data/knowledge in form of excels exclusivly to well known parties.

  • @peterwooldridge7285
    @peterwooldridge7285 9 місяців тому +4

    Very good.
    Your "700 million users..
    " etc etc., sum the question in a nutshell.
    Cheers and thanks

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Thank you! I am glad you enjoyed the video.

  • @ElegantSolutions
    @ElegantSolutions 9 місяців тому +3

    Excellent! Very clearly explained. Thanks

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Thank you! I appreciate the kind words and I am glad you found the video useful.

  • @JohnCannie
    @JohnCannie 3 місяці тому +1

    Most important I learned where Python runs! What was missing is that VBA is a cross Office tool. For example I wrote a tool which read email then worked on the excel attachment and then sent out emails. You can also access word and powerpoint with VBA.

    • @DaveOnData
      @DaveOnData  3 місяці тому

      Glad you found some aspect of the video useful!

  • @ES-ny2vk
    @ES-ny2vk Місяць тому +1

    Good video. As a CPA in Industry, the big thing is automation of mundane processes which is common in accounting. Most accountants don't want to spend extra time outside work learning python, since there is no time during work because of continuing deadlines required by mangagement. However, most IT departments don't want employees to use VBA macros in their workbooks for automation because of the concern of the macros being exposed to viruses. That leaves 3rd party packages like Alteryx that makes data transformation and automated communication with financial ERPs intuitively easy to implement. However, packages like Alteryx is cost prohibitive at $5,000 per individual license annually with a minimum three license purchase, which some companies don't want to invest in.

    • @DaveOnData
      @DaveOnData  Місяць тому

      Many of my clients are interested in Python in Excel for the IT reasons you cite. These clients typically already use Azure, so the cloud-based aspect of Python in Excel appeals to their IT department.

    • @rogerh2694
      @rogerh2694 Місяць тому

      Uh no, VBA is absolutely allowed as it already comes with Excel. Never heard of a company blocking VBA access as that would tremendously reduce work efficiency. It's downloading macro enabled files that is the issue which they have resolved by auto disabling it when downloaded.

  • @mcwahaab
    @mcwahaab 7 місяців тому +1

    Hi David, thank you for this. I have a different question for you. Between using Python in Excel and Power Query, which one would you recommend? If possible, would you create a video explaining the differences and benefits of each option? Thank you in advance.

    • @DaveOnData
      @DaveOnData  7 місяців тому

      @mcwahaab - I cover your question in this video: ua-cam.com/video/rMjtcsmHf9g/v-deo.html

    • @mcwahaab
      @mcwahaab 7 місяців тому

      @@DaveOnData - Thanks a lot. Appreciate

  • @shnam928
    @shnam928 3 місяці тому +1

    Sounds cool, thanks. How could this help with ap/ar tasks automation?

    • @DaveOnData
      @DaveOnData  3 місяці тому +1

      As I'm not familiar with AP/AR tasks, I wouldn't be able to comment. That being said, I know that Finance professionals often use VBA to help automated their Excel-centric processes.

  • @cy4930
    @cy4930 16 днів тому

    Thanks David ! Is there any way to schedule Python in Excel ?

  • @ThepExcel
    @ThepExcel 9 місяців тому +5

    so... the proper question is...
    Office Script vs VBA
    M Code vs Python Excel
    DAX vs Python Excel

    • @DaveOnData
      @DaveOnData  9 місяців тому +2

      Agreed! I would also add (which will be the subject of my next video):
      SQL vs Power Query/M

    • @DaveOnData
      @DaveOnData  9 місяців тому +2

      Oh, and here are a couple more:
      Solver vs Python in Excel
      Analysis ToolPak vs Python in Excel

    • @slezakmichal
      @slezakmichal 9 місяців тому +1

      Dave your T-shirts are great - I also love Iron Maiden….but recently listing Saxon.. My experience with vba is, that this is great tool for connecting with data bases and providing data from there. Ofcourse with little help of SQL. Now PQ cope with that but pure sql is more efficient (you can adjust your sql query using date, or other parameters from spreadsheet - in PQ is more difficult cause of safety issues). Regards and waiting for a new episode 😊

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Saxon! I haven't listened to that band in a very long time. I had a copy of "Crusader" on tape in the 1980s. 😁
      My next video, out next Wednesday, will explore the tradeoffs between pure Power Query and pure SQL for Python in Excel.

    • @brodriguez11000
      @brodriguez11000 9 місяців тому +1

      @@DaveOnData Interesting video considering MS access comes with a 365 subscription and easily interfacing with each other.

  • @richardcarlin1332
    @richardcarlin1332 9 місяців тому +5

    Best to use Python to externally perform data analysis and to then create spreadsheets. From within python, you can run macros from within Excel. You can also pass formulas to Excel as well. VBA is best used when you are already in Excel and want to run automation.

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Many professionals don't have the option of running a local Python install. Python in Excel can be an easy way for these professionals to unlock advanced analytics.

  • @Truthwillprevail1477
    @Truthwillprevail1477 2 місяці тому +1

    Very insightful! Can tell that you're definitely smart.
    Wish you would make more videos about data analytics. Will start binge watching your videos soon 😂

    • @DaveOnData
      @DaveOnData  2 місяці тому +1

      Good news - I have many videos on data analytics topics, including machine learning. 😀

  • @tomoleusz
    @tomoleusz 8 місяців тому +1

    Great video, I have just subscribed your channel. Thank you for expanding the differences between Python run in Excel and on PC. I wanted to use Python on my company PC for some automations, however I don't feel comfortable with it having access to everything (as a beginner I might make some mistakes resulting in unexpected outcome). Therefore I will limit its use to safe boundaries within Excel and try to look for automations in Power Automate/Apps (not big fan of VBA).

    • @DaveOnData
      @DaveOnData  8 місяців тому +1

      @tomoleusz - Thank you for taking the time to leave a comment and I am glad to hear you have found my content useful!

  • @japethstevens8473
    @japethstevens8473 9 місяців тому +4

    TBH, you shouldn't use Excel as a database! That was declared years ago by the VBA project manager, Joel Spolsky. (VBA was introduced to Excel - before being migrated to other Office apps - in 1993. Blimey, that dates me!) Nothing stopping you using Excel as a front end to large data. It's only worthwhile to use Python if you've got a large volume of data and that should naturally reside in separate DBMS, so you would be writing dedicated Python apps against THAT data. Sounds like a 'Me too' token gesture. Anyone done a latency test against, say, the max rowcount of a wide worksheet uploaded to Python?

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Thanks for the comment! I would humbly offer the following for consideration:
      1 - I 100% agree that Microsoft Excel shouldn't be used as a database. However, I've been in tech for a long time and know that Excel will always be used in suboptimal ways.
      It's not that Excel is an inherently bad tool. It's just that Excel is very flexible and ubiquitous, making it ripe to be the proverbial hammer in search of a nail.
      2 - Performing advanced analytics on "Excel-sized" data is nothing new. For example, the books of Dr. Wayne Winston has taught Excel users for years how to conduct logistic regression and market basket analyses using Solver.
      Python in Excel is arguably a logical addition to Excel to allow users a better alternative to hand-rolling analyses using Solver. Check out my UA-cam video comparing Solver to Python in Excel for logistic regression: ua-cam.com/video/ekT4Dx0D0qY/v-deo.html
      3 - While it doesn't use a wide dataset, I have a UA-cam video showing the performance of Python in Excel using 330,000 rows of data that might interest you: ua-cam.com/video/0ICD9zMMzZ4/v-deo.html

  • @KeithJBrett
    @KeithJBrett 6 місяців тому +1

    Great video. Very informative to me with no coding/programming experience.

    • @DaveOnData
      @DaveOnData  6 місяців тому

      @KeithJBrett - Thank you for this feedback! I'm glad you found the video useful.

  • @KriegAdler09
    @KriegAdler09 9 місяців тому +1

    But… I thought I had recently read that Microsoft is no longer supporting VBA. And are there not existing Python libraries that can “read” or “write to” Excel files? (Kinda a noob here, but wanting to add to my skill set and seeing how Python might help - my college “programming” was in MATLAB and Fortran77 (digital compiler), and I took a bit of Python3 during the early months of the pandemic. I essentially work as a mechanical product engineer.)

    • @DaveOnData
      @DaveOnData  9 місяців тому +2

      Great questions!
      First, regardless of Microsoft trying to migrate folks off VBA (e.g., to Office Script), there is a huge installed base of VBA code and VBA developers. It's not going anywhere anytime soon.
      Second, programming languages like R and Python have libraries for reading in, manipulating, and writing out Microsoft Excel files. However, this isn't always an option for many Excel users for two primary reasons:
      1- They don't want to install and maintain a programming language on their laptop. Python, in particular, is a pain in this regard.
      2- If they wanted to do this, they couldn't because of restrictions put in place by their IT department.
      Many of my clients are excited by Python in Excel because it provides a quick and easy path to advanced analytics within Excel.

    • @jasongins
      @jasongins 9 місяців тому +1

      @DaveOnData what's your take on anaconda cloud notebook as an option for people with IT department restrictions on a local install?

    • @DaveOnData
      @DaveOnData  9 місяців тому +2

      @jasongins - In general, I'm a big fan of Anaconda. For example, I use Anaconda in my Python courses at TDWI conferences. That being said, I'm not super familiar with Anaconda Cloud. If I put on my former Enterprise Architect hat, the things I would be curious about the costs and security.

  • @MaureenPesch
    @MaureenPesch 9 місяців тому +1

    Thank you for that information- excellent!

    • @DaveOnData
      @DaveOnData  9 місяців тому

      You are welcome. I hope you find my future videos useful as well.

  • @kyoujinko
    @kyoujinko 9 місяців тому +2

    When Python for Excel came out, I looked into it and just didnt see the use of it. I use Python for Data Analytics using the pandas library and tend to only use Excel just for data output for people who would never understand any programming, they just want to see the end result.
    So I fail to see Python for Excel as a use to anyone, Especially if for example you extract data from SQL, are you wanting to upload your servers credentials to Microsoft ???
    If you can use Python your just use Python otherwise use power query within Excel, Python for Excel just doesnt fit in any situation.

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      If I may be so bold, I would offer the following for consideration:
      1 - Python in Excel uses a Power Query connection as an external data source. The authentication to the data source happens locally.
      2 - Excel users have been conducting advanced analytics for many years. For example, using the Solver to implement logistic regression. Python in Excel offers a better way for these users to conduct data analyses. I have a video comparing Solver vs statsmodels for linear regression: ua-cam.com/video/ekT4Dx0D0qY/v-deo.html
      3 - Python in Excel offers a very low barrier to entry for Excel users.
      Regarding #3, I have clients that are highly interested in Python in Excel due to their IT departments preventing local Python installations. However, these clients are already using Azure and they see this as very easy way to unlock advanced analytics in their work. It is worthy to note that these clients are not IT folks (e.g., developers), but are data-savvy business professionals.

  • @ОлегВоропаев-к6ъ
    @ОлегВоропаев-к6ъ 8 місяців тому +1

    Hello! Could Excel 2023 with the addition of Python and Copilot recognize the data type and approximate it correctly, and then find the transition points from one type of pattern to another?

    • @DaveOnData
      @DaveOnData  8 місяців тому +1

      Based on my experience, this is possible. The caveat would be that crafting the right prompt(s) can be tricky depending on the data.

    • @ОлегВоропаев-к6ъ
      @ОлегВоропаев-к6ъ 8 місяців тому +1

      @@DaveOnData I have several formulas that I use, can neural network combine them into one and output them as one formula?

    • @DaveOnData
      @DaveOnData  8 місяців тому +1

      Deep neural networks can learn very complex relationships from data. The trick is that they need a lot of examples from which to learn.
      So it is possible in theory.

  • @santoshgujar5237
    @santoshgujar5237 9 місяців тому +1

    Sir, 🙏🏼 i dont know much but i think python helps to process data very fast✨

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      It does, indeed! Although "fast" is a relative term. You may find my video interesting. It demonstrates importing 330,000 rows of data into Python in Excel: ua-cam.com/video/0ICD9zMMzZ4/v-deo.html

    • @santoshgujar5237
      @santoshgujar5237 9 місяців тому +1

      @@DaveOnData ✨🙏🏼✨

  • @JoeyCbr
    @JoeyCbr Місяць тому +1

    Really great explanation, I think VBA saves a hell of alot of time

    • @DaveOnData
      @DaveOnData  Місяць тому +1

      When it comes to automating Excel-based processes, it is the de facto standard!

    • @JoeyCbr
      @JoeyCbr Місяць тому +1

      I have a challenge now trying to get one of my macro sheets to run on an older windows 10 system with intel core duo processor, it works but a little slow, any tips?

    • @DaveOnData
      @DaveOnData  Місяць тому

      Unfortunately, I haven't used VBA in a really long time. I wouldn't know where to begin.

    • @JoeyCbr
      @JoeyCbr Місяць тому

      @@DaveOnData Update- It wasn’t an issue with the VBA script, the solution was to not do this A:A in the formulas of my sheet but limit it e.g A1:A500, got a lot of automation going on

  • @anonymoususer4356
    @anonymoususer4356 8 місяців тому +1

    Excellent explanation. Thank you!

    • @DaveOnData
      @DaveOnData  8 місяців тому

      You are welcome! Glad you found the video useful.

  • @Theuomr
    @Theuomr 2 місяці тому +2

    VBA was what made me want to start learning programming…
    I think VBA is more useful on Access than on Excel. Sadly, most of the content that we find online is teaching how to use it on Excel.

    • @DaveOnData
      @DaveOnData  2 місяці тому +2

      Curious - Why VBA with Access? Are you using it to build applications?

    • @Theuomr
      @Theuomr 25 днів тому

      @@DaveOnData Wasn’t exactly that. Now I remember…
      I was actually building a regular database, but I wanted to add some different features to it.

  • @Jay-fn1xt
    @Jay-fn1xt 9 місяців тому +1

    @Daveondata for a novice data analyst, do you recommend learning VBA or Python+Excel given the other tools available?

    • @DaveOnData
      @DaveOnData  9 місяців тому

      This is my opinion. Please take it as one perspective among many.
      I'm going to make an assumption that Microsoft Excel is your data analysis tool of choice. As a novice Excel Data Analyst, it is unlikely that you will need VBA anytime soon - maybe never. Python in Excel is really for more advanced analytics, so I would first focus on the fundamentals using out-of-the-box features. For example, my exploratory data analysis (EDA) with Excel tutorial series: ua-cam.com/play/PLTJTBoU5HOCRFQhfU1gg2ciNpS_evWKR7.html

  • @michaelt312
    @michaelt312 9 місяців тому +7

    Nice insight. I'm heavily in the PQ house. But watching your videos on Python has opened up some possibilities in my little brain.
    Thanks as always.

    • @DaveOnData
      @DaveOnData  9 місяців тому +2

      Wow! Thank you for taking the time to write these words - they are much appreciated. As I will discuss in my next video, I'm a huge fan of PQ in the right situations. In others, technologies like SQL and Python in Excel are the ticket.

    • @michaelt312
      @michaelt312 9 місяців тому +1

      @@DaveOnData, for me PQ has one advantage of being available going back to Excel 2010. Also a lot of hospitals don't allow Macros. But following you for Python and dipping my toes further into SQL.
      One of the hospitals here in Chicago I work the most with has Office 2016, very limited access to SQL and PBI. They allow one Director one folder so I can do somethings in VBA for her. But I agree with you.

  • @mjawadmirza
    @mjawadmirza 9 місяців тому +1

    Very well explained.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Thank you for the feedback, it is greatly appreciated!

  • @lunarmodule6419
    @lunarmodule6419 Місяць тому +1

    Before jumping into Python in Excel, Power BI shoild be used by the more advance users who need to do lower level data analytics.
    Power BI's AI will detect patterns for you and make suggestions right off the bat with the data present to it.

    • @DaveOnData
      @DaveOnData  Місяць тому +1

      Power BI is most definitely a powerful tool. However, I commonly see that professionals don't have access to Power BI, while they do have ready access to Excel. Also, with Copilot in Excel, you get similar AI capabilities.

    • @lunarmodule6419
      @lunarmodule6419 Місяць тому +1

      @DaveOnData Ah! I didn't know about Copilot in Excel thx. I'm a bit rusty - was in the Google ecosystem for a while. I'll look into it!

  • @SkyPacking
    @SkyPacking 3 місяці тому +4

    I can think of nothing more annoying than having a msgbox that pops up telling me to rename every new sheet

    • @DaveOnData
      @DaveOnData  3 місяці тому +2

      Agreed! However, the annoyance aligns with the hypothetical example.

    • @SkyPacking
      @SkyPacking 3 місяці тому +2

      @@DaveOnData true. The video was great!

  • @VastCNC
    @VastCNC 9 місяців тому +1

    What about Office Scripts? I think that’s the new VBA that Microsoft is pushing users towards.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Office Scripts is where Microsoft wants people to go. That being said, there is a large installed base of VBA code/users.
      In my experience, VBA isn't going anywhere anytime soon.

    • @brodriguez11000
      @brodriguez11000 9 місяців тому

      @@DaveOnData Being just 365 hurts it as well.

    • @japethstevens8473
      @japethstevens8473 9 місяців тому

      It's a glorified version of the code recorder, which has been in Office products for years. The recording facility was removed from Powerpoint some years ago because processing the actions became too difficult to code! So maybe that's MS' thinking about future Office products. Nothing you can't do in VBA - even making calls to the .Net and Windows libraries if you need lower level control.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      I respectfully disagree with this. Python in Excel does not compete with VBA or Office Scripts in any way. It is designed specifically to enable data analyses that are difficult or impossible to do with out-of-the-box Excel. For example, you could code up a random forest algorithm in VBA, but why would you do that when Python in Excel gives you access with just a few lines of code?
      Also, Python in Excel addresses a huge shortcoming in doing analytics with Excel - having to hand-roll worksheet templates using Solver. I have a video that discusses this: ua-cam.com/video/ekT4Dx0D0qY/v-deo.html

  • @whosestone
    @whosestone 7 місяців тому +1

    Python for the data analysis, VBA for controlling getting input data in environments that don't connect Data Verse or other outside data sources. (Think ETL actions across SharePoint/OneDrive locations.) _WS

    • @DaveOnData
      @DaveOnData  7 місяців тому

      @whosestone - What are your thoughts on Power Query for ETL?

    • @whosestone
      @whosestone 7 місяців тому

      @@DaveOnData Sure, but the issue is not a lot of businesses open up DataVerse or DataLake to operational level psudo-developers so you're stuck back into the VBA work-around for automation as the odds are power automate isn't connected either and you will not have Pro license.

  • @michaelhoney1973
    @michaelhoney1973 3 місяці тому +1

    Thanks David

    • @DaveOnData
      @DaveOnData  3 місяці тому

      You are welcome! I hope you found the video useful.

  • @rogeryang18
    @rogeryang18 6 місяців тому +1

    Python, VBA, M, SQL, Dax, even Excel worksheet functions - all great tools to me.

    • @DaveOnData
      @DaveOnData  6 місяців тому

      @rogeryang18 - Indeed! Python in Excel is another tool specifically designed for analytics.

  • @albertojohnycortizo8959
    @albertojohnycortizo8959 4 місяці тому +1

    It is worthless trying to use Python in my company as they would not allow IT any IDE to be installed due to compliance reasons (they block every, everything). So I got into VBA long time ago.

    • @DaveOnData
      @DaveOnData  4 місяці тому +2

      This is precisely why many of my clients are excited by Python in Excel - no local installation is required. Additionally, many of their IT departments are already using Azure, making Python in Excel a very attractive option for them.

  • @dontown-lb5ke
    @dontown-lb5ke 9 місяців тому

    My 1st ver. was ver. 5 (1993) which included VBA for 1st time. It came on 11 floppy discs.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Yes! I remember the days when I would install Office using 30+ 3.5" floppy disks. 🤣

  • @YouAreTheRaidBoss
    @YouAreTheRaidBoss 8 місяців тому +1

    Great video! Thank you! Subbed! :)

    • @DaveOnData
      @DaveOnData  8 місяців тому

      You are welcome! Glad you enjoyed the video.

  • @strayferal
    @strayferal 9 місяців тому +1

    Thank you for the explanation. I don't like they that the data flies to the cloud. It should stay local. Anyway. I'm not gonna use it in Excel.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      This is a complaint I frequently hear, and I understand it. There are also many organizations invested in Azure and they see the ease of use as a big win over maintaining local Python installations.

    • @strayferal
      @strayferal 9 місяців тому +1

      @@DaveOnData yes - I totally understand this is for the Azure users. It basically integrates with Azure, so from that point of view it makes perfect sense. However most users won't use Azure. And since most users also won't be into Data Engineering/Analysis, it does not make sense for them. Still - the news titles that "Python is available in Excel" come misleading, as people understand that it would be available as VBA and would do similar things and they think they could use it to a degree. Also providing a full-blown Python in Excel would be a total security compromise, but hey isn't VBA a security risk too? I remember the 2000s era when you would get each week at least one email with attached word/excel file with some VBA malware. So what. I guess solution is to still - limit the Python, therefore maybe provide a Python fork, with MS Office-specific functions, but all of it to function locally. Then MS would get more people into MS Office customizations. If anyone really needs it. Maybe the Libre Office folks would get this idea faster than MS guys and provide this for us, as sometimes it would be significantly faster to provide a Spreadsheet file + attached script for a task, instead to code a GUI from scratch and provide custom functionality... No idea how many would need it, but guess there is a market for such things.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      I would offer this for consideration. In my experience, most Excel users do not immediately associate Python in Excel with VBA/Excel automation. In fact, my experience has been most Excel users don't really know what the point of Python in Excel is. 🤣
      The best way I've found to explain Python in Excel is that it allows for advanced analytics that used to be hand-rolled using Solver or just weren't possible unless you purchased an Excel Add-in.

  • @Ugk871
    @Ugk871 9 місяців тому +1

    Thanks for the info

    • @DaveOnData
      @DaveOnData  9 місяців тому

      You are welcome! Unfortunately, Microsoft hasn't done a good job of making it clear how Python in Excel adds value to Microsoft Excel.

  • @miracaydin
    @miracaydin 15 днів тому

    perfect explanation i like it

  • @shabchique7149
    @shabchique7149 9 місяців тому +1

    Thank you Dave for the this great video with clear explanation. Love the shirt!

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Glad you liked the video and the t-shirt! 😁

  • @guocity
    @guocity 9 місяців тому +1

    vba on large dataset is too slow

    • @DaveOnData
      @DaveOnData  9 місяців тому

      That is always a consideration with Excel - make sure it will scale to the size of your data.
      One great thing about Python in Excel is that it provides a smooth path to scale.
      For example, moving to Jupyter Notebooks if needed.

  • @xabi-san
    @xabi-san Місяць тому +1

    Great video! 10 mins really insightful for someone like me, who doesn't knows what's what. Thanks!

    • @DaveOnData
      @DaveOnData  Місяць тому

      You are welcome! Glad to hear you found the content useful.

  • @morelearnmore
    @morelearnmore 9 місяців тому

    The python works on excel sheet, how to work

    • @DaveOnData
      @DaveOnData  9 місяців тому

      I'm not tracking your question. Can you elaborate?

  • @nikhilgoyal007
    @nikhilgoyal007 8 місяців тому +1

    thanks very much!

    • @DaveOnData
      @DaveOnData  8 місяців тому

      You are welcome! Glad you enjoyed the video.

  • @Popart-xh2fd
    @Popart-xh2fd 21 день тому +1

    BOTH

    • @DaveOnData
      @DaveOnData  21 день тому +1

      I respect this perspective. My experience has been that very few Excel users need VBA for automation. However, many professionals will benefit from the analytics that Python will provide.

  • @peterxxl1244
    @peterxxl1244 8 місяців тому +2

    Learn VBA! This language has been developed specifically for Office application development, while Python has only recently been "forced" into Office because this seems to be a new advertising strategy of the Microsoft masterminds. Python is not more powerful than VBA in anything, apart from the function libraries (written in other languages) that Python accesses; if NumPy or Panda were made directly available for Office, there would simply be no reason to use Python in Office. Learning VBA is also a good idea because VB (even if no longer developed by MS) is an excellent bridge language to Xojo, B4X and Mercury - an investment in the future.

    • @DaveOnData
      @DaveOnData  8 місяців тому

      Thank you for offering your perspective! What do you think about Python in Excel for helping users perform analytics?

    • @Ing_Luis_Quintero
      @Ing_Luis_Quintero 7 місяців тому

      NumPy and Panda are Python, you can't say there is no reason to use Python in Office xD

    • @daillengineer
      @daillengineer 3 місяці тому

      Yea it’s a lot easier to access API data from Python than VBA

  • @everything_strength
    @everything_strength 6 місяців тому +1

    just use python since you can always do more if you have to

    • @DaveOnData
      @DaveOnData  6 місяців тому

      This can be problematic for many professionals. For example, many cannot install Python locally due to IT restrictions.

  • @andrewlankford9634
    @andrewlankford9634 9 місяців тому +1

    Any halfway decent language replaces VBA.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Any suggestions for automating within Excel that IT will commonly allow? Office Script?

  • @stanislasgrare5046
    @stanislasgrare5046 9 місяців тому

    the thing is that microsoft does NOT control python. imagine large companies starts using it and in 10 years there is ok we have python 4 or something which is NOT compatible with python 2 (like python 2-3)
    for me i’m ok but imagine billion dollars banks….
    microsoft must control the programming language -> office script
    but well it’s fat far far behind VBA honestly. with vba alone you can do many things but office script you may need to use power automate aswell which makes everything a big mess

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Wouldn't any organization that uses Python for data analysis (e.g., Jupyter Notebooks) face the same risk?

  • @portlyoldman
    @portlyoldman 9 місяців тому +1

    The answer is definitely C# 😁

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Ha! Written a fair amount of C# code in my day. It's my 2nd favorite language for software engineering behind C++.

  • @_mikeusa
    @_mikeusa 9 місяців тому +1

    VBA is also used for interactive controls, for instance form buttons to add an entry to a worksheet.
    Unfortunately, Microsoft does not support VBA for iOS devices, which means a lot of Office automation is not available on that platform.
    iPhones and iPads have grown in the business world. So people are starting to abandon Microsoft as their goto one-stop-shop.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Interesting perspective! Personally, I'm not seeing this as all of my clients are Microsoft shops.
      In particular, my SMB clients are heavy Microsoft Excel users on Windows.

  • @shinjirigged
    @shinjirigged 6 місяців тому +1

    wishing for local python. MS is getting access to all that yummy scripts that users develop for them.

    • @DaveOnData
      @DaveOnData  6 місяців тому

      Arguably, they've been getting that for years now with Azure. 🤣

  • @octavianosoto7238
    @octavianosoto7238 3 місяці тому +1

    Teach me everything you know.

    • @DaveOnData
      @DaveOnData  3 місяці тому

      I've got many tutorials on my UA-cam channel. Check them out!

  • @edmel144
    @edmel144 13 днів тому

    How many excel users should be automating their process? All of them!

  • @AntoinetteFanny-l8s
    @AntoinetteFanny-l8s 3 місяці тому +1

    Walker Laura Jones Margaret Anderson Patricia

    • @DaveOnData
      @DaveOnData  3 місяці тому

      Thank you for suggesting the video! Much appreciated.

  • @datastop400
    @datastop400 5 місяців тому

    Python in Excel is more like Excel in Python. Which, of course, really doesn't work. Good advanced geeky stuff, but useless in 99% of most Excel environments. As David does acknowledge. If you're serious about Excel, don't waste time on Python. For advanced Excel, that really works, Power Query is the way to go! Otherwise, you are coding Python, not Excel...

    • @DaveOnData
      @DaveOnData  5 місяців тому

      I'd like to offer this up for consideration. For years, Dr. Wayne Winston has authored books on performing advanced analytics in Excel (e.g., using the Solver). Python in Excel is a much better way to do these things.

  • @MorrisonOscar-u6l
    @MorrisonOscar-u6l 2 місяці тому

    Jackson Angela Brown Kimberly Brown Thomas

  • @KhoaNguyen-fs6to
    @KhoaNguyen-fs6to 9 місяців тому

    Be hornest. Python performance is bad.

    • @DaveOnData
      @DaveOnData  9 місяців тому

      Compared to what? Performance is always relative

    • @vishwanathnb128
      @vishwanathnb128 9 місяців тому +1

      Compared to C++

    • @DaveOnData
      @DaveOnData  9 місяців тому +1

      Ah, C++ is my favorite software engineering language! To be honest, as much as I love C++, the speed of languages like R and Python really doesn't matter for analytics.