Creating A Scenario Matrix

Mar 9, 2007

Creating a Scenario Matrix. I am using Excel XP. Simplifying the problem, I have a formula;

Cell A1 has X,
Cell A2 has Y
Cell A3 has Z

X * Y = Z

I want to find the answers when X is between “1” and “5” and Y is between “1” and “5”. I want this to be in a matrix so I want the answers:

1 2 3 4 5
1
2
3
4
5

I cannot use Scenario Manager; it would record the answers on the pivot table or summary which is what I want BUT I would have to type every combination (1,1), (1,2) etc!

View 7 Replies


ADVERTISEMENT

Creating Adjacent Matrix From Incidence Matrix

Aug 26, 2007

I have a data chart on 200 people with overlapping membership in 20+ groups, represeted as binary (1=member, 0=notmember), for example: ...

View 9 Replies View Related

Creating And Using Port Distance Matrix?

Jul 28, 2014

I have 1551 rows of port distances, as shown below.

From To Distance
Abu Al BukhooshDalian 6097
Abu Dhabi Jamnagar929
Ain Sukhna Gibraltar2026
Akpo Field Inchon9755

I have a list of 206 ports. I want to build a matrix of Port distances with the names of the ports (206 names) on the first row and column and the distance from each port to every other port. I understand that the 1551 rows of data that I have is not sufficient, but those are he only significant ones. For the missing records I would like to put "zero" in the matrix.

Also, Once the matrix is built, how can I use it to find the port pair distance when the user inputs two port (From port and To port)?

View 4 Replies View Related

Counting Formulas And Creating A Matrix

Feb 16, 2009

I have the following used formula to count how many occurances there are of a particular piece of text in a column:

=SUM(IF(range="text",1,0))

e.g. {=SUM(IF(K6:K16="H",1,0))}

I have repeated this formula for an adjacent column

e.g. {=SUM(IF(L6:L16="M",1,0))}

I need to find a way of counting number of occurances in these two columns (K and L) when text "H" and "M" are present in the same row.

To further complicate matters (well for me anyway) the text "H" and "M" care chosen from a list of options in the K and L columns.

What i ultimatly want to do is create a matrix to compare how many times all possble occurances of the various options listed in both columns are present in the same row in the spreadsheet.

View 2 Replies View Related

Creating Matrix With Variable Size

Nov 19, 2012

I am trying to create a matrix in VBA with variable matrix size. The matrix I need will be anywhere from 3 to 9 columns and 15 to 30 rows. I want to set the size as variables and then create the Matrix using these variables, similar to:

rows = 4
columns = 25
Dim XMatrix(rows, columns) As Variant

View 1 Replies View Related

Figuring Out Which Function To Use For Scenario

May 14, 2008

Need constructing a formula and im not too sure which function to use.
Im also not sure if its even possible or im missing a required column to help make it possible.

(arrival Time)---(c1)--(c2)--(served by)---(time served)---(exit time)
-------A---------B-----C--------D----------E----------------F
1----9.00am-----0-----0--------1----------2mins-----------9.02am
2----9.01am-----1-----0--------2----------15mins----------9.16am
3----9.05am-----0-----1--------1----------2mins-----------9.07am
4----9.06am-----1-----1--------?----------xmins-----------x.xxam

Column A = Arrival time
Column B = Number of customers in Counter #1 as of arrival time
Column C = Number of customers in Counter #2 as of arrival time
Column D = to be Served By Counter:
Column E = Mins being served before exiting the counter/que
Column F = exit time
rows = customers entering a que.............

View 9 Replies View Related

Scenario Testing And Stepped Table?

Jan 22, 2014

scenario testing and coming up with a simple "multiply by" that I can drag across a table.

View 5 Replies View Related

Calculating Turn Around Time In Multiple Scenario

May 4, 2007

1: Clock shoud tick monday to friday 8:00am to 4:pm only
2: there are 4 coloums where date recieved, date sent, time recieved, time sent are available.
3: the TAT should show the number of hours taken to from the time a case has been recieved to the time it has been sent

View 9 Replies View Related

Shortening My Code For Multiple Case Scenario

Jul 3, 2007

I have a combo box that is used very simply to select a column from sheet and copy that whole column down to where text ends into a specific column in another sheet. I.e whatever column is selected ends up in column B of this other sheet. At the moment I've been using If functions for each case but there must be a more efficient way of doing this; here is just a sample of my

If textseries1.Text = "Fund01" Then
With Sheets("data")
Range("C1:C" & Cells(Rows.Count, 1).End(xlUp).Row).Copy
End With
Sheets("calculations").Range("B1").PasteSpecial
End If

If textseries1.Text = "Fund02" Then
With Sheets("data")
Range("D1:D" & Cells(Rows.Count, 1).End(xlUp).Row).Copy
End With
Sheets("calculations").Range("B1").PasteSpecial
End If

If textseries1.Text = "Fund03" Then
With Sheets("data")
Range("E1:E" & Cells(Rows.Count, 1).End(xlUp).Row).Copy
End With
Sheets("calculations").Range("B1").PasteSpecial
End If

There are about 75 columns in total but thought it would be a little repetitive to put it all up here!

View 2 Replies View Related

Return Inverse Matrix Of Large Matrix

Aug 22, 2008

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"?

View 9 Replies View Related

Solver & Scenario: Make A Comparison Of Two Different Staff To Customer Ratios

May 22, 2006

