Using VBA, I wish to work out the inverse matrix of a large matrix (100*100), but keep getting the # Num! Error. I am using the minverse function. I have defined variable as "variant", does this give me the same possiblities in terms of number size as the variable "Double"?
I am trying to calculate the inverse of a matrix in vba here is my code, I get an error 2015 when I run my code
Function InterpolationCubique(TableauMaturites, TableauDonnees, DateCalculees, _ Optional EstFactActua As Boolean = False, _ Optional DateDeCalcul As Date) On Error Goto zob: Dim TabMat 'talbeau des maturites des donnes source Dim TabData 'donnes source Dim TabDates 'dates a calculer Dim i As Integer, j As Integer 'variables de boucle Dim TabRetour 'donnees renvoyees Dim MatriceDate(4, 4) 'Matrice des coefficients des parametres Dim MatDateInv As Variant 'Matrice inverse de MatriceDate Dim VecTaux(4, 1) 'vecteur des donnees solutions du systeme Dim VecParam 'vecteur des parametres calcules
' conversion des arguments en tableaux TabMat = CTableau(TableauMaturites) TabData = CTableau(TableauDonnees) TabDates = CTableau(DateCalculees) 'dimensionnement du tableau de retour Redim TabRetour(LBound(TabDates) To UBound(TabDates)).................
We make many graphs using XYscatter charts with lots of data points using Excel 2003 with the horizontal scale properly scaled as frequency. I have been asked to label that axis in some way as period (=1/frequency) without changing the scaling for the data plot. Is there a suitable way to do this? It would be OK to just change the axis numbers to 1/frequency computed from them automatically. Is Excel 2010 any easier for this?
I was wondering if it is possible to write a formula so that the below table can be read based on the input (in this case start month and cut-off month) and return the value from the table. I have also attached the excel with the data and some examples.
A typical Design Matrix is shown in the attached Workbook. There are two domains of Merged Cells that make up the Headings of the Matrix; FRs (Functional Requirements) and DPs (Design Parameters). Given a Hierarchical List of FRs specified by the User, the User would like Excel to bulild the Matrix Hierarchy of FRs automatically (going down the Worksheet). The DP Hierarchy is the same hierarchy, except transposed and reflected across the Worksheet. The attached Workbook has up to seven (7) levels, but the ability to go create up to 10 levels is desired.
I have been using Excel to record the routine daily issue of items to different groups in a matrix layout, I use a different workbook for each month with worksheets for each group. The matrix takes the form of the item issued being the left hand column and the date issued the top row of the matrix, the quantity issued is recorded at the intersection. Each item can have a different quantity issued on different days. I'm using Excel 2011 for Mac but could use PC Excel 2010. Is there a way to convert the data held in this way to a list? What I'd like to achieve is a list showing the Item, the Quantities Issued and the the Issue dates
Basically we have a "master" spreadsheet that people type in all day. During the day we have another team which send us a seperate " upload" spreadsheet inputs some of the cells for us, and I need to vlookup these values and ensure that all this information is input in.
Now a vlookup would be quite easy to do but I wont be able to use that as the cells would be full of Vlookups - and I would end up with a load of #N/A errors. The workbook is also shared and any macro would have to work with other users in the sheet.
From four known set values at the four corners of a table, how can I fill in the values in between? I.E. the inverse of extrapolating. I have a program within a programme that will do this, so i know its possible, but ideally i would like to be able to do it straight into a spreadsheet.
For a table like the one below produced for the sake of example (actual is much much bigger) I want to make it list rows that are true for a certain column for a certain variable in the matrix. So for say water terrain, which types of activity can I do i.e. swimming. Or for Offroad the activites which I can't do i.e. Run and Swim.
ActivityWaterRoadOffroad Jog nym Run nyn Walk nyy Swim ynn y=yes n=no m=maybe
I have 26 columns of data, and each column is 1500 rows long. At the bottom of each column, I'd like to calculate a "inverse sum" -- the "inverse sum" should be the sum of the inverse of each value in the column. It should not be the inverse of the sum of the column. In other words, a column with these 3 values:
2 4 4
Should result in an "inverse sum" of 1, namely one-half plus one-quarter plus one-quarter. It should not result in one-tenth, namely the inverse of the simple sum, or ten.
** I know ** how to do this by adding a "computational column" next to each "data column", and the summing the computational column. But I don't want to do this because it will double the number of columns to 52, and since I'm not the only user of this spreadsheet, I prefer to not start hiding columns.
So... is there a way -- in one cell at the bottom of each column -- to calculate the "inverse sum" of the column above? A CSE array formula would be fine, if it works.
I have code to create a correlation matrix (NxN, where N is the number of columns). This is done by selecting an area that is NxN, entering the function and range, then hitting ctrl +shift + enter (array formula).
However, I want to convert this to accept VBA arrays, rather than a data range, and give the output in form of an array as well.
VB: Function CorrmatK(dataRange As Object) As Variant On Error Goto 20 Dim r As Integer, n As Integer, rr As Integer, i As Integer, j As Integer, k As Integer, doit As Integer Dim x() As Variant, mc() As Double, ss() As Double, m() As Double, ob As Object r = dataRange.Rows.Count n = dataRange.Columns.Count
I have this code to take an area of data and perform the SUMXMY2 formula and output the results to another sheet. My problem is that the results are being outputted in a semi-matrix and i needed them in a column so i can them perform a sort. Is this possible and can anyone shed a light on the best way to do it?
I have a matrix A with 12 rows and 10 columns. My problem is if in the cell(i,j) there is data then the same data should appear in a similar matrix B, but in a cell which is 15 cells behind the cell(i,j).
That is it should start counting upwards from cell (i,j) in B and once it reaches the top of the matrix it should continue counting from the bottom of the immediate left column and go up. When it reaches the 15 cell from cell(i,j) in b, it should print there the value that was in cell(i,j) of A.
I am trying to figure out a better way to do my mileage for when I drive for work.
Currently I need to look at a sheet and see where I started and where I stopped and then I’ll see the distance.
Kinda look something like this.
Home Work School Home 031Work 304School 140
What I would like to do is type in the “to” and “from” cell and have it automatically know the miles based on the chart above. DateToFromDirectionTimeMiles3/4/10Home Work
I wasn't able to attach the file because it was too big, but you can download it from here www.easygcc.com/correl.rar. On the sheet called " Correlation" there is matrix, I am baiscally trying to fill in the correlation formula into every cell so the matrix is filled out. The data for the correlation calculation comes from the sheet called "Tech Data". I have filled in the correlation formula into a few of the cells as an example, but I don't want to continue doing this manually but rather have a macro do it for me. Otherwise this will take for ever. My macro is also a part of the file, if you would liek to look at it and maybe fix what I already have.
I have a 5 x 5 matrix. When values are entered in 2 cell there needs to be a matrix lookup and the corresponding value needs to be entered into the 3 cell. Example :
- A B C D E V 1 2 2 3 3 W 2 2 3 3 3 X 2 3 3 4 3 Y 3 3 4 4 5 Z 3 3 4 5 5
So if X and D are entered into the 2 cells the 3rd cell should show 4.