Index / Array Return A Value From Same Column In Another Sheet

Jun 2, 2009

I am currently looking at a simple data set spanning a few years of annual average data. I want to create a front sheet to show people in what year the maximum value was reached for each site but am having trouble returning the values......

The summary sheet is headed:......
I want the formula to say - find the summary sheet max value cell in the main data sheet row 2 (for XYZ) and return the corresponding column from row 1 (year). I've got myself in a muddle trying to create array data from the index function and want something simple. There are only about 30 rows so am happy to manually select the rows in question and repeat the formula entry so it doesn't need to be fancy.

View 2 Replies


ADVERTISEMENT

Nested Index / Match Array - Return Value In Column C When Matching Column A And B But With Few More Criteria

Jun 7, 2014

I am trying to use a nested INDEX and MATCH array formula to return the value in column C when matching column A and column B, but with a few more criteria.

The range containing all the data

A
B
C

1
Cat 1
January 1, 2014
John

[Code] ..........

I am looking for the array formula to return the name of the person in column C who is in Cat 1 after the date in column B.

For example;
C7 should return "John" because B7 requests "January 15, 2014", which is after the value in B1
C8 should return "John" because B8 requests "February 15, 2014", which is after the value in B1
C9 should return "Andrew" because B9 requests "August 15, 2014", which is after the value in B4

The best try I had for the formula in C7 was

{(INDEX($A$1:$C$4,MATCH(1,($B$1:$B$4>=B7)*(A$1:$A$4=A7),0),3))}

This brings back "John" as desired in C7, but when copying down the table into C8 and C9 both C8 and C9 return Andrew.

I guess this is due to my ">=" condition in the Match formula and it is returning "Andrew" because "Andrew" is also after the date requested, but I cannot for the life of me work out how to get it to work.

View 2 Replies View Related

Formula To Return Array To Use In Index / Match Function?

May 8, 2013

I need to find a way to find an array in a tab to use for an index/match function I have.

this is what i would normally use: =index(tab_array,match($a2, tab!$a$1:$a$1000,0),match($B$1,tab!$a$1:$zz$1,0))

This formula would usually work fine when I know that within the tab, the array in which the row match is searching doesn't change. However, that array may change in the future, to say column H, without my knowing as it is a database that gets automatically populated from an upstream system.

Is there a way to search for an array within an index/match?

View 1 Replies View Related

Return Array Index Number For Specific Date

Jun 14, 2008

I looking for a macro which will help to open a file with current week number in name.

The problem is week 1 is starting on 30/03/2008 (finacial year) and ends on 28/03/2009.

I've made two dimensional array (week number, weekday) with all the dates from that period.

I have problem with code to search through the array for given key, return index and write it into variables.

For now my code looks like:

Sub week()

Dim i As Long
Dim j As Long
Dim k As Long

Dim week(51, 6) As String

View 5 Replies View Related

Using Array For Column Or Row Argument In INDEX Function?

Dec 28, 2013

Can we use an array like {1;3;4;5} as Row or Column argument in INDEX function? Like shown below

=INDEX($A$1:$E$10,0,{1;3;2;4;5}) OR =INDEX($A$1:$E$5,{1;2;4;5;3},0)

View 9 Replies View Related

Index Workbook - Return Sheet Names

Dec 19, 2012

I have a workbook with a menu and 122 sheets holding detail for unique item (product model).

On the menu there is an index of the sheet names which was hand typed. However, the sheet names change as models evolve/get replaced.

I've written a small macro to put the sheet name in cell J1 of each sheet.

[Code] ......

On my menu page i was hoping to do something like this:

A B
Index NAME
2 =sheet[A2].$J$1
3 =sheet[A3].$J$1

That way i could just drag this down and my index list would complete itself and would dynamically update as sheet names change....

View 5 Replies View Related

Index Match Lookup, Variable Return Column

Sep 3, 2009

I would imagine that the title of this thread made little sense, so let me try to explain:

Sheet A has columns A-C populated with data. Column D needs to search Sheet B columns A-C for a match. (ie, see if the data on sheet A is also on sheet B) if this is true, then it needs to return the value of the LAST column of the matched row in Sheet B.

