excel

How to remove only the duplicate row instead of removing all the rows that follows the duplicate row in VBA?

大城市里の小女人 提交于 2021-02-08 11:30:24
问题 I wanted to remove only the row that is identified as duplicate with some condition. But, the problem I am facing right now is I am getting all the rows below the duplicate row getting deleted with the coding I have. Hence, I loose all the entries that are below the duplicate row in a different table. Hope you get my problem. Please suggest a proper VBA code for this situation. I have given the code that I am using. Private Sub CommandButton2_Click() Dim rng As Range Set rng = ThisWorkbook

How to resolve runtime errors copying from excel to word

送分小仙女□ 提交于 2021-02-08 11:28:33
问题 I am currently working on an excel Userform to generate a report for a lot entered on a given day. The report is stored in a separate word document which contains the results of between 1 and 8 quality samples (number of samples varies by lot). The Userform is meant to load in excel, receive a lot number and date from the user, retrieve samples from that day and lot from a different sheet in the excel workbook and then copy the data into a new word doc based on a custom template. I have

Is there any Excel Formula for comparing 2 columns for containing data and counting their occurrence?

时间秒杀一切 提交于 2021-02-08 11:16:53
问题 Hello everybody . I ran into some problems when comparing data in columns in Excel / G-Sheets . I tried to compare 2 columns with company names using the standard formula " =countif (A:A, B2) ", where column "A" containing the names of the companies I am looking for (acceptable) and column "B" containing the names of companies that should match with company names in column "A" . For example , in column "A" there is a cell with the name of the company "Apple" , and if in column "B" there is no

Is there any Excel Formula for comparing 2 columns for containing data and counting their occurrence?

北城以北 提交于 2021-02-08 11:16:24
问题 Hello everybody . I ran into some problems when comparing data in columns in Excel / G-Sheets . I tried to compare 2 columns with company names using the standard formula " =countif (A:A, B2) ", where column "A" containing the names of the companies I am looking for (acceptable) and column "B" containing the names of companies that should match with company names in column "A" . For example , in column "A" there is a cell with the name of the company "Apple" , and if in column "B" there is no

Replace reference to worksheet in a formula via macro

こ雲淡風輕ζ 提交于 2021-02-08 11:13:08
问题 I have a button which produces a new worksheet. I pass the name of the active worksheet (the origin of the clicked button). Clicking the button on a worksheet named "A", produces a sheet "Print" based on the active worksheet "A". The formula of the cells in the "Print" sheet reference "A" (e.g. 'A'!B1). I have a worksheet named "B". When I click the button it should replace the "A" in the formula of all cells in "Print" worksheet. It seems that wildcard in replace doesn't work. For Each cell

Selectively copy and paste rows with given criteria

拟墨画扇 提交于 2021-02-08 11:09:58
问题 I am trying to select rows in a table based on the word "Yes" being present in column J. I have a table going from column A to J, and I want to select the rows where there is a "Yes" in column J and paste only those rows into a new sheet. Once selected, I need to copy these rows to a new sheet or word document. I have tried a range of forumulas, this is for Windows MS Excel software, using a VBA Macro. I am using the following VBA, but having issues: Sub Macro1() Dim rngJ As Range Dim cell As

Splitting a csv file into multiple txt. files

a 夏天 提交于 2021-02-08 10:59:24
问题 I have a large csv dataset that I want to split into multiple txt files. I want the name of each file to come from the ID column and the content of each file to come from the Text column. My data looks something like this. ID Text 1 I like dogs 2 My name is 3 It is sunny Would anyone be able to help advise? I don't mind using excel or R. Thank you! 回答1: In R, You can split the data by ID and use writeLines to write it in text files. If your dataframe is called df , try : temp <- split(df$Text

Splitting a csv file into multiple txt. files

吃可爱长大的小学妹 提交于 2021-02-08 10:57:15
问题 I have a large csv dataset that I want to split into multiple txt files. I want the name of each file to come from the ID column and the content of each file to come from the Text column. My data looks something like this. ID Text 1 I like dogs 2 My name is 3 It is sunny Would anyone be able to help advise? I don't mind using excel or R. Thank you! 回答1: In R, You can split the data by ID and use writeLines to write it in text files. If your dataframe is called df , try : temp <- split(df$Text

Splitting a csv file into multiple txt. files

老子叫甜甜 提交于 2021-02-08 10:56:02
问题 I have a large csv dataset that I want to split into multiple txt files. I want the name of each file to come from the ID column and the content of each file to come from the Text column. My data looks something like this. ID Text 1 I like dogs 2 My name is 3 It is sunny Would anyone be able to help advise? I don't mind using excel or R. Thank you! 回答1: In R, You can split the data by ID and use writeLines to write it in text files. If your dataframe is called df , try : temp <- split(df$Text

Use Tkinter to Open file, run script and export file

怎甘沉沦 提交于 2021-02-08 10:52:31
问题 I would like to create a pyton script that takes an excel file (provided by the user), run a script, and save this excel file (with a file name provided by the user). I would like to implement some buttons using Tkinter to enable non-programmers to easily use my algorithm. I tried to create a ''load data'' and ''display data'' button (I took a code online) that both work. However I didn't manage to run the script on the database imported (as I don't know how to access it) I didnt manage to