Тёмный
The Data Corner
The Data Corner
The Data Corner
Подписаться
Helping nerds automate mundane tasks and learn new skills along the way
VBA: 5 methods for finding the last row
4:10
4 месяца назад
Комментарии
@j_orpz
@j_orpz День назад
Excellent solution - this saves me a ton of time!
@azeem2k
@azeem2k 3 дня назад
Awesome. Thanks for the detailed walkthrough of the process ❤
@theDataCorner
@theDataCorner 3 дня назад
Thank you, Azeem, for long time fan of this channel!
@mustaqimjohari4276
@mustaqimjohari4276 4 дня назад
hello, i can not can not get the pdf_files[0] there is error saying the term 'pdf_files[0]' its not reconized
@theDataCorner
@theDataCorner 3 дня назад
Hello Mustaqim, Thats strange, can you share the code you are working on? May be you skipped the line where *pdf_files* was defined? Error code means variable named *pdf_files* doesnt exist which is why it cannot recognise it.
@lloydsalazar9940
@lloydsalazar9940 6 дней назад
How to get data from pdf that requires password?
@theDataCorner
@theDataCorner 3 дня назад
Hello Loyd, Please try below answer from *THE ARIN KAMBLE* on this page, seems to be working, I have not tested it myself. learn.microsoft.com/en-us/answers/questions/1725182/how-can-i-export-data-on-excel-from-a-password-pro
@zvit
@zvit 12 дней назад
"screenshot to image" not in video
@theDataCorner
@theDataCorner 11 дней назад
Hello This seems to be a typo in description, its actually Screenshot to Text (OCR). Thank you.
@ahmed007Jaber
@ahmed007Jaber 14 дней назад
thank you for this. good tricks just wonder if you could share the code in the comments. easier to avoid typos
@theDataCorner
@theDataCorner 11 дней назад
Thank you, Ahmed, Below is the link for the source code. Make sure to check other videos as well. codepad.site/edit/8r4ld901
@ahmed007Jaber
@ahmed007Jaber 10 дней назад
@@theDataCorner thank you. are you on linkedIn?
@ahmed007Jaber
@ahmed007Jaber 14 дней назад
Hi man. thanks for this. possible to share the code in the notes?
@theDataCorner
@theDataCorner 11 дней назад
Hello Ahmed, sure. Code is below, I will add in video description as well. codepad.site/edit/3w48mae6
@sarayumallam9507
@sarayumallam9507 15 дней назад
send source code and btw getting error like java not found , so help me resolve it , appreciate your work.
@theDataCorner
@theDataCorner 14 дней назад
Hello, if you have java installed already and still getting an error, then please try below steps, the java setup is bit tricky but hopefully a one time setup. from windows start option, search for *Environment Variables* and search for *Edit environment variables*, then follow below steps: **** Under the System Variables click Path and then press the Edit... instead of New. Then in the next screen (Edit environment variable for the Path variable) click New and add the address, e.g. C:\Program Files (x86)\Java\jre1.8.0_201\bin. Press OK and the Path variable will be appended/updated.**** Answer taken from below: stackoverflow.com/questions/54817211/java-command-is-not-found-from-this-python-process-please-ensure-java-is-inst Source code: codepad.site/edit/q9aig7rj
@sarayumallam9507
@sarayumallam9507 14 дней назад
@@theDataCorner thanks for your time bro , keep it up .
@theDataCorner
@theDataCorner 14 дней назад
Happy to help!
@agimadesimple
@agimadesimple 15 дней назад
Can I add images into my posts?
@theDataCorner
@theDataCorner 14 дней назад
Hello, I will check and advise.
@Timbollew
@Timbollew 21 день назад
Good solution. If you want to remove just blank columns you could also transpose then just apply the Remove Rows>Remove Blank Rows which results in a cleaner formula. I do like the flexibility of your solution though to remove columns with only 1 entry.
@theDataCorner
@theDataCorner 18 дней назад
Great idea, Tim, Thank you. And make sure to check out my other videos on the channel as well.
@sethuelijah5342
@sethuelijah5342 21 день назад
why the pdf say no preview
@theDataCorner
@theDataCorner 18 дней назад
Can you give me an exact time in the video where it says that? And i will look into it for you.
@AngelStickman
@AngelStickman 24 дня назад
I get a Runtime 429 error on the line with Set OutApp = CreateObject("Outlook.Application") and can not seem to trouble shoot the issue. I have tried early binding and resetting the .DLLs. Any suggestions?
@theDataCorner
@theDataCorner 24 дня назад
Hello Angel, Please try out below. To use early binding, you first need to set a reference to the Outlook object library, Microsoft Outlook xx.x Object Library (xx.x is version number and depends on outlook you have) Below code lines will need to be changed. Dim olApp as Outlook.Application Set olApp = New Outlook.Application answer taken from: stackoverflow.com/questions/60266233/i-am-getting-a-run-time-error-429-trying-to-get-excel-macro-to-send-a-email Please try it out and let me know.
@EvanGibbs-z4k
@EvanGibbs-z4k Месяц назад
Good solution, except you lose the column headers. Is there a way to do this without having to rename every column back to what it was?
@theDataCorner
@theDataCorner 25 дней назад
Thanks Evan, let me look into it and get back to you.
@ramisaahmed6903
@ramisaahmed6903 10 дней назад
Hi, this is also what I am curious about? Everything else works fantastically, but I do need to keep my headers.
@ramisaahmed6903
@ramisaahmed6903 10 дней назад
After playing around with it, if you demote the columns (select the Use Headers as First Row option), then do everything in the video, and then promote the columns (Use First Row as Headers) you'll keep your headers!
@theDataCorner
@theDataCorner 9 дней назад
Thank you Ramisa, thats a great solution. I found a workaround but your solution seems much better and elegant, appreciated!
@ramisaahmed6903
@ramisaahmed6903 8 дней назад
@@theDataCorner Happy it worked out :)
@JohnRobertEnriquez
@JohnRobertEnriquez Месяц назад
Is their a way that I can reply that email directly to that to-do list I created?
@theDataCorner
@theDataCorner Месяц назад
Hey, John. Do you want to reply to the same/original email? its an interesting question, let me research a bit and get back to you.
@JohnRobertEnriquez
@JohnRobertEnriquez Месяц назад
Hi, Ye. I try to do make it work like that but no luck. I think it’s much convenience if we can reply directly to that to do list instead of searching it in the inbox to reply.
@theDataCorner
@theDataCorner 9 дней назад
Hello, i was able to find a way to do this, i will make a small video on it and share link here.
@AnandaSim
@AnandaSim Месяц назад
I was just curious - you can convert all the "dates" of text data type to number/date data type by multiplying by 1, no need to program?
@theDataCorner
@theDataCorner Месяц назад
Hey Ananda, Thats a very clever way to fix dates, not many people know it. However, multiplying by 1 can only fix dates which are already in correct format as per US dates mm/dd/yyyy and are recognised at text instead of dates. In such situations where you have dd/mm/yyyy, multiplying by 1 doesnt fix it. Check out this youtube short for another quick way to fix such dates. ru-vid.com9T7d_AEGpvg?feature=share
@azeem2k
@azeem2k Месяц назад
Great helpful content. Keep it up ❤
@theDataCorner
@theDataCorner Месяц назад
Thank you 🙌
@shilpabera_dhumal4707
@shilpabera_dhumal4707 Месяц назад
How to do the same use vba code
@theDataCorner
@theDataCorner Месяц назад
Hello I will create a small youtube video explaining how to do this, I will add a link here once I am done, should be soon.
@varunkhandelwal3066
@varunkhandelwal3066 2 месяца назад
Thank you sir But in my excel there is nothing like this in home tab. Which excel support this?
@theDataCorner
@theDataCorner 2 месяца назад
Hello, per google, please try below: go to File --> Options --> Add-Ins --> Manage Excel Add-ins --> Go, and then check the Analysis ToolPak box and click OK
@oloyedeabdulganiyu2174
@oloyedeabdulganiyu2174 2 месяца назад
Good work there, Funny enough, I came across this video because I'm doing something in relation to proforma invoice
@theDataCorner
@theDataCorner 2 месяца назад
Glad it was helpful! I have another VBA video where you can open multiple PDF files in one click, it can also work on visible/filtered rows only, make sure to check it out. Thank you. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-V33cB3HfgZ8.html
@SPECTRE559
@SPECTRE559 2 месяца назад
Please provide the link to the excel file
@theDataCorner
@theDataCorner 2 месяца назад
Hello, please access the excel file using below link: docs.google.com/spreadsheets/d/1e0u6WVSPxBNJTFr1bckRMbJw2zdI9Qou/edit?usp=sharing&ouid=110820750791230145171&rtpof=true&sd=true Also adding link to the code: codefile.io/f/rMHi4ctl6X
@azeem2k
@azeem2k 2 месяца назад
Very helpful video. Thanks for this ❤
@theDataCorner
@theDataCorner 2 месяца назад
Thank you for watching. I hope you learnt something new.
@azeem2k
@azeem2k 2 месяца назад
Great video! Your explanation of PowerToys was super clear and helpful. ❤
@theDataCorner
@theDataCorner 2 месяца назад
Thank you Azeem, hope you enjoyed the content!
@julianwilliams3721
@julianwilliams3721 3 месяца назад
0:00
@A1exRud
@A1exRud 3 месяца назад
Hi, I am having a crazy task that might be impossible to execute. I already processed the table using PQ, so my table is dynamic and information may in and out depending on my Status. When project is "Done" it's removed from the final table, when project has an "In Progress" status it gets into the final table for my analysis where I have some manual formulas (that is no embeded in PQ) and Text. Hope this step is clear for now! And the most funny issue is that in this final table (excel table that is refreshed) I am adding a column, when I enter a formula there is no issue, because this formula applies to all active cells in the table right? But when I add some "text" - it does not work like a formula and "text" remain in the same cells in spite of my projects may in and out, and "text" does not match the project anymore, does excel have a solution here? Where I would like that my "Text" will be dynamically moved up and down or removed if project goes out from the table :) I can not find the answer unfortunately
@theDataCorner
@theDataCorner 3 месяца назад
Hey, that is an interesting issue. From what I understood, the text corresponds to the project, and I am assuming each project has some unique identifier. One suggested way would be to create a helper table with Project ID and notes, and then merge this table with your final table using Project ID. Let me know if that solution works out for you. Cheers!
@azeem2k
@azeem2k 3 месяца назад
very useful. thanks for this🌻
@theDataCorner
@theDataCorner 3 месяца назад
Thank you Azeem, appreciate it.
@azeem2k
@azeem2k 3 месяца назад
intresting stuff!
@theDataCorner
@theDataCorner 3 месяца назад
Thank you, Azeem.
@mayoLJS
@mayoLJS 3 месяца назад
Waiting for ep3 :)
@theDataCorner
@theDataCorner 3 месяца назад
Thank you. Did you watch the full video? do you have any feedback? Also, are there any specific topics you want to see a video on? Appreciate it!
@avilpinto1818
@avilpinto1818 3 месяца назад
Also this can be achieved even with DAX in power pivot.
@theDataCorner
@theDataCorner 3 месяца назад
true, but DAX means learning a new skill, which can only be used inside of Microsoft Excel or PowerBI. Why not learn an open source tool which offers much more flexibility and can be used together with other tools/libraries.
@avilpinto1818
@avilpinto1818 3 месяца назад
Dear this can be achieved in excel by dropping the same column 3 times in values and modifying the value by
@theDataCorner
@theDataCorner 3 месяца назад
Thank you, I tried it and it actually works. Solid stuff mate!
@GovindSoniDotCom
@GovindSoniDotCom 3 месяца назад
wow…struggling business users to make shift from / alongwith excel to python.. think the way you expain is what we need… smashed the buton too…
@theDataCorner
@theDataCorner 3 месяца назад
Thank you Govind. Its not necessary to shift to one technology or other, both can work pretty well in tandem. Python is supposed to supercharge your existing skills.
@ThepExcel
@ThepExcel 3 месяца назад
the only reason to switch to python for me is to do machine learning stuff...
@theDataCorner
@theDataCorner 3 месяца назад
Thank you and thats great to hear. I work in an accounts department and have streamlined and automated a lot of things over the time using python. Looking forward to share the knowledge with the world.
@ThepExcel
@ThepExcel 3 месяца назад
@@theDataCorner yes normal python can automate, but not python in excel
@theDataCorner
@theDataCorner 3 месяца назад
@@ThepExcel agreed, I've tested python in excel and it's ok for basic tasks.
@dafeac
@dafeac 3 месяца назад
What, of course you can do that in excel using dax !
@GovindSoniDotCom
@GovindSoniDotCom 3 месяца назад
will learn python to dax then if have to choose one?
@theDataCorner
@theDataCorner 3 месяца назад
thats true, but I believe due to high learning curve of DAX, it makes more sense to learn it if you want to use Power Pivot and ultimately PowerBI dashboards/reports. While Python is a general purpose language and not too difficult to learn even with non coding background. It is open source and there are ton of libraries available with thorough documentation/walkthroughs.
@ivandanielacerogonzalez4798
@ivandanielacerogonzalez4798 3 месяца назад
Great solution! Just wondering, what would you recommend if my dataset exceeds the column limit? Asking because I'm working with a dataset with +80k records and need ideas. Thanks!
@theDataCorner
@theDataCorner 3 месяца назад
Hello Ivan, Thank you for the positive feedback, it means a lot. For dataset with 80k+ rows, I would recommend using either R or python. R I have observed to be significantly faster in loading data compared with python pandas, you can try out both if you need more help, leave a comment.
@mohsinkhan-mk-
@mohsinkhan-mk- 3 месяца назад
Excellent brother 👏🏻
@theDataCorner
@theDataCorner 3 месяца назад
Thank you. Is the video helpful and explains the concepts clearly enough?
@isaacnord261
@isaacnord261 4 месяца назад
Can you filter for multiple values at the same time using a table?
@theDataCorner
@theDataCorner 3 месяца назад
He Isaac, Thats a very interesting question, I will look into it and get back to you. Thank you and check out my other videos in the meantime.
@aks3743
@aks3743 4 месяца назад
Nice tutorial ❤
@theDataCorner
@theDataCorner 4 месяца назад
Thank you. If you like this video, make sure to check out other openpyxl and xlwings videos as well.
@xpersion
@xpersion 4 месяца назад
DOnt sharing code not clean explaining why u make video ?
@theDataCorner
@theDataCorner 4 месяца назад
Hello, thank you for watching the video. You can access the code at below link, make sure to install relevant libraries. If you are still having issues understanding the code, let me know and I will be happy to explain. codepad.site/edit/q9aig7rj
@azeem2k
@azeem2k 4 месяца назад
Nice one, good to learn different methods for finding the last row. 😊
@theDataCorner
@theDataCorner 4 месяца назад
Thank you Azeem. Appreciated.
@prakharjain8716
@prakharjain8716 5 месяцев назад
What was the formatting you did at 1:44 ?
@theDataCorner
@theDataCorner 5 месяцев назад
Hello. these are Jupyter code cells inside of VS Code using interactive window. These are really helpful when I need to run a code block one by one, instead of running everything altogether. You can read more on it on below link: code.visualstudio.com/docs/python/jupyter-support-py
@laalbujhakkar
@laalbujhakkar 5 дней назад
@@theDataCorner would be nice to know what extension you are using. any pointers? thanks!
@theDataCorner
@theDataCorner 3 дня назад
@@laalbujhakkar Hello, other than bunch of themes, I have DataWrangler - very helpful for data analysis folks. IntelliCode - Dont use it much Jupyter Jupyter Cell tags R - Dont use much of R Script Codiumate - Have use a bit but it was causing a lot of memory usage. I jumped from pycharm to vscode due to speed, so dont want to slow it down.
@sainitij1254
@sainitij1254 5 месяцев назад
Please make a video how to post article on LinkedIn. I have 120+ articles and want to post on LinkedIn as article Not as post
@theDataCorner
@theDataCorner 5 месяцев назад
Hello. I will look into it. Thank you for watching.
@sainitij1254
@sainitij1254 5 месяцев назад
@@theDataCorner I am waiting for the video. No video is available on this topic. Be the first one.
@sainitij1254
@sainitij1254 5 месяцев назад
@@theDataCorner did you get any way to automate it,
@theDataCorner
@theDataCorner 5 месяцев назад
@@sainitij1254 I have checked and the video uses *Post an article* You can see at 0:12 second mark, it says post as article. Please follow along the video and let me know if it gets your problem resolved. Thank you.
@user-wx5jn6zy4g
@user-wx5jn6zy4g 5 месяцев назад
It helps a lot! I've tried many times refreshAll() and my Excel file always remains the same, find the answer here.
@theDataCorner
@theDataCorner 5 месяцев назад
I am glad it helped. I actually made the full video using Power Automate and Microsoft Scripts but later realized that Power automate right now only supports refresh queries that are connected to Power BI, no other refreshes are supported. Lets hope Microsoft fixes it soon!
@azeem2k
@azeem2k 6 месяцев назад
Thanks for the video. R is crazy fast 😮
@theDataCorner
@theDataCorner 6 месяцев назад
You bet! Thank you, I hope you enjoyed the video!
@AEARArg
@AEARArg 6 месяцев назад
Great walkthrough
@theDataCorner
@theDataCorner 6 месяцев назад
Thank you, I appreciate it. If you find extracting data from PDF to excel interesting, do check out my latest video where I extract PDF data using R script, Python libraries and Microsoft Power Query.
@atefbo6363
@atefbo6363 6 месяцев назад
Thank you for your effort. I have question : what if i want to save + close multiple open excel files without changing the name ?
@theDataCorner
@theDataCorner 6 месяцев назад
Thank you Atef, I appreciate it. Please use below code and let me know if it works for your task, it will save and close all open excel files. If you want me to make a small video explaining the code, let me know as well. Sub SaveAndCloseWorkbooks() Dim wb As Workbook ' Disable display alerts to suppress warnings Application.DisplayAlerts = False ' Loop through all open workbooks For Each wb In Workbooks ' Save changes if the workbook has been modified If wb.Saved = False Then wb.Save End If Next wb ' Close all open workbooks without warnings Workbooks.Close ' Enable display alerts again Application.DisplayAlerts = True End Sub
@azeem2k
@azeem2k 7 месяцев назад
Haha nice one.
@theDataCorner
@theDataCorner 7 месяцев назад
Glad you enjoyed it and dont try it at office :D
@jacobsoby3910
@jacobsoby3910 7 месяцев назад
LoLz... Now we just need to replace the PC with a microcontroller to run the python to simulate a USB mouse. We also need targeted clicks and simulated workloads, like typing meeting notes based on zoom meeting audio 😁
@theDataCorner
@theDataCorner 7 месяцев назад
Lol, with the speed AI and tech is progressing, it's not too far. Interesting, I know few organisations who track employees on whether their computer mouse is active or not, and then asks for an explanation for being away from the desk.
@Aankit9000
@Aankit9000 7 месяцев назад
Thanks for revealing this now I won't let my employees trick me with python😂
@theDataCorner
@theDataCorner 7 месяцев назад
lol, well, now I have to find a new method to help employees out... :D
@azeem2k
@azeem2k 7 месяцев назад
Great video, will give this a try myself. 🤞
@theDataCorner
@theDataCorner 7 месяцев назад
Thank you so much for the kind words! I'm thrilled that you found the video helpful and that you're inspired to give it a try. I appreciate your support!
@Criscrosaplesos
@Criscrosaplesos 7 месяцев назад
You are my hero! EDIT: cant get it to work. No matter what I do, always says Error! Unknown Encoder
@theDataCorner
@theDataCorner 7 месяцев назад
Hello, This uses some libraries of python as well, including the numpy library. Can you screenshot the error and link it here? I am using it on regular basis and it works fine. I am currently running python 3.9.0, numpy version is 1.26.2
@Criscrosaplesos
@Criscrosaplesos 7 месяцев назад
@@theDataCorner you deleting my responses is sketchy.
@theDataCorner
@theDataCorner 7 месяцев назад
I don't believe I removed it, but I was able to read it.l before it disappeared. I will research a bit to see what can be tried.
@Criscrosaplesos
@Criscrosaplesos 7 месяцев назад
@@theDataCorneralrighty then, good luck! In the meantime, ive reverted to 3.9.0 to see if anything changes
@Criscrosaplesos
@Criscrosaplesos 7 месяцев назад
@@theDataCorner I figured it out! Have to use Power-shell or Windows Terminal for power-shell to get Auto-Editor to work with newest versions of Python and Pip
@GSMHMD
@GSMHMD 7 месяцев назад
Thanks , i need help , to create planing for my employees , work 28 days and off for 29 days, i have a file excel , can you help me ?
@theDataCorner
@theDataCorner 7 месяцев назад
Hello Ahmed, thank you for watching the video. and yes, please share your excel file along with requirements/issue at thedatacorner5@outlook.com and we will see what we can do.