How do I add a column to my dataframe that says what sheet name each row is...
I am working with a Dataframe that has five sheets and I want to use four of them. So I can load it in:df = pd.read_excel('***.xls', sheet_name=['a', 'b', 'c', 'd'])But now I would like to add a column...
View ArticleHow do I recreate an Excel formula which calls TREND() in C#?
I'm building a .net page to mimic a spreadsheet. The sheet contains this formula=ROUND(TREND(AA7:AE7,AA$4:AE$4,AF$4),1) Can someone provide the C# equivalent of TREND() ? Alternatively if anyone can...
View ArticleUnable to get named range in Excel
I have a worksheet where there is a chart on the first sheet, showing some data from a named range. The named range looks like this:=OFFSET(chart_data!$B$2,0,0,COUNTA(chart_data!$B:$B)-1)where...
View ArticleTime Tracking with value of 1 or zero in column 0900 to column 0800 [closed]
i made a tracking tracking in excel worksheet using this...
View ArticleVBA EXCEL formula in a String
Hi I would like to put into a STRING the following formulaDim stringAppoggio As String Dim myMonth As String myMonth = "January 2020"...
View ArticleChanging language version in Excel VBA - from GER to ENG
After Microsoft Office updated to the 2016 version I've found that the VBA interface is in German. Does anyone know how I can restore it to English as I don't know German?Anticipating your further...
View ArticleDealing with a worksheet name with spaces
I'm able to set a worksheet name without spaces and manipulate it with out issue. However, everything I've tried with spaces doesn't work. Dim myBook As Workbook Dim myWorksheet As Worksheet Set myBook...
View Articleautofilter causes file size to increase and filter doesn't work
I have following vba code, to filters & sort data, but somehow I am doing some silly mistake in code and code is not filtering out data. I have also observed that after filter applied, file size...
View ArticleMissing compiler required member 'microsoft.csharp.runtimebinder.binder.convert'
I first time using Excel to reading data in c# with Selenium WebDriver, but when I build this code, it pops up an error:"Missing compiler required member...
View ArticleReading from unstructured data in excel
I'm trying to convert unstructured data found in XL into a predefined formats. The situation is that the input data will have a number of different layouts. Imagine the following situation: You have a...
View ArticleUnpivot file with power query results in file with more than 1 million records
Is there any chance to get a file splitted before the unpivoting process is completed? I have tried to do the opposite, that is to split the file and then unpivot it, but it requires too much time due...
View ArticleFor loop with .CategoryCollection.item(i) returns "Invalid Parameter" error
I have a user form which has a button that I intend to edit a chart with. The chart has multiple categories, which I wish to select/deselect based on the currency indicated in the header of the...
View ArticleReplace Whole Words from a Predefined List
I currently have coding which will review an equipment description field, the aim of which to standardize entries. That is - whatever is found in COL A, replace with COL B I want to post the answer...
View ArticleSelect attribute value via VBA & XMLHttpRequest
My question is related to other question VBA - Select HTML item using VBA. How can select and click data-id attribute value by using an XMLHttpRequest without Internet Explorer? So far my code looks...
View ArticleRestricting VBA code to certain range of cells within worksheet
I am currently running code that changes cell colour and value when clicked i.e. one click changes cell colour and sets value to 1, double click same cell to remove colour and number. This is to allow...
View ArticleFile Format or File Extension is not valid using Spout PHP In Linux CentOS
This is my code I'm trying in Live server (CentOS)#!/usr/bin/php -q <?PHP require_once 'spout-3.1.0/src/Spout/Autoloader/autoload.php'; use Box\Spout\Writer\Common\Creator\WriterEntityFactory; use...
View ArticleHow to save an Excel worksheet as CSV
I want to write a Python script that reads in an Excel spreadsheet and saves some of its worksheets as CSV files.How can I do this?I have found third-party modules for reading and writing Excel files...
View ArticleExport CSV for Excel
I'm writing a CSV file in PHP using fputcsv($file, $data). It all works, however I can't just open it in Excel but have to import it and specify the encoding and which delimiter to use (in a wizard)....
View ArticleVBA Copy/Paste on another sheet excluding blank cells or cells where a...
Good morning!I'm having a problem with the code listed below! It is working as designed, with one exception:Range b4:b100 are lookup formulas from another sheet where everything below B34 is a #value!...
View ArticleDelete user ribbon from file
I have .xlsb file with user ribbon (i made it in "Custom UI Editor For Microsoft Office"). I want automatically delete (or hide) this ribbon from file (with VBA). Is it possible?
View Article