Skip to content
Advertisement

Tag: excel

xlwings alternative on Linux

I have a small Python script with the purpose of updating certain cells of an Excel sheet stored on Onedrive. In particular, the Excel workbook contains a price list in one sheet, a list of variables (e.g., currency exchange rate) that are to be updated automatically via Python in the second sheet, and a history of currency exchange rates in

implementing Excel if-like function with AWK

I have a question about Excel-if-function implementation with AWK. I have a csv file having eight columns like below: Each field can take only integer values from 1 to 6. I would like to give one point if the first column is 1. In other cases, the score would be zero. In this MWE case, the point for all three

Hide Multiple Excel Worksheets

I am using the Perl module Excel::Writer::XLSX to write an Excel workbook in Linux. I am writing to three separate worksheets and am trying to hide the first two so that only the third worksheet is visible. Perl Code: Instead, using the code below, only the first worksheet tab is being hidden. What am I doing wrong? Answer Please activate

How to export daily disk space usage?

I am new to scripting. Is it possible to export the disk space usage of a linux server to an excel shell(.csv) sheet daily ? If so, what will be the scripting for that? Answer Use awk to parse df result: Assuming ; is your csv separator, then: gives: In a full script with the date:

Command line execution of Excel functions

Can Excel functions be called from the command line? I don’t want any interactions with any file. I’d just like to use these functions the way other command line tools work. It should merely serve some one-time purpose. For instance, I’d like it if there were a way to do something like this: Of course, not all of the available

Easy way to fill in an Excel file with Python

Let us say I have an excel file called test.xlsx, which is a workbook with three sheets, where sheet1 is called hello1, sheet2 two is called hello2, and sheet3 is called bye. Now, I’d like to read the file, and then re-write the same file but ONLY change the values in (column B, row 11) of the sheet named hello2,

Running Excel Macros Automatically under Linux

Part of the software I work on uses an Excel sheet to store the user error messages & their translations. We run a macro which generates a set of internationalized text files & matching header files that are then copied into our version control system (the spreadsheet is also in Version Control) and used as part of our build. I’d

Advertisement