excel

How do I add information to an excel sheet without deleting the rest in Python?

谁说胖子不能爱 提交于 2021-02-08 09:18:16
问题 Problem I need to make a python script that can export information to excel sheet without deleting sheets old information or sheets. See Pseudocode Context: This function is to be used in conjunction with a web scraper. And should hopefully, be able to extend data to an existing sheet, create a new sheet, and create a new file. With the help of other questions, I have come really close: How to save a new sheet in an existing excel file, using Pandas? But I want the possibility to extend on

Excel CUBEVALUE & CUBESET count records greater than a number

北慕城南 提交于 2021-02-08 09:16:20
问题 I am writing a series of queries to my workbook's data model to retrieve the number of documents by Category_Name which are greater than a certain numbers of days old (e.g. >=650 ). Currently this formula (entered in celll C3 ) returns the correct number for a single Days Old value ( =3 ). =CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Count of Docs]", "[EDD_Report].[Category_Name].&["&$B2&"]", "[EDD_Report_10-01-18].[Days Old].[34]") How do I return the number of documents for Days Old

Excel CUBEVALUE & CUBESET count records greater than a number

雨燕双飞 提交于 2021-02-08 09:16:15
问题 I am writing a series of queries to my workbook's data model to retrieve the number of documents by Category_Name which are greater than a certain numbers of days old (e.g. >=650 ). Currently this formula (entered in celll C3 ) returns the correct number for a single Days Old value ( =3 ). =CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Count of Docs]", "[EDD_Report].[Category_Name].&["&$B2&"]", "[EDD_Report_10-01-18].[Days Old].[34]") How do I return the number of documents for Days Old

Excel IF AND formula between two times

僤鯓⒐⒋嵵緔 提交于 2021-02-08 09:11:47
问题 I would like to have a formula which will tell me if a time in a cell is between 2 separate vlaues in other cells and to return a value if so. I have already created the below code but this is not returning any values back at all. =IF(AND(F4>=$R$1,F4<P1),"Night Shift",IF(AND(F4>=$P$1,F4<$Q$1),"AM Shift",IF(AND(F4>=$Q$1,F4<$R$1),"PM Shift",""))) In this example the cell values are (P1 = 06:00, Q1 = 14:00, R1 = 22:00). The value in the F4 is 00:31:38. Any help would be appreciated. 回答1: Your

VBA Run-time error -214724809 (80070057)

笑着哭i 提交于 2021-02-08 09:00:31
问题 I want fill a drop down list based on user selection in another. I'm trying to update the contents of a field based on selection in another by adding the items on the fly once the first combobox (cbo_park) is selected. I have a four drop down lists: The first drop down cbo_park has the following options: Central East West I have a second workbook called lookupRoom which contains the following table: roomCode park A.0.01 Central A.2.01 Central A.3.01 Central HE.0.10 East HE.0.21 East HE.0.22

How to use automatically update formula without dragging

£可爱£侵袭症+ 提交于 2021-02-08 08:57:17
问题 I have a table in Sheet1 that looks like this **Sport** Basketball Basketball Basketball Volleyball Volleyball Football Football Football Football Football Football Hockey Hockey Hockey I have a table in Sheet2 that looks like: SPORT Basketball Volleyball Football Hockey SCORE 3 2 6 3 I applied the following formula in B1: =TRANSPOSE(UNIQUE(FILTER(Sheet1!$A$2:$A$15,Sheet1!$A$2:$A$15<>""))) formula in B2: =COUNTIF(Sheet1!$A$2:$B$15,Sheet2!B1) However when the column in Sheet1 is updated. For

Search via textbox to auto-update listbox entries

隐身守侯 提交于 2021-02-08 08:52:07
问题 I would like to implement a search function in a listbox in a userform getting a better view of the many columns and unfortunately I can't find a solution. The optimal solution would be, if I could search in a textbox for any row content (up to 12 columns containing data like e.g. name, ID, position, organization, ...) and the listbox would automatically update itself showing all matching entries. In UserForm_Initialize I filled the listbox as follows: Private Sub UserForm_Initialize() With

Cannot able to store value in a array - VBA

寵の児 提交于 2021-02-08 08:50:19
问题 I am trying to store a filename in a array but i am getting Type mismatch error. I have changed the data type but it didn't work. Kindly help. The code block that is throwing error, Sub Example2() Dim objFile,objFile1,objFolder,objFolder1 As Object Dim splitting, counter, filename, filename1, splitting1, counter1,As Variant Dim myarray() As Variant For Each objFile In objFolder.Files splitting = Split(objFile.Name, "\", 9) counter = UBound(splitting) filename = splitting(counter) For Each

VBA code to open all excel files in a folder

三世轮回 提交于 2021-02-08 08:44:20
问题 I was working with a vba and I'm trying to open all excel files in a folder (about 8-10) based on cell values. I was wondering if this is the right approach to opening it, it keeps giving me syntax error where I wrote the directory. and when I rewrote that section, the vba only shot out the msgbox which meant it had to have looped and did something right? but didn't open any files. Any information will help. Thank you guys so much for taking the time to help me in any way. Sub OpenFiles() Dim

VBA find/replace using array for cell range

女生的网名这么多〃 提交于 2021-02-08 08:25:56
问题 I receive a quarterly data set where I need to make some general changes to the data. The changes are routinely the same and I want to use a macro to change them in one fell swoop rather than find/replace manually. I found a script that saves my data as an array and then searches the entire workbook. It works BUT I only want it to find/replace in a specific range. I've tried many times to alter the code, but I am unable to. I don't even know if this is the best way to accomplish it - very