After the article for introduction to Graphs in Python, I have decided to put the graph theory into practice and start looking for the shortest points between points in a city. Parts of the code are inspired from the book …

Shortest route between points in a city – with Python and OpenStreetMap Read more »

Working with Python and Excel is actually quite handy, especially if you are into it. In this article, you can see how to create Excel files, write data and formulas into them and read these. Pretty much simple CRUD methods. …

Simplifying Excel Tasks with Python: Data Handling and Testing Tutorial Read more »

Following the step-by-step original tutorial here, I have created a simple Azure video tutorial, explaining how to deploy a python flask web app with local git. The idea to have something on your own PC and then simply using this …

Azure – Quickstart: Deploy a Pyton Flask web app to Azure App Service – With YouTube Video Read more »

The idea of the article is to provide a Python code that does the following: Takes a list or DataFrame; Splits it into quite a few smaller parts; Writes each one on a separate Excel worksheet; Pretty much like this: …

Python – Write a DataFrame or List to multiple tabs in Excel Read more »

Same article, but for Python is here – https://www.vitoshacademy.com/python-split-worksheet-to-worksheets-save-excel-worksheets-to-csv/ This article does 2 things: Splits one worksheet to multiple worksheets Then goes through the worksheets and saves them as *.CSV files I hope that is enough for you. Ok, so …

VBA – Split worksheet to worksheets, save Excel worksheets to csv Read more »

Option Compare  in VBA is the thing, that will save you ugly stuff like this one: Sub Testing() Dim userInput As String userInput = InputBox(“What is decimal 4094 in hex?”) If UCase(userInput) = UCase(“ffe”) Then Debug.Print “You have correctly written …

VBA – Option Compare (Text || Binary || Database) Read more »

Getting N-th string between two substrings might sound a bad idea, until you do not need it. And with VBA, you better have something prepared. So, imagine the following XML (from this article here): <FootballInfo> <row> <ID>1</ID> <FirstName>Peter</FirstName> <LastName>The Keeper</LastName> …

VBA – Get Substring Between 2 Substrings – Locate value of Nth XML Read more »

Ok, the title became too lengthy, but the idea is to try to duplicate the beauty of what this formula does: =INDEX(myTable[#All],MATCH(1, (myTable[[#All],[Profit]]=C9)* (myTable[[#All],[Currency]]=D9)* (myTable[[#All],[Value]]=B9),0),1) And this is the cell of the formula above: Anyway, the strange thing was that …

VBA – VLookup with Multiple Criteria in Excel without Excel Formula but with VBA Read more »

Transforming Range to Array in VBA is actually a one liner – we take the range and we assign it to a variant: Dim myRange As Range Set myRange = Range(“a1″).CurrentRegion Dim myArray As Variant myArray = myRange The “strange” …

VBA – Ubound of Multidimensional Array or How to Get What We Need? Read more »