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

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 141

  • @DaveOnData
    @DaveOnData  6 месяцев назад +4

    Stuck waiting on Microsoft to grant you access to Python in Excel? Don't wait! Check out my video and start building skills NOW: ruclips.net/video/0iV4FtpSriY/видео.html

    • @phandongexcel
      @phandongexcel 6 месяцев назад +1

      I like this video ❤❤❤

  • @stevewolfe6096
    @stevewolfe6096 6 месяцев назад +7

    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  6 месяцев назад

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

  • @PS-zw4gi
    @PS-zw4gi 3 месяца назад +6

    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  3 месяца назад

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

  • @japethstevens8473
    @japethstevens8473 6 месяцев назад +3

    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  6 месяцев назад +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 RUclips video comparing Solver to Python in Excel for logistic regression: ruclips.net/video/ekT4Dx0D0qY/видео.html
      3 - While it doesn't use a wide dataset, I have a RUclips video showing the performance of Python in Excel using 330,000 rows of data that might interest you: ruclips.net/video/0ICD9zMMzZ4/видео.html

  • @kyoujinko
    @kyoujinko 6 месяцев назад +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  6 месяцев назад +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: ruclips.net/video/ekT4Dx0D0qY/видео.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.

  • @peterk6215
    @peterk6215 6 месяцев назад +5

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      My pleasure! I hope you found the content useful.

  • @shnam928
    @shnam928 14 дней назад +1

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

    • @DaveOnData
      @DaveOnData  13 дней назад +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.

  • @geerliglecluse5297
    @geerliglecluse5297 6 месяцев назад +5

    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  6 месяцев назад

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

    • @RedShiftGalaxy
      @RedShiftGalaxy 6 месяцев назад +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  6 месяцев назад

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

    • @geerliglecluse5297
      @geerliglecluse5297 6 месяцев назад +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 6 месяцев назад

      @@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.

  • @AntoinetteFanny-l8s
    @AntoinetteFanny-l8s 3 дня назад +1

    Walker Laura Jones Margaret Anderson Patricia

    • @DaveOnData
      @DaveOnData  3 дня назад

      Thank you for suggesting the video! Much appreciated.

  • @tadmarshall2739
    @tadmarshall2739 6 месяцев назад +3

    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  6 месяцев назад

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

  • @richardcarlin1332
    @richardcarlin1332 6 месяцев назад +3

    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  6 месяцев назад +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.

  • @peterwooldridge7285
    @peterwooldridge7285 6 месяцев назад +3

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад +1

      Thank you! I am glad you enjoyed the video.

  • @octavianosoto7238
    @octavianosoto7238 5 дней назад +1

    Teach me everything you know.

    • @DaveOnData
      @DaveOnData  5 дней назад

      I've got many tutorials on my RUclips channel. Check them out!

  • @SkyPacking
    @SkyPacking 6 дней назад +1

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

    • @DaveOnData
      @DaveOnData  6 дней назад +1

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

    • @SkyPacking
      @SkyPacking 6 дней назад

      @@DaveOnData true. The video was great!

  • @ThepExcel
    @ThepExcel 6 месяцев назад +1

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад +2

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад +2

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

    • @slezakmichal
      @slezakmichal 6 месяцев назад +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  6 месяцев назад +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 6 месяцев назад +1

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

  • @peterxxl1244
    @peterxxl1244 5 месяцев назад +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  5 месяцев назад

      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 4 месяца назад

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

    • @daillengineer
      @daillengineer 13 дней назад

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

  • @albertojohnycortizo8959
    @albertojohnycortizo8959 Месяц назад +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  Месяц назад +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.

  • @ElegantSolutions
    @ElegantSolutions 6 месяцев назад +3

    Excellent! Very clearly explained. Thanks

    • @DaveOnData
      @DaveOnData  6 месяцев назад +1

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

  • @spongebobby188
    @spongebobby188 2 месяца назад +2

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

    • @DaveOnData
      @DaveOnData  2 месяца назад +1

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

  • @JohnCannie
    @JohnCannie 9 дней назад +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  8 дней назад

      Glad you found some aspect of the video useful!

  • @jhkim156
    @jhkim156 6 месяцев назад +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  6 месяцев назад +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

  • @tomoleusz
    @tomoleusz 5 месяцев назад +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  5 месяцев назад +1

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

  • @shinjirigged
    @shinjirigged 3 месяца назад +1

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

    • @DaveOnData
      @DaveOnData  3 месяца назад

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

  • @whosestone
    @whosestone 4 месяца назад +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  4 месяца назад

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

    • @whosestone
      @whosestone 4 месяца назад

      @@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.

  • @mcwahaab
    @mcwahaab 5 месяцев назад +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  4 месяца назад

      @mcwahaab - I cover your question in this video: ruclips.net/video/rMjtcsmHf9g/видео.html

    • @mcwahaab
      @mcwahaab 4 месяца назад

      @@DaveOnData - Thanks a lot. Appreciate

  • @Jay-fn1xt
    @Jay-fn1xt 6 месяцев назад +1

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      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: ruclips.net/p/PLTJTBoU5HOCRFQhfU1gg2ciNpS_evWKR7

  • @michaelhoney1973
    @michaelhoney1973 12 дней назад +1

    Thanks David

    • @DaveOnData
      @DaveOnData  12 дней назад

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

  • @engineeringinspectionsirel1385
    @engineeringinspectionsirel1385 6 месяцев назад +2

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

  • @KeithJBrett
    @KeithJBrett 3 месяца назад +1

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

    • @DaveOnData
      @DaveOnData  3 месяца назад

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

  • @strayferal
    @strayferal 6 месяцев назад +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  6 месяцев назад

      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 6 месяцев назад +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  6 месяцев назад

      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.

  • @everything_strength
    @everything_strength 3 месяца назад +1

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

    • @DaveOnData
      @DaveOnData  3 месяца назад

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

  • @ОлегВоропаев-к6ъ
    @ОлегВоропаев-к6ъ 6 месяцев назад +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  6 месяцев назад +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ъ 5 месяцев назад +1

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

    • @DaveOnData
      @DaveOnData  5 месяцев назад +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.

  • @KriegAdler09
    @KriegAdler09 6 месяцев назад +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  6 месяцев назад +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 6 месяцев назад +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  6 месяцев назад +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.

  • @andrewlankford9634
    @andrewlankford9634 6 месяцев назад +1

    Any halfway decent language replaces VBA.

    • @DaveOnData
      @DaveOnData  6 месяцев назад

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

  • @YouAreTheRaidBoss
    @YouAreTheRaidBoss 5 месяцев назад +1

    Great video! Thank you! Subbed! :)

    • @DaveOnData
      @DaveOnData  5 месяцев назад

      You are welcome! Glad you enjoyed the video.

  • @santoshgujar5237
    @santoshgujar5237 6 месяцев назад +1

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад +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: ruclips.net/video/0ICD9zMMzZ4/видео.html

    • @santoshgujar5237
      @santoshgujar5237 6 месяцев назад +1

      @@DaveOnData ✨🙏🏼✨

  • @shabchique7149
    @shabchique7149 6 месяцев назад +1

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад +1

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

  • @anonymoususer4356
    @anonymoususer4356 5 месяцев назад +1

    Excellent explanation. Thank you!

    • @DaveOnData
      @DaveOnData  5 месяцев назад

      You are welcome! Glad you found the video useful.

  • @VastCNC
    @VastCNC 6 месяцев назад +1

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      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 6 месяцев назад

      @@DaveOnData Being just 365 hurts it as well.

    • @japethstevens8473
      @japethstevens8473 6 месяцев назад

      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  6 месяцев назад

      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: ruclips.net/video/ekT4Dx0D0qY/видео.html

  • @portlyoldman
    @portlyoldman 6 месяцев назад +1

    The answer is definitely C# 😁

    • @DaveOnData
      @DaveOnData  6 месяцев назад

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

  • @dontown-lb5ke
    @dontown-lb5ke 6 месяцев назад

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

    • @DaveOnData
      @DaveOnData  6 месяцев назад

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

  • @datastop400
    @datastop400 2 месяца назад

    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  2 месяца назад

      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.

  • @MaureenPesch
    @MaureenPesch 6 месяцев назад +1

    Thank you for that information- excellent!

    • @DaveOnData
      @DaveOnData  6 месяцев назад

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

  • @guocity
    @guocity 6 месяцев назад +1

    vba on large dataset is too slow

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      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.

  • @rogeryang18
    @rogeryang18 3 месяца назад +1

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

    • @DaveOnData
      @DaveOnData  3 месяца назад

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

  • @stanislasgrare5046
    @stanislasgrare5046 6 месяцев назад

    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  6 месяцев назад

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

  • @nikhilgoyal007
    @nikhilgoyal007 5 месяцев назад +1

    thanks very much!

    • @DaveOnData
      @DaveOnData  5 месяцев назад

      You are welcome! Glad you enjoyed the video.

  • @mjawadmirza
    @mjawadmirza 6 месяцев назад +1

    Very well explained.

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      Thank you for the feedback, it is greatly appreciated!

  • @Ugk871
    @Ugk871 6 месяцев назад +1

    Thanks for the info

    • @DaveOnData
      @DaveOnData  6 месяцев назад

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

  • @morelearnmore
    @morelearnmore 6 месяцев назад

    The python works on excel sheet, how to work

    • @DaveOnData
      @DaveOnData  6 месяцев назад

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

  • @KhoaNguyen-fs6to
    @KhoaNguyen-fs6to 6 месяцев назад

    Be hornest. Python performance is bad.

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      Compared to what? Performance is always relative

    • @vishwanathnb128
      @vishwanathnb128 6 месяцев назад +1

      Compared to C++

    • @DaveOnData
      @DaveOnData  6 месяцев назад

      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.

  • @michaelt312
    @michaelt312 6 месяцев назад +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  6 месяцев назад +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 6 месяцев назад +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.

  • @_mikeusa
    @_mikeusa 6 месяцев назад +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  6 месяцев назад

      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.

  • @giorgiobarchiesi5003
    @giorgiobarchiesi5003 6 месяцев назад +9

    Generally speaking, Python is the new javascript. A scripting language with strong ambitions to become a programming language. As a professional developer, I’m not interested, and this is what I tell RUclips everytime it suggests a video about Python: “not interested”. But it keeps on suggesting… there must be a bug. Perhaps RUclips is written in Python. 😂

    • @DaveOnData
      @DaveOnData  6 месяцев назад +2

      Such a refreshing take on the popularity of Python! What's your favorite language for software engineering?
      Mine is C++. Unfortunately, I haven't needed to use it for many years.

    • @giorgioripani8469
      @giorgioripani8469 6 месяцев назад +7

      Python IS a programming language. Much easier than Java, sometimes at the same speed of Java, but with a huge number of libraries and framework for web apps, data science, numerical anaylisis, simulation and so on and so forth.

    • @artil1
      @artil1 6 месяцев назад +3

      are you high?

    • @giorgiobarchiesi5003
      @giorgiobarchiesi5003 6 месяцев назад +8

      @@DaveOnData Most of my customers tell me what language I must use. Just in case I might retire or die, I suppose. So I actually use a dozen of languages, including Python.
      My favorite languages are those that you can rely upon when developing big projects, so they must provide type-safety and null-safety, as is the case with C# or Dart, but also C++ or Java; which one I prefer in a specific case depends on the application.
      As far as Excel is concerned, sure Python would be better than VBA. But if the code size increases too much, perhaps Excel itself is not the right tool.
      Thanks for the video, I hope my first comment didn’t seem impolite.

    • @vikaspoddar001
      @vikaspoddar001 2 месяца назад +1

      Sir you don't have any idea, what are you talking about 😅
      Python was created in 1991 for scripting at a small startup by Guido ( now works at Microsoft and helped in developing the python for excel ), python is a full fledged programming language