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?
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 an array of data with column headings and changeable row "item names" in the left most column. The intersecting matrix of data contains quantity values at the intersection cells of column and row headings. I need to automatically reorganize the data as a list in a column with the row "Item Names" at the left but and repeated as necessary but instead of the additional columns of quantity values, I need to have this data listed in a single vertical column along with an additional column with the original column header that corresponds to the quantity value. I think there must be some kind of lookup function to do this but I can't find the right way to do it.
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 need a macro that allows me to select a matrix of cells and converts it into a single column elsewhere, pasting the second column below the first and so on. Is it possible to select the matrix, hit a macro key and then paste it in my selected location?
I have a 10x10 array that represents different cities that a travelling saleperson can travel to. Rows are cities designated as i values, columns are the same cities and represented by j values. I need to use a For, Next loop to determine the shortest distance (lowest value) in a given column. The i (row) that contained the lowest value is the first city to be visted and a boolean is entered for that j=i column, showing that the city has been visited. When pulling the minimum values from the column I need to ignore 0 values where the distance is between a city and itself. I'm having trouble coming up with a loop that takes identifies the i row with the lowest value that also ignores previously visited cities and takes the boolean into account. Maybe my Excel spreadhseet will clear up what I'm trying to do, The distances were generated using RANDBETWEEN(1,100).
I'm working on a sheet I have to complete and I'm blocked 'cause I'm not able to find the right formula to get the result I need.
I have a sheet that contains 4 columns with the following content (consider the following just as an example. The real sheet contains more that 25,000 rows.
User ID Repository 1 Repository 2 Repository 3 001FG x 001FG x 10GA x 20PK x 20PK x 20PK x 21CC x 4C1D x
Now, the table contains the user id (unique ID) and three columns that stand for the access right the user has for accessing a specific repository.
This means that a User can have more than one occurrence in the sheet because it could have rights to access different repository (i.e. the user 20PK can access all the repository).
What I should be able to do is to transform the table above to a new one with unique user id and the rights for each repository. I would need something like this:
User ID Repository 1 Repository 2 Repository 3 001FG x x 10GA x 20PK x x x 21CC x 4C1D x
How can I do this by using a formula and not a macro?
Here's a sample of the document I have, the original has several thousand entries, so figured for the sample I'd limit it. The raw data is on sheet 1, and sheet 2 is what I want to have to more easily manipulate the data. I started doing it manually, but I'm sure there's a far better method that I just don't know about yet. sample.xlsx
For those that don't want to download the document:
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 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.
On my example sheet it shows how many cables and how the cable length per job. What i need is for the hour/job column to be populated from the Hours sheet by matching the column and row. e.g 4 cables at 40 metres would give me cell D7 (27.89), as 25 metres would be no good - so rounding up would be required.
I'm struggling to find the right Excel functions to fill up a block matrix. Here are all the details of my problem.
I have a list of firms and relative products. Each firm can produce either 1, or 2 or 3 different products, for instance
firm A produces product x firm B produces products y and z firm C produces product j firm D produces products k, h and q
Suppose the data appear on a sheet in column order, that is, one column for the firms and one for the products with a space between A, B, C and D when one firm is a multi-product producer. I need to create a 0-1 block matrix in Excel setting 1 when the product is produced by the same firm and 0 otherwise, i.e. for the above example
I have a set of 4 columns with YES/NO statements in them. I need to find any YES strings, of three or more, within one column, uninterupted by a YES in another colum.
EXAMPLE: _____A ___B__C__D__E 1 1/1/2008 YES NO NO NO 2 1/2/2008 NO NO YES YES 3 1/3/2008 YES NO NO NO 4 1/4/2008 YES NO NO NO 5 1/5/2008 NO NO NO NO 6 1/6/2008 YES NO NO NO..................
I have a spreadsheet with M-1 rows and N colomns. I want to calcolate the covariance matrix of the spreadsheet and i would like like output an other spreadsheet. I tried to do my self, but no so much result. here my code, but there is a mistake