So, if Sheet A R1 A-C is 1,2,3. Sheet A R1 D needs to search Sheet B for 1,2,3. and when it finds it, (for example on row 9) return the value of the last column of Sheet B row 9. The issue is, the last value could be in column R or S or AA, there is just no way of knowing.

View 9 Replies View Related

Offset / Index / Match - Using 3 Functions To Search For And Return Values From Data Sheet

Jan 19, 2014

Trying to grasp the concept of using these 3 functions to search for and return values from a data sheet.

The attached spread sheet has performance data for a group of employees.

What I need to do is find a particular employee then return a value for one of the category's.

For instance, I need to find "10TE03 ANGIE HOLLIS" Parts Usage on color or cell C10 in the attached sample.

Sometimes new category's are added to column A adding to the number of rows so a simple offset is not reliable.

Once I get that working, I then need to use a named range to total and average different data points for groups of employees by teams.

Maybe Offset-Index-Match is not even the way to go here?

View 7 Replies View Related

Search For Value In Multiple Column And Row Array And Return Value In First Column?

Dec 16, 2013

I have an array 20 Rows x 42 Columns, which contains a competition draw.

I need to search this array for a unique value and return whatever the time is in the first column on the same row as the value appears, and enter it into column C in the Womens Times sheet.

I also want to return into column D the court number from row 3.

The reason i want this automated is as teams enter / withdraw we may need to drag the games from court to court to fill gaps, so i want the Womens Times sheet to update accordingly.

I have been messing around with index and match, but cannot quite get it to return what i need.

I have attached an example ... on the sheet "Womens Times" in column A there is a list of game numbers ( #1W etc etc) indicating womens game #1 and so on. The main sheet i am using also has a seperate tab for the mens games, hence the designator of W or M on the end of the game number.

View 2 Replies View Related

Return To Original Sheet After Print Array

Jun 14, 2006

The code prints a series of sheets. Afterwards these sheets are "group"ed together. The code can be accessed from 2 different sheets. I need to figure out how to get rid of the grouping and return to the original sheet.

Private Sub CommandButton1_Click()
Sheets( Array("Pipe", "Pipe Flow")).PrintOut
UserForm1.Hide
End Sub

View 2 Replies View Related

An Array And Return The Same Row In Another Column

Nov 9, 2007

I have an array with a lot of rows and columns filled with different codes.

I need to look into this array for one specific number and return the value in the same row in an specific column.

I can't use Vlookup in this case because it needs to have the values you are looking for in the first column and my values are spread in different columns.

View 10 Replies View Related

Finding Value In Array - Return Value On Same Row But Different Column

Feb 7, 2012

I have an array that is 60x100 (column x row).

I'm trying to search for a value in that array and return the value on the same row, but shifted to the right one column.

Example: If my value is found in D63, I want to return the value in E63.

I've been messing with Index, Match, and Offset, but I can't get anything working.

View 4 Replies View Related

Vlookup: Search For Value In SECOND Column Of Table Array And Return Value From FIRST

Oct 7, 2008

I'm looking for a formula to search for a value in the SECOND (instead of first) column of a table array and return a value in the same row from FIRST (instead of the same or another) column in the table array. Formula would be searching for the unique production order number in the column B and return production line id from the column A.

A1 production line_id
B1 poduction_order_number

A2 L1
A3 L2
A4 L1

B2 505212
B3 504234
B4 505663

I was trying vlookup(504234;B2:A4;2;0) to make formula go search from right columns to the left but then excel is switching the search table to A2:B4 and gives #N/D!
One remark-there is no possibility to switch these 2 columns to simplify. I have to leave them as they are.

View 2 Replies View Related

Lookup Function - Return Value From Column That Relates To Array

Apr 12, 2013

I would like to write a formula to return a value from a column that relates to an array within which my lookup value exists. See the tables below:

ID
V1
V2
V3

105
27
3
149

[Code] .......

The tables above are on different sheets within a workbook. I would like to write a formula that returns the "ID" numbers from column "A" in the first table, based on values in columns B-D in that first table, into column "C" in the second table. For example, in this case, the ID number that corresponds with the value "12491" would be "109", since 12491 corresponds with 109 in the first table.

FYI, the "Value" numbers in the second table are calculated based on their rank (high-low) within the matrix in the first table.

I tried the INDEX-MATCH function, but it doesn't seem to work if I'm trying to find a value within a 2-D array- it only works if I'm looking in a single column.

View 2 Replies View Related

Return Highest Value Of Column Headings With Matching Text In Array?

Mar 7, 2013

I have an array of data with multiple codes stored in text...

I want to set a formula in a cell to look for all instances of specific text in an array. Then compare the value of all of the column headings, which are numbered across the top of the array, which contain a match in that column and return the highest value.

Example: 10x10 array, columns 1,3, and 5 contain "text" somewhere in those columns. Formula would return 5.

View 2 Replies View Related

Index Match Array New Formula Not Array?

Nov 6, 2013

Is there anyway to recreate this formula w/o it being an array ?

{=IF(C3="","",IFERROR(INDEX('Master List'!$B$1:$B$2000,MATCH(TRUE,ISNUMBER(SEARCH('Master List'!$A$1:$A$2000,C3)),0)),"ADD TO MASTER"))}

View 5 Replies View Related

Index Function - Data Identified Based On A List Of Account Numbers And Return This Data To A New Sheet

May 8, 2007

I have a multiple column spreadsheet (Call it- "Money") whereby I need the data identified based on a list of account numbers and return this data to a new sheet.

In "Money" I have:

IE; columns B, C respectively have cust #A100 & 20.00
columns E, F respectively have cust #B100 & 40.00
columns G,H respectively have cust #C100 & 60.00
Etc.

(above for illustration-there are 100 lines of data in these columns with varied account numbers and respective dollars)

So what I have now is a new sheet I have named "Control". I have listed all my account numbers like A100,B100 etc. in column A. These are the account numbers for ident purposes.

I need the data entered in "Money" identified by those columns B,E,G with respective amounts from C,F,H and based on the list I have in "Control" whereby in "Control" if A100 is listed in column A then the figure to be returned in column B is all the data bits found in all columns C,F,H from the entire sheet "Money". Tough to explain but ie below....

View 17 Replies View Related

Excel 2010 :: Match 1 Cell And Column In Sheet 1 To 2 Columns In Sheet 2 Return Data From A 3rd

Jul 23, 2012

I have 2 workbooks in Excel 2010, each contain just 1 sheet. (see attached) I need to compare on sheet 1, cell D1 and column A:A (this column will be much longer), with the data in columns C:C & A:A on sheet 2, if a corresponding match is found, the data contained in column D on the same row on sheet 2 is written to the cell with the matching data in sheet 1.

My attempt is in cell D2 on sheet1.

View 5 Replies View Related

Return Row Index Of Selected Items In Multi Column Multi Select Listbox

Jun 30, 2014

I have a listbox with 8 columns. Multiselect is enabled, and it must stay this way. As part of my program, after the user presses a command button, I need to use the row indexes of the selected rows in order to copy the selected information into an array which is then placed in a different listbox, and then delete the items from the original list. Pseudocode of what I want to do:

[Code] .....

But my understanding is that .ListIndex does not work this way with multiselect listboxes. I've tried searching for a solution for a while, but I cannot find one.

View 5 Replies View Related

Match Two Column Values From First Sheet And Return Value From Second Sheet

Apr 8, 2008

I have to match table column name with the column name in the sheets and get the values from column 6 in sheet2 if "# of values" in sheet1 matches with "Counter" of sheets for the same column.

if ("Table Column Name sheet1"="Column Name sheet2" then
if("Counter sheet2"="# of Values sheet1" then
return "Total # of rows Sheet2" from same row.
I am using Excel 2003.

Sheet 1 ....

View 10 Replies View Related

Place The Contents Of An Array Into A Column On The Sheet

Nov 26, 2009

I am trying to place the contents of an array into a column on the sheet. I can enter the array into 1 cell (which strings the values), but I can't seem to make range(1)=array(1).

View 9 Replies View Related

If Two Columns Match - Row And Column In Another Sheet Return A Value

Jan 11, 2013

I have a file with multiple column headers and data entries (dropdowns) into the rows. I wanted to create a secondary sheet...like a pivot table..if the vertical and the horizontal are both in the two columns selected it returns a value in the table.

I would use a pivot table, but it is a data entry sheet and the pivot table does not bring up all the horizontal and vertical values unless they have already been selected in the sheet.

View 9 Replies View Related

Index Value From 2D Array

Jul 26, 2007

I have spent hours doing this code to try to identify the value's row and column in a 2D array. However, it shows an error message "Unable to get the match property of the worksheet function class"

Public Sub MatrixMatch()
Dim V As Variant
Dim Value As Double, _
RowOrColumn As String
Dim m As Variant, n As Variant
Dim i As Integer, j As Integer
Dim Temp As Variant
Redim V(1 To 10, 1 To 5)
For i = 1 To 10
For j = 1 To 5
V(i, j) = Range("A39").Offset(i, j)
Next j
Next i
m = UBound(V, 1)
n = UBound(V, 2)
Value = 3.5.....................

View 3 Replies View Related

Lookup For A Cell Value In Entire Sheet And Return Value From A Column

Apr 22, 2014

I have a sheet with Customer name in the first column and next 7 columns have unique serial numbers(alphanumeric) of the systems which that customer has purchased. In another sheet, i have the unique serial number in first column and I want to search this number in the 7 columns of other sheet and return the "Customer name" to this sheet. How do I do that ?

Vlookup searches only in 1 columns, so does match index. lookup didn't work as well.

View 1 Replies View Related

Formula To Look In A Sheet For A Cell Then Return That Value From A Different Sheets Column

Mar 4, 2009

i am using this formula to look in a sheet for a cell then return that value from a different sheets column

View 3 Replies View Related

Lookup Column Values On Another Sheet & Return Adjacent Cells

Jun 11, 2008

Essentially, sheet b is a list of 900 people I need to mail to. Sheet a has 3000 rows of people, many of whom don't need the mailing. It has mailing addresses that we need in sheet b.

We have two worksheets, sheet a and sheet b

compare sheet b, column c (email addresses) to sheet a, column x, (email addresses).
If they match, move sheet a, columns d, e, f, g, and h to sheet b.

View 3 Replies View Related

Index Or Array Formula..?

Dec 2, 2008

I am trying a simple Index or Array formula and have been trying all day to get this work to no avail. The data is freight costs for shipping different size containers (20' and 40') to different ports (Lyndhurst, Port Coquitlam and Seattle).

I will have the port name plugged into one cell and the container size plugged into another cell and want to pull the corresponding freight cost out into another cell. The red text in the file are the data that I will plug in. The box below is where I would like the result.

View 5 Replies View Related

Index / Array Results Incorrect

Jun 5, 2014

If a player does not qualify, their name and score should not be included in the final results.

I currently have their Name missing, but the NUMBER is showing up.

I've explained more in the attachment.

INDEXARRAY.xlsx

View 3 Replies View Related

INDEX Array Formula Returning Same Value?

Feb 18, 2014

I know I can do this as I have already succeeded once but since moving a few things on my spread sheet the formula has gone wrong and I can't correct it.

I have one sheet with many different lines on and another I would like to select certain rows with the same reference number in column A. Below is the formula I am using

=IF(ISERROR(INDEX(Lines!$A$2:$J$200,SMALL(IF(Quote!$AL$4=Lines!$A$2:$A$200,ROW(Lines!$A$2:$A$200)-
MIN(ROW(Lines!$A$2:$A$200))+1,""),ROW(Lines!$A$2:$A$200)),COLUMN(C1))),"",
INDEX(Lines!$A$2:$J$200,SMALL(IF(Quote!$AL$4=Lines!$A$2:$A$200,ROW(Lines!$A$2:$A$200)-
MIN(ROW(Lines!$A$2:$A$200))+1,""),ROW(Lines!$A$2:$A$200)),COLUMN(C1)))

what my error is as it is returning the same value for me each time.

View 4 Replies View Related

Offset Index Match Array?

Jun 3, 2014

=INDEX('Data Dump'!$C:$C,MATCH('YTD Detailed'!B$2&A40,'Data Dump'!$G:$G&'Data Dump'!$D:$D,0))

I have to above array formula, i am looking to nest an offset within it. That looks up two columns to the right, but im having trouble.

Can an offset be added to an index?

View 8 Replies View Related







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