Lookup Values From A Multi Dimensional Table / Data Sheet

Oct 24, 2007

I have a sheet that has to look up value on a report from a sheet sheet that has more than value. Ex)
On the report I have values 123A and 1234A
On the data tab I have table that has.

Ref Tot Value Desc Value1 Value2 Value3
1 123A Widgets 1 2 3
2 123A Widgets 4 5 6
Ref Tot Value Desc Value1 Value2 Value3
1 123B Nuts 7 8 9
5 123B Nuts 1 3 5
Ref Tot Value Desc Value1 Value2 Value3
7 1234A Bolts 2 4 6
11 1234A Bolts 3 5 8

So the report need find the values for Value 1, 2, 3 on where the value matches the data tab.

View 14 Replies


ADVERTISEMENT

Double Lookup From Two Dimensional Table

Apr 2, 2009

I am trying to get a cell in my spreadsheet to look up a value based on two values. I have a dropdown list that lists the worksheets in the workbook, and each worksheet has a table with width measurements for the columns and height measurements for the rows. I have a function that is mostly working, it calls the data from the proper worksheet, but it rounds the measurement values down, and I need it to round to the next highest value on the table.

For instance, the measurement may be 55" x 55" in, but the table has values for 54" and 60". The current formula rounds down to the 54" measurement, but I need it to round up to the 60". I have attached what I have so far with further notes and cells highlighted.

View 4 Replies View Related

Table Lookup (search On A 2 Dimensional Table)

Aug 4, 2009

I am attempting to do a search on a 2 dimensional table, based on Product Code/Month. Is there a function, addin or a macro that will allow me to do this? All I can come up with is a messy combination of VLOOKUP/HLOOKUP/COLUMN.

View 2 Replies View Related

Multi-Variable Lookup Table

Jun 12, 2014

I make budgets that have line items that have standard price based on 2 factors: a description, and a number. I want to keep these items in 2 different cells. I also have different clients, and the costs are different. I could simplify so that I can use a VLOOKUP with HLOOKUP and separate the clients but I would prefer not to.

Screen shot 2014-06-12 at 12.36.47 PM.png

View 1 Replies View Related

Populating A Multi-dimensional Array

Nov 26, 2008

I have a spreadsheet which I will be adding to over time. I need a macro that will look for the last 10 rows and then pull together a summary table based on data from several of the columns on each of those rows.

I've tried to go about this by using an array. The array will always be the same size (it will always be 10 by 11, i.e. EngineArray(10,11)-basically the same size as my summary table). I've also set Option Base 1.

What I’ve got so far is below. It isn’t working properly though. To start with I was getting ‘type mismatch errors’. Now instead of reading the numbers from the selected cells into the array, it just changes all the cells I’m trying to read from to ‘TRUE’?

View 6 Replies View Related

Summing In A Multi Dimensional Array

May 15, 2007

I've created an array that is 60 pairs of cells wide. Each row in the array represents a different account. The 60 pairs of cells contain up to 60 payments in a payment stream. The first cell of each pair may contain an amount of interest to be paid, or zero if the time band in which it was/will be paid is not within the time range that I'm evaluating. The second cell of each pair may contain a number between 1 and 10 representing the time band in which the interest will be paid, or zero if the payment date falls outside of the time bands.

I need to be able to sum the interest to be paid in each time band for all of the accounts in my database.

Is there an Excel function that I could use or will I need to write some VBA code to loop through each row?

View 9 Replies View Related

Multi-dimensional Array Solution

Jan 12, 2007

I am currently using a macro which highlights keywords and associated page views from an array in my website stats spreadsheet. Now I need to take it to the next level:

I want to use a multi-dimensional array to pull out any keywords that are duplicated, and display them at the top of my spreadsheet with the totaled page views next to them in a different color (red).

Here is my existing Keyword highlighting
Sub Highlight_Keywords()

Dim vntWords As Variant
Dim lngIndex As Long
Dim rngFind As Range
Dim strFirstAddress As String
Dim lngPos As Long

View 9 Replies View Related

Checking If Variable Is Multi-dimensional

May 11, 2007

Is there a quick way to check if a variable is an array or multi-dimensional? I am trying to send variables to a sub to print to excel but I am sending mixed variables - some are one dimension, some are two dimensional.

Here is what I am using:

Private Sub Send(Item As Variant, Top As Integer, ToSheet As String, Row As Integer, Column As Integer)

'Sends values to Excel

' Loop counter
Dim i As Integer

For i = 0 To Top - 1
ActiveWorkbook. Sheets(ToSheet). Cells(i + Row, Column).Value = Item(i)
Next

End Sub

I suppose I could set up a second routine to handle one dimensional variables, but I thought I would ask the pros -

View 9 Replies View Related

Fill Range From Multi-dimensional Array

Jul 20, 2007

I searched and found a few posts about transposing arrays into a range of cells, but none of them seemed to solve my problem. So, my problem is, I have a .Net assembly which provides various functions to allow Excel to access our Oracle DB stored procedures/tables, etc. This assembly is exposed via COM Interop. I call the GetSPINTypes() method, which returns me a list of type pairs (ID, Name), in a CSV string format.

I split the CSV into rows, and then put each row into a 2-dimensional array.
I then need to dump that array into one of my sheets in Excel, so I try to do the usual Range.Value = Array, but this sometimes tells me there is a type mismatch, and most times just doesn't fill the range. I've checked my arrays in the watch window, and they have definitely been filled in correctly, the values just don't appear when they are put into the sheet. See the code I'm using below:......

View 4 Replies View Related

Multi-dimensional Array Not Showing In Listbox

Aug 18, 2007

I have made the function below to return a variant multidimensional array. I pass the function an array of folder paths that I wish to search through looking at subfolders within that path where their name matches a search string that I pass to the function. eg., it will find a folder named "Catnap" if you pass the string searching for as "Cat*".

The size of the array it builds depends on how many folders it finds that match the search string and so needs to be built dynamically. Hence, I believe it builds a 2 dimensional array horizontally and I transpose it at the end of the function. In each element I put the folder name that was found in the first dimension and the path to that folder in its second dimension.

I have a 2 column listbox on a form that I set this array to. eg., Me.ListBox1.List = DirPaths("C:","Cat*",vbDirectory,100)

This works fine and shows a list of folder items found by folder and path in the two columns of the listbox if there is greater than 1 search found. However, when the search only finds 1 then the listbox shows the folder name with the folder path in row 2 of the list box. (See below).....

View 2 Replies View Related

Fill & Rearrange Multi-dimensional Array From Another

Feb 26, 2008

I've got the folowing array's

date1>company1>price
>Company2>price
>company3>price
>enz

Date2>company1>price
>company2>price
>enz

enz.

But these are not the array's that i need for a correlation that i want to make.
Is it possible to transform the array's above to an array such as:

Company>date1>price
>date2>price
>date3>price
>enz

View 5 Replies View Related

Evaluate Multi-Dimensional Array Matrix

Feb 27, 2008

I'm trying to use VBA to do some matrix processing. I have successfully done matrix processing in the spreadsheet, but I'm looking to port the logic into VBA to more easily reuse central formulas and reduce the amount of code in the spreadsheet.

The function shown below works. I had to hack around the variable declarations to eliminate processing/compile errors but it seems to function (no pun intended).

While debugging I noticed that this function would seem to get called 4 times. I do have other modules running, although I don't think any other modules are affecting this.

After some input from shg, I updated the variable declarations, but I'm getting an "Overflow" error reported. Sometimes (not always) a divide by zero also pops up. I do have the Msgbox for errors at the end, I haven't tried removing that part to see if the error reporting vanishes. I'm not sure 'hiding' error alerts is the best thing to do anyway...

View 8 Replies View Related

Join Dynamic Multi-dimensional Array

Apr 15, 2008

the built in "Join" function can join all elements of a 1-dimensional array into a string with delimiter. Now, how do I do that with multi-dimensional array if I just want to join 1 dimension of it.

For instance, I have:

m = 10
n = 20
Redim my(m, n)
'assign values to array here...

'I want to join, say, my(5, 0 to n) only
'How to do that without declaring a new 1 dimension array?

Also, I want to write a join sub/function to do the above for n-dimensional array, do I need to write each one for every number of dimension (1 sub for 2-dimension, 1 sub for 3 dimension, etc.)?

View 4 Replies View Related

Excel 2007 :: Sheet Name In Show Details For Multi-sheet Pivot Table?

Jan 30, 2014

Excel 2007.

I have a workbook with a sheet per day, each sheet has a variety of 'jobs' as columns and a variety of people and kit as rows. Hours are manually input each day during the month.

Simplified version... These are two separate sheets 'M060114' and 'Tu070114'.

Monday
Dig
Drive

Dave
4
5

Bill
2
7

Tuesday
Dig
Drive

Dave
2
7

Bill
8
1

I have a Pivot Table on a separate sheet. This was created using the Wizard (ALT +D +P).

Dig
Drive

Dave
6
12

Bill
10
8

So far, lovely.

But when I double-click on a number or right-click and choose 'Show Details' I don't get the sheet names in the newly created information sheet. I get the Row label, column label and a list of the entries.

So if I clicked on 10 above...

Row
Column
Value

Bill
Dig
2

Bill
Dig
8

That's fine with just a couple of entries but with about 80 columns and 250 rows spread across a month, therefore 30ish sheets, it's difficult marrying up the 'Show Details' sheet to the actual data.

So after all that, the question. Is there a way of getting the sheet name to appear in the 'Show Details' information sheet?

View 1 Replies View Related

Find Multi Values In Sheet With 6 Columns?

Mar 20, 2014

vba code to find multi values in a Sheet With 6 columns values like :1,3, 12,16, 20 ,31, 36, 44, 46,

View 2 Replies View Related

Two Dimensional Table - How To Fill Cell With Value Returned From Table

Nov 22, 2011

If you have a data in two dimensional table. and you need to fill each cell with the value returned from another table.

Example : this the my table

Company A Compay B Company C Product 1
Product 2
Product 3
Product 4

and this my data :

Products Companies Price
Product 1 Company 8 Product 1 Company A 7 Product 1 Company B 5 Product 1 Company C 6 Product 2 Company B 6 Product 2 Company C 9 Product 3 Company A 10 Product 3 Company B 8.8

View 5 Replies View Related

Dimensional Table

Oct 12, 2009

i have a problem with my report.

there is a dimensional table:

DIM RESULTSDIM_111.1DIM_111.8DIM_111.2DIM_25.3DIM_25.5DIM_380.2DIM_380.1DIM_380.35

i need to make a new table in wich all "dim" will repeat only once and the results will be the average of the results that belongs to the same "dim"
the times that the "dim" repeats can change and the "dims" could be not only till 3

View 9 Replies View Related

Min / Max Formula Output Cells (Multi-Step Data Table)

Oct 28, 2013

I have a long chain of formulas calculating the return on a particular investment in equipment. We'll call the inputs A, B, and C, and the output (total savings generated) Z. There are several set combinations of values for A, B, and C that I'm interested in generating a summary report for.

There are a number of steps in-between the inputs that I'm interested in, all of which are necessary to get to the output, but is there a good way to have excel chart inputs and outputs without filling out the intervening data?

I suppose the whole thing is essentially a multi-variable, multi-step data table.

View 3 Replies View Related

Calculate A Multi-variable Equation Based Off Of Data In A Table With Different Criteria

Jan 8, 2010

I'm trying to calculate a multi-variable equation based off of data in a table with different criteria. If you reference the attached spreadsheet I am trying to calculate cost based on weight and zone. For the data entered in cells B1 and B2 944.01 would be the cost. If you look at the table in G2:N3 you'll notice that the values in G2 and G3 are the weight limits G2 is from 0-4999 and G3 is 5000+, this should impact where the value in B1 falls. B2 should select from H1 to N1.

View 3 Replies View Related

Enter Data To Multi Sheet Through Userform

May 9, 2007

Enter Data To Multi Sheet Through Userform. How can I enter Data from entryform to multisheet?

View 6 Replies View Related

Lookup Function To Lookup For Data In Another Table

Jul 29, 2008

I am trying to use lookup function to lookup for data in another table (we call it table A). Unfortunately, whenever the code is not in the table A, Excel will return the data from the previous row.... is there any possible way to prevent this... in another word, if the code does not exist in the table A, I want Excel to return 0 or some other figures.

View 9 Replies View Related

Lookup 2 Values In A Table

Feb 13, 2009

I have a problem with a table I am using I need to look up two values in a table and return the the score to the relative cell.

I have attached an example of what I need. I don't know if I can use the VLOOKUP function or would it be better to use the Index feature?

I have defined a name called 'Com' which is for the whole table in the 'Com' sheet.

On the 'Results' sheet all cells highlighted in Yellow are where values are entered and contains no formula. The Green cells are the cells where I need to amend the formula so that it is more efficient.

What I need exactly is for the formulas in C4 to C11 is to first look up the values in column A and match the value in column B that relates to column A.

For example on the 'Results' sheet, if the value in B6 equals b then the formula in C6 should then look at the table in the 'Com' sheet then match 'Com 1' and then look at the response value in column B to match the rating of 'b' and then return the value of '4' from Cell C2 on the 'Com' sheet.

View 5 Replies View Related

Creating A 2-dimensional Array From A 1-dimensional List

Nov 27, 2008

I've been a lurker on this forum for a long while and it's always been able to provide me with lots of excel tips, and for that I am grateful! But this time I have a question that I can't find the answer to here, or anywhere else on the web after a few hours of looking. As a note, I'm not very experienced with Excel, probably somewhere between novice and intermediate.

What I need to create is a 2-dimensional array of data. The vertical (y-axis) are the tools, and the horizontal (x-axis) are the jobs. Where the y-axis and the x-axis intersect, will be the quantity of tools needed for that specific job. There are almost 1500 tools, and 100 jobs.

View 4 Replies View Related

CountIF In Multi-Sheet Range Or Data Cube

Jun 10, 2014

Im trying to count the number of time a Value is in a multi sheet Range

the formula

=COUNTIF(rangename,Value or cell ref to count)
or
=COUNTIF(SKULIST,A2)

Works if my range "SKULIST" is on a single sheet but returns #VALUE! error if its a multi sheet range

View 9 Replies View Related

Lookup Values From A - Z Table In Excel?

Mar 12, 2013

I have the z-table imported into excel, How i can look-up values from the table to 2 d.p

For example, to lookup 0.49 would be the intersection of 0.40 down the rows and 0.09 across the columns, i.e a value of 0.6879

anoda example would be 1.26 which would be 1.20 down the rows intersecting with 0.06 across the columns and it gives a value of 0.8962

I have tried some index-match but hasnt worked out fine, i know excel's normsdist function can do this but i need to get it done this way

0
0.01
0.02
0.03
0.04
0.05
0.06
0.07
0.08
0.09

[code]....

View 2 Replies View Related

Looking Up Multiple Values In A Lookup Table

Jul 4, 2006

I have a giant lookup table with five columns. I have three variables, and I need to find the row in the lookup table where the variables match the first three columns of the lookup table. ie. Find the row where variable 1 matches the value in column 1, variable 2 matches the value in column 2 and variable 3 matches the value in column 3. If this row exists then return the value in columns 4 and 5 of that row. Otherwise, return a zero.

View 4 Replies View Related

Lookup Values From Multiple Formula Table

May 3, 2009

I have a sheet, called "output", in which I need to complete column C "calculated values". I need to complete the table based upon a formula table (which is in sheet "formulas").

For the first row of data, cell C2, I need to take the price per order ($0.25; cell A2) and number of orders (40; cell B2) and copy data to cell B4 and B6, respectively.

Once the data has been copied to to cells B4 and B6 on the fomulas sheet, I need to copy the calculated value in Row N to the output sheet. Note that the value being copied from N can be N11, N12, N13, N14, or N15 (the one that is <> to null).

View 2 Replies View Related

Return Multiple Values From Lookup Table

Jan 5, 2007

the formular that i have in the attached file is returing all the customer numbers
Is it possible to return only one value of each
the data is in the "data" sheet and the formulars are in sheet1

View 3 Replies View Related

Move Lookup Table To Same Sheet As VLOOKUP

Jan 18, 2010

One other common problem is storing the Lookup Function on another sheet to the Table. On The Uploaded Workbook. Is it possible to change the Vlookup to the same worksheet as the lookup list to remove the disadvantage of having them on separate worksheets. If I have misunderstood the statement in the quote above.

View 2 Replies View Related

Distinct Values From 2-dimensional Range?

Sep 18, 2012

I'm a huge fan of the DistinctValues function published by C Pearson here: Distinct Values Function

Now I have the problem that I need to get all the distinct values from a 2-dimensional range.

View 1 Replies View Related







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