excel

Excel: Dynamic range within certain rows + data validation update

人走茶凉 提交于 2021-01-29 04:40:36
问题 What I have here is small part of my big data set, with lot of drop downs and functions that are calculating everything around. I am just exceeding this table and trying to make it more automatically than it was before, but I stuck on that part that I put in green. Which function might be suitable when I wanna add some new cells on the right (right table) named Model Options > instead of Reserviert but some another name (will be populated later), but to automatically recognize it on left drop

excel chart not updating when data changed by vba

时光总嘲笑我的痴心妄想 提交于 2021-01-29 04:40:29
问题 I have a Bubble chart that I am trying to add "motion" to by having a macro update the table and subsequently the chart. I have a cell that I use as the "offset" which is used by my data table to get the data. I have a button that runs a VBA macro that updates this "offset" cell for each month in my data, which updates the data table when the offset updates. When I alter the offset cell manually, both the table and chart update. However, when I click the button and run the VBA macro, only the

win32 ExportAsFixedFormat Error

孤街浪徒 提交于 2021-01-29 04:33:00
问题 I was trying to change the footers of my excel file then convert it to pdf with win32 package in Python3.6. It actually work with my home pc and at work pc only the pdf exporting part is giving me error. I am wondering if the MS Office version matters, since I have the newest at home and Excel 2007 at work. Here is mycode : import win32com.client as win32 excel = win32.gencache.EnsureDispatch('Excel.Application') file_path = r"C:\Mydir\DSexample\Myfile.xlsx" wb = excel.Workbooks.Open(file

Data to Table in Excel Sheet

不想你离开。 提交于 2021-01-29 04:30:49
问题 I was given the assignment of parsing a word document form, and putting it into an Excel sheet. The code below does that with ease.. but I've recently learned I need to put that data into an Excel table instead of just the cells of a sheet. For row = 1 To theTable.Rows.Count `until end of rows isHeaderOrNot = theTable.Cell(row, 0).Range.Text `if first field in row is a header If isHeaderOrNot.Contains("Section") Or isHeaderOrNot.Contains("Field") Then Continue For keyText = theTable.Cell(row,

Excluding certain cell values from if statement macro vba

ぐ巨炮叔叔 提交于 2021-01-29 04:25:55
问题 I have a macro that runs through 3000 ++ lines of data and I want to create an exclusion list, so for instance when my if statement goes to look at a range if it matches a certain set of names for it to skip that row and keep going. Example would be : If Column A has a value of "J Smith" for it to skip that line and continue as it was, the surnames have been changed to 'Smith' but these may vary. The entire code around it works if I remove the code from the macro it works perfectly without

Export only visible rows to CSV with Powershell

拥有回忆 提交于 2021-01-29 04:16:16
问题 I have logic in an Excel macro that parses the documents and hides rows that don't have data in certain cells per row. Looking to export only the visible cells to CSV. I have code (below) to export everything, but how do I make it only do visible rows? $oWorksheet = $objExcel.Worksheets.item(6) $oWorksheet.Activate() "saving $filecsv" $oWorksheet.SaveAs($filecsv,[Microsoft.Office.Interop.Excel.XlFileFormat]::xlCSVWindows) $workbook.Saved = $true 回答1: Please see this answer I believe you could

Write a list into Excel

ぐ巨炮叔叔 提交于 2021-01-29 04:15:51
问题 I have a sentence 'And now for something completely different'. I want to tokenize it, tag it and store it into a excel file for further processing. <pre>sent = "And now for something completely different" words = nltk.word_tokenize(sent) tags = nltk.pos_tag() print tags</pre> The result of above is the words with their tag in a nested list format. [('And', 'CC'), ('now', 'RB'), ('for', 'IN'), ('something', 'NN'), ('completely', 'RB'), ('different', 'JJ')] I want to store this result list

Insert rows into Excel with MATLAB

99封情书 提交于 2021-01-29 04:12:26
问题 The data in my Excel files is supposed to be contentious (index in the first column). But some data is missing in the file. For example, # 5, and 6 are missing between $ 4 and 7. My purpose are (1) identify the file with missing data and (2) if data is missing insert rows to make it continuous. Can anyone tell me how to add in rows in the existing data? Using xlswrite I can only add in rows at the end of the file or replace some rows. EDIT 1: I have another set of file in which the index is

How to calculate results and plot data depending on results of a specific column in excel?

自作多情 提交于 2021-01-29 04:11:21
问题 I have a .csv file and it contains thousands of rows. I collected this data file as output of running my program for 60 minutes. This output file contains time column (in forum HH:MM:SS:MS), this time column is recording time for my outputs. I want to get plot of my other columns in my output.csv file according to my time column (taking the results for all columns every 1 minutes). For example: I have a row like this: Data Time ----- ----- 455 10:00:00 894 10:00:00 785 10:00:00 898 10:00:01

Excel vba Deleting a row if a cell contains a text [duplicate]

回眸只為那壹抹淺笑 提交于 2021-01-29 04:04:00
问题 This question already has answers here : Delete Row based on Search Key VBA (3 answers) How to reverse a For loop (3 answers) Closed 6 years ago . I'm using this code: Dim r As Integer For r = 1 To Sheet1.UsedRange.Rows.Count If Cells(r, "Q") = "0" Then Sheet1.Rows(r).EntireRow.Delete End If Next The problem is it doesn't delete everything, it just deletes some of the rows and i have to press the button that uses this code multiple times to delete all instances of "0" in "Q" Answers from