This is what I’ve been trying to do. There are 3 different work schedules for each employee. Each employee gets 2 days off in a row. At the top of the employee schedule worksheet, there are 3 schedules. The zeroes represents days off for that schedule and the 1’s represents days worked. Ok, Cells c7 thru c17 display total staff needed for that day Cells c8 thru c18 display average number of customer on a particular day Cells c9- 19 display number of needed based on a staff to customer ratio of 1 employee per 80 customers B11 displays that ratio

I need to make a comparison of two different staff to customer ratios. My goal is to find lowest total payroll while adequately staffing the store. In B13 I want to enter the daily salary amount for 1 employee at $10 hr/8 hrs per day

In A16 enter total payroll amount
Total staff B7 times salary in B13

Use solver to find minimum payroll amount
Target cell is total payroll found in A16
Target cell must be = to minimum value................

View 3 Replies View Related

Matrix - Identify Cell Content In Column For Row If Matrix Content True?

Mar 21, 2014

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

View 10 Replies View Related

Create Matrix From A Matrix

Apr 29, 2013

Below there are all the information needed to understand my problem.

M(1 to R,1 to C): matrix with R rows and C columns [element known]

M(i,j): elements of the matrix M in position i(row)-j(column) [element known]n

View 3 Replies View Related

How To Get Value From Matrix

Jan 26, 2013

I need to get the fee value, if I write "Name" and "Time".

Please read the simple example file named "Fee from matrix".

View 3 Replies View Related

Sum Matrix

Jun 15, 2009

Given one array variable (matrix n x n) M, I want to use the function sum, to sum along the rows.

I can use Application.WorksheeFunction.Sum(M)

but this will sum all the elements

and I would like smtg like this
Application.WorksheeFunction.Sum(M(1,)

Just sum the first line, or the i-th line.

View 9 Replies View Related

Correlation Matrix In VBA

Jan 16, 2006

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

[Code] ......

View 7 Replies View Related

From Matrix To Column!

Jan 29, 2009

I NEED some code to convert a matrix to a singel column and it should be reversed to!
see attachment!

example:

FROM:

A1 B1 C1 D1
A2 B2 C2 D2
A3 B3 C3 D3

TO:

D1
C1
B1
A1
D2
C2
B2
A2

View 4 Replies View Related

Matrix From Columns

Mar 29, 2009

I have to create a matrix from columns in this format:

A1 A2 1
A1 A3 4
A1 A4 6
A1 A8 4
A2 A5 2
A2 A8 3

with a lot of empty cells (here, for exemple A1,A6 & A1,A7 ) and (A1,A2) = (A2,A1)
I'd like to have :

_ A1 A2 A3 A4 A5 A6 A7 A8 .....
A1 0 1 4 6 0 0 0 4
A2 1 0 0 0 2 0 0 3
etc

The source data is in the attachment. Would it be possible to do it automatically?

View 3 Replies View Related

Matrix To Column..?

Nov 23, 2009

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?

View 2 Replies View Related

Inverse Of Matrix Using VBA?

Jan 23, 2014

I'm trying to do the inverse matrix of a matrix captured by an inputbox, but it doesn't work

This is the code:

Code:

option explicit
option base 1
sub matrix()
Dim M() As Double
Dim B() As Double
Dim Y() As Double
Dim columnas As Range

[code]......

the error is: Error 13 the types do not match

View 7 Replies View Related

Moving In A Matrix

May 23, 2007

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.

View 9 Replies View Related

Mileage Matrix

Mar 4, 2010

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

View 9 Replies View Related

Correlation Matrix

Jul 25, 2006

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.

View 4 Replies View Related

Matrix Lookup

Dec 4, 2006

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.

View 7 Replies View Related

Matrix Transformation

Feb 14, 2007

I would like to do the following transformation in excel:

imagine the following matrix:

1 2 3
4 5 6

I would like to transform this into:

1
4
2
5
3
6

This is a simple version of my matrix, in reality it is much bigger, and I do not want to copy paste each column by hand. Any ideas?

View 2 Replies View Related

How To Create A Risk Matrix

May 1, 2014

I'm trying to create a risk matrix like the attached example. I want to be able to enter a value and to have it to appear in the right quadrant.

View 2 Replies View Related

Extract Data From Matrix

Jun 22, 2008

I'm running a small messenger company and I've got a geographic area divided into five zones: 1,2,3E,3W,& 4

Deliveries within 1 zone will be charged for one zone.
Deliveries from Zone 1 to Zone 2 will be charged for 2 zones. Etc.

I've got a list of zones in my From column and also in my To column.

I need to write a formula that will give my customers the Zones Charged in a seperate cell.

I learned how to do something like this back in school, but don't even know what to call it anymore. Maybe it's some kind of comples IF function.

FREE Deliveries to anyone in Long Beach, CA to the winner!!!

View 12 Replies View Related

Finding Data From A Matrix

Feb 17, 2009

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.

View 2 Replies View Related

Get First Higher Number From A Matrix

Apr 7, 2009

I need a function that can get, from a matrix, the first number that is higher than the number in a given cell.

View 9 Replies View Related

How To Create Block Matrix

Feb 12, 2013

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

x y z j k h q
------------
1 0 0 0 0 0 0
0 1 1 0 0 0 0
0 1 1 0 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 1 1
0 0 0 0 1 1 1
0 0 0 0 1 1 1

I can do this in VBA but not in Excel, and unfortunately I need to provide an Excel solution.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved