excel

could not find installable ISAM vba

假装没事ソ 提交于 2021-01-28 19:39:37
问题 I read many articles about this subject but cannot find any solution to my problem. What I needed to do is to get values from a table in Sheet1 in my active Workbook using SQL. When I run the code below I get "could not find installable ISAM" error message. There seems to be a problem in my connection string. I am using Excel 2010. To solve my problem I activated "Microsoft ActiveX Data Objects 6.1 Library"(Which is the latest version). I am a starter in Macros that is why I might be missing

Sum with substitute, ignore and a dynamic range

五迷三道 提交于 2021-01-28 19:23:55
问题 I came pretty close to solving my problem with this answer given by "barry houdini" But I run into problems incorporating it to my needs. =SUMPRODUCT(VALUE(0&SUBSTITUTE(A1:A8,"*",""))) Edit #3 - @Rory came with a very good answer to solving my problem. But what I hadn't thought about was if you enter a non-numerical value inside a cell, then the formula returns an error. So I would really like to tweak the following formula to ignore the letter "x" , or non-numerical values (if that's easier)

Listbox sort/filter by date time in vba userform?

久未见 提交于 2021-01-28 19:14:10
问题 I have a userform with a listbox that displays data from a worksheet. I am wanting to get that data to display in the listbox by current date and time. So when a user enters new data he/she sees the most current lines of data. This is to help the user so they don't enter duplicate information. I am hoping this can be accomplished programmatically because in the near future this form will be linked to a database not a worksheet. Here is the code to populate my listbox: Private Sub UserForm

Excel VBA: Working with iFrame via IE Automation

别说谁变了你拦得住时间么 提交于 2021-01-28 18:20:53
问题 I have a project that I am working on where I am trying to automate a site's behavior via Excel's VBA. So far, I know how to initialize a web browser from VBA, navigate to a website, and perform a simple task such as clicking on an item using the getElementById function and click method. However, I wanted to know how can I go about working with an embedded object(s) that is inside of an iframe. For example, here is an overview of what the tree structure looks like via HTML source code. Of

Excel formula to fill a column based on value in another column

房东的猫 提交于 2021-01-28 18:20:35
问题 How can I make a formula such that when update a value in Completed for a particular value of ID , it automatically gets filled in all cells of Completed for that particular ID ? And, when I remove the value from one cell in Completed , it automatically gets removed from all cells in Completed that correspond to that value in ID . For eg. in the data below, I'd like the three blank cells automatically filled with 4 , 6 and 5 respectively. Role ID Completed A 1 3 A 2 4 A 5 3 A 8 6 B 2 B 8 B 10

One-way ANOVA for each sub-group in a melted data frame

ε祈祈猫儿з 提交于 2021-01-28 17:58:30
问题 I have a very large data set that requires individual one-way ANOVAs for multiple species on 4 different treatments with several measurements. Usually I just make separate excel spread sheets for each species and run ANOVAs on each, looping through each measurement column, but this is very time consuming. Is it possible to use a single spread sheet and run ANOVAs on the melted data? Or perhaps there is another reshape option I could use? Data: structure(list(Species = c("A", "A", "A", "A", "A

Is there a way to find the largest number of decimal places in an Excel

拟墨画扇 提交于 2021-01-28 16:51:59
问题 I have a sheet in Excel which contains a lot of numbers to varying decimal places. I'm trying to create a table in MySQL to store this data as efficiently as possible, but I need to know the highest number of decimal places in each column. Is there a function which I can use to work this out? My dataset looks something like this: Item | Val 1 | Val 2 | Val 3 =====|=======|=======|======= 1 | x.xxx | x.xx | xx.xx ... | x.xx | x.x | xx.xxx n | xx.x | x.xx | xx.xx For example, in the Val 1

Is there a way to find the largest number of decimal places in an Excel

瘦欲@ 提交于 2021-01-28 16:49:45
问题 I have a sheet in Excel which contains a lot of numbers to varying decimal places. I'm trying to create a table in MySQL to store this data as efficiently as possible, but I need to know the highest number of decimal places in each column. Is there a function which I can use to work this out? My dataset looks something like this: Item | Val 1 | Val 2 | Val 3 =====|=======|=======|======= 1 | x.xxx | x.xx | xx.xx ... | x.xx | x.x | xx.xxx n | xx.x | x.xx | xx.xx For example, in the Val 1

Excel automation naming conflict “_FilterDatabase” - different behavior MFC ole automation vs. C# .NET

夙愿已清 提交于 2021-01-28 14:08:14
问题 Opening an Excel document by C++ MFC OLE automation shows a naming conflict ("_FilterDatabase") while the similar approach in C# .NET via Microsoft.Office.Interop.Excel does not. In my C++ MFC OLE Automation project I have imported the type library for excel.exe and selected the interfaces _Applicatin (CExcelApplication), _Workbook(CWorkbook) and Workbooks(CWorkbooks). In my C# .NET project I have added the COM reference "Microsoft Excel 16.0 Object Library". This is the code I'm using in the

Excel 2013 vba refresh chart content after each iteration of For Loop

守給你的承諾、 提交于 2021-01-28 13:56:35
问题 Problem: Refresh graphical representaion of Series in ChartObject after each iteration of for loop Ex. y=m*Cos(x) y - Values m - parameter I have some data counted from formula with parameter. I want to visualise what influence has the change of parameter on XYgraph. I want to do it in for loop (added Sleep do have some time to see results). Data and formula are in Excel SpreadSheet. Update script of parameter is in VBA module. Update works on values in spreadsheet but doesn't affect graph.