@JuanRuas welcome to the forum
The code behind pyrevit buttons can be opened by holding the alt key while clicking on the button.
You can then copy the script to your own extension (see the Create Your First Command guide for more info) and edit it to add what you need.
As per your specific question, I would say that in programming almost anything is possible but it costs time or money or both
One of the challenges I see from your example is that the excel file needs to be updated and not created from scratch, something that the xlsxwriter library shipped with pyRevit can’t do; you should use the excel interops (slow and tedious) or use a cpython script and leverage openpyxl, that has to be packaged into a library extension.
I must say that what you want is so specific to your case (find the first free column, place day, month and year in separate vertical cells, write the revision of the sheet only if it has been published) that you have to try developing it yourself and come back here if you encounter any issue.
Having a developer in your firm certainly helps for these kind of customization.
Good luck and happy pyrevit journey!
@andreasd811 how is that similar to what @JuanRuas is asking?
The programming world is already scary for newcomers, try not to confuse them even more