Index & Match Multiple Items/Criteria: Finding The Nth Occurrence

Jun 25, 2008

I've read the how to for finding the nth occurrence using index/match but the example given does not really help solve my issue. The file I've attached is a condensed version of the actual file, which has more columns but I deleted all but the necessary ones for clarity. What I am trying to accomplish:

On sheet1 there are three columns, Business, Amount, and Closing Date.

Not all the business names have a closing date and the spreadsheet is sorted alphabetically by business name, so sorting by closing date, and using the method used in the topic " find the nth occurrence in excel", is not an option.

On sheet2, I would like to see ALL the business names that have a closing date in the respective month, as opposed to just the first. Then to the right of the business names I have the sum of all the amounts in that month, but I figured out how to get that one already.

View 2 Replies


ADVERTISEMENT

Index Single Occurrence With Multiple Match

May 30, 2012

Given a database as follows:

In A40:

HTML Code:

kindNo.IDSiteAOCOptdMOBMOSShsTAOSDOO
OTH11180MCF411.9296170T2/1/10none16 mos5/4/12
OTH11180MCF411.9208170T2/1/10none16 mos5/5/12
OTH11181DDF415.64132T1/31/08none36 mos5/6/12
OTH11181ESF415.68132T1/31/08none36 mos5/7/12
OTH11182PDF47.94132T1/31/08none44 mos5/8/12
bop11183BPF413.722135T3/6/08none37 mos5/9/12

[code].....

I would like to retrieve all No. from ColumnB if the following 3 conditions are met:

1 Column A "kind" is "oth"

2 values in Column K "DOO" are superior and equal to Cell B2:01-may-12

3 values in Column K "DOO" are inferior and equal to Cell D2: 31-may-2012

Formula presently used in B4 is:

Code:
=IFERROR(
INDEX($B$41:$B$52,
SMALL(IF(($D$2>=$K$41:$K$52)*($B$2

View 3 Replies View Related

Index All Items In Column Based On Multiple Criteria?

May 15, 2014

I am trying to create a list of all instances where contents in A3 is found in C5:C12 and return the values in D5:D12 without any spaces. Right now I can do it in two steps but I'd like to clean it up and do it with only one formula.

View 7 Replies View Related

Match Index Nth Occurrence?

Feb 20, 2011

I have tried using the 'arbitrary lookup' function as listed here but can't seem to get it to work. [URL] .....

I have a list of all football fixtures and results in the premier league this season and I have a separate worksheet with a drop down menu to load each team.

What I am struggling to do is to get a function that will obtain the data corresponding to each of the home fixtures and the away fixtures of the team selected in the drop down menu.

I have managed to get the first result but do not know how to get the 2nd occurrence, the 3rd etc.

My formula for the first is

=INDEX(Fixtures!$A$3:$R$380,MATCH($E$1,Fixtures!$C$3:$C$380, FALSE),5).

I've attached the spreadsheet. (Unfortunately the format of the excel sheet can't be changed)

Forum Example.xls

View 7 Replies View Related

Returning 2nd Occurrence Using INDEX And MATCH

Jan 20, 2014

I am trying to find the 2nd occurrence in a range of text along 1 column and return the cell one to the left of that 2nd occurrence. I will also need to find the 3rd, 4th, 5th, etc occurences, down the column.

So far, I have a working formula to find the first occurrence and it looks like this:
=INDEX(INDIRECT(A2),MATCH("*SS*",INDEX(INDIRECT(A2),0,2),0),1)

How would I find the 2nd occurrence?

what if the formula looked like this?

how would I find it's 2nd occurrence?

{=INDEX(INDIRECT(A2),MATCH(TRUE,ISNUMBER(MATCH(INDEX(INDIRECT(A2),0,2),{"CF","LF","RF","OF"},0)),0),1)}

View 3 Replies View Related

Multiple Criteria Index Match?

Mar 7, 2013

I am trying to return a reference to the first cell that meets several conditions. I can calculate a column (say Col E) that tells if each row meets condition with

=IF(AND(IF('number of cases by year'!B28:B547>'cumulative distribution >0 '!F51,TRUE,FALSE),IF('number of cases by year'!$A$2:$A$521>=DATE('% of cases captured'!$C$3,'% of cases captured'!$A$3,'% of cases captured'!$B$3),TRUE,FALSE)),TRUE,FALSE)

Then to find the first time this is met I use

=MATCH(TRUE,INDEX(E2:E521,0),0)

Is there a way to do this all in one step? I tried

=MATCH(TRUE,INDEX(IF(AND(IF('number of cases by year'!B20:B539>'cumulative distribution >0 '!F43,TRUE,FALSE),IF('number of cases by year'!$A$2:$A$521>=DATE('% of cases captured'!$C$3,'% of cases captured'!$A$3,'% of cases captured'!$B$3),TRUE,FALSE)),TRUE,FALSE),0),0)

but it does not seem to work. It returns #VALUE

View 1 Replies View Related

Index Match And Multiple Criteria

May 23, 2014

I am making a table that reads from an list of employees. I have attached a sample sheet (changed the names). The list includes Name, 2014 Start Date, Pay Type, Job Title, Location, Weeks, Hours, Avg. Hours.

I need a formula that will list employees on a separate sheet based on the following criteria:

2014 Start Date = 1/1/2014
Avg. Hours >=30

I have worked with a number of INDEX MATCH combinations but I cannot get the formula to quit at 30 Avg. Hours whenever I drag the formula down. I also have seen some employees that average over 30 hours get "skipped" over whenever I drag the formula down.

View 5 Replies View Related

Index Match Multiple Criteria

Oct 7, 2013

I am trying to create a formula to pull in the mgmt fee% into the investor capital forecast tab, based on two vaiables. The client's AUM(column B), and their Tier (column A). It should pull in 1.157% from the Mgmt fee schedule tab, based on AUM of 314MM, and Tier 3.

indexmatch.xlsx‎

View 3 Replies View Related

VBA Multiple Criteria Index Match

Aug 1, 2012

I am trying to do an index match with multiple criteria and it keeps on returning a 'False' value. I am also not sure if it is adjusting the indexmatch lookup values for each row.

Code:
Sub Check()
Set ws1 = ActiveWorkbook.Sheets("SprocketPartData")
Sheets("SprocketPartData").Activate
Set ra = ws1.Range(Cells(2, 4), Cells(65536, 4).End(xlUp))
Dim c As Range

[Code] ........

View 7 Replies View Related

INDEX / MATCH And Multiple Criteria

Dec 15, 2013

I have 2 workbooks and would like to use an index match formula to populate the data in the second workbook. I wanted to populate TOTAL HOURS in workbook 2 by matching "Month To Date" and "Employee ID" from Workbook 1.

Workbook 1

A
B
C
D
E
F

1

Supervisor
First Name
Last Name
Employee ID
Total Hours

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

View 9 Replies View Related

Index Match With Multiple Criteria?

Jul 1, 2014

I need to write a formula using Index Match that is looking at to criteria field. I've done this formula before with one criteria field but now I need 2 and the way I'm writing it isn't working.

=(INDEX('Agent Weekly DataSheet'!G:G,MATCH('Agent Weekly Overall Scores'!B8,IF('Agent Weekly DataSheet'!F:F='Agent Weekly Overall Scores'!G8,IF('Agent Weekly DataSheet'!B:B='Agent Weekly Overall Scores'!C8,'Agent Weekly DataSheet'!B:B),0))))

The bolded piece is what I can't figure out.

View 2 Replies View Related

Index Match - Multiple Criteria

May 4, 2009

I have a couple of desired outcomes.

1. I want to find the “Close” price based upon “Date” and “Time” input (search criteria).

2. I want to know when (what time) a “Price” (input) falls between the “High” and “Low”, on a specified date.

DateTimeOpenHighLowCloseVolumeTimeDateTimeCloseTime2/24/200913:00138.21138.23138.18138.22410.022572/24/200913:00#N/ABUY2/24/200913:01138.23138.30138.18138.26680.02260SELL2/24/200913:02138.25138.28138.21138.28340.022632/24/200913:03138.27138.37138.27138.35680.022662/24/200913:04138.36138.41138.31138.33440.022692/24/200913:05138.34138.44138.32138.39330.022712/24/200913:06138.40138.45138.37138.41350.02274

View 9 Replies View Related

Index / Match Or VLookup For Multiple Criteria

Jun 9, 2014

Getting a formula that will generate the corresponding rating attached to a row value and columns header as per below example:

EnglishSS1 EnglishSS2 EnglishSS3 Rating
10 20 30 3
20 30 40 2
30 40 50 1

Where my variables would be based on whether a person is under EnglishSS1 and getting a score of <=10, the resulting rating would be 3. I know this is doable by doing a vlookup with a range lookup value of false. However I have roughly 70 column headers and it will be a bit taxing to combine an If and Vlookup statement to address it.

I have attached a sample sheet for reference : Book1.xlsx‎

View 2 Replies View Related

Index Match Array Multiple Criteria?

Jun 22, 2014

with a multiple criteria index match array!

I have attached an example where I need to bring back a result matching 4 specific criteria, but I cannot seem to get it to work at all!

I have attached an example dataset with the formula that I was trying to get right (and failing miserably!!)

View 6 Replies View Related

Index Match Formula For Multiple Criteria?

Dec 3, 2013

In the attached I have a pricing list on sheet 2 based on various criteria and on sheet 1 dropdown lists to match the criteria.

In cell B12 i have an index match that I can not get to return a value.

Is Index Match the correct method of returning a result? Or have I just got the formula wrong?

View 1 Replies View Related

Using MATCH And INDEX Function With Multiple Criteria?

Feb 9, 2010

We're selling language courses that have a different price depending on when a course is taken. We're trying to build a price quote application that needs to look up a certain school and course and price driven by a start date.

How can I build a lookup function that says: pick the price of school X and course Y when the start date falls between dd/mm/yyyy and dd/mm/yyyy?

I manage to build a look up function with MATCH and INDEX when the condition of start date is exactly matched but dont know how to instruct it to match a value between a start and end date.

View 14 Replies View Related

Multiple Criteria On Index / Match With Hierarchy

Dec 29, 2011

The below formula was provided by PGC, and works great:

=INDEX($E$15:$E$18,MAX(IF($A$2:$A$8=A15,MATCH($E$2:$E$8,$E$15:$E$18,0))))

In post:
Complex Array(?) Search

Now, I would like to add the ability to perform this same action/concept, but using two different criteria.

So I want to keep the hierarchical listing of importance, but lookup/match within using more than one criteria.

Example:
I have an order of superseding to apply to results of a search for Fruit.
Great
Good
Fair
Poor
(so Good supersedes, Great; Fair supersedes, Good; etc.)

Column A____Column B____Column E
Apple_______Red_________Fair
Apple_______Red_________Poor
Apple_______Green_______Great
Pear________Red_________Great
Pear________Yellow_______Great
Pear________Red_________Good
Pear________Red_________Fair

I want my verification to return all the worst Red fruit:
For Apple Red: Poor
For Pear Red: Fair

View 1 Replies View Related

Index Match Formula With Multiple Criteria

Feb 5, 2013

Is it possible to use an Index/Match formula that looks at multiple criteria?

View 1 Replies View Related

Index And Match With Multiple Criteria From Different Sheet

Dec 14, 2013

When I enter my formula on the same sheet the data is on, I get the answer I am looking for, but when I enter it on a separate sheet, I get #N/A

Here is the formula on the sheet that contains the data: (works perfect)

=INDEX(K1:M144,MATCH(H17&I17,K1:K144&L1:L144,0),3)

Here is the formula on the separate sheetreturns #N/A)

=INDEX(List!K1:M144,MATCH(D4&E4,List!K1:K144&List!L1:L144,0),3)

View 5 Replies View Related

Index & Match Formula: Multiple Row Criteria

Jun 20, 2007

I am trying to get my INDEX & MATCH formula to retreive data from my table.

This is what I can do so far:
Jan-07Feb-07
100 12
250 45

=INDEX(table,MATCH(B13,balance),MATCH(C13, date))

But I am trying to get it to get another row to look up as well.
I want it to look up the color then the 100 or 250, then the date.
Jan-07Feb-07
red100 12
red250 45
blue100 78
blue250 1011

=INDEX(table,MATCH(B13,balance),MATCH(C13,date))
I think i need to insert another match code in the row section but cant seem to get it to work.

View 7 Replies View Related

Index Match - Multiple Criteria And Multiple Matches

Dec 2, 2013

I would like to extract Bill cost from "rule" sheet and insert it to "data" sheet using index-match functions. My problem are multiple criteria and multiple matches.

The criteria are Column: Cost type, Power, Penalty Category (The logic goes like AND function).

And I want it to extract "Bills" value from "rule" sheet.

There are multiple matches in all columns (Cost type, Power, Penalty Category) which cause wrong extraction.

How do i solve this problem with index-match function?

View 3 Replies View Related

Using Wildcards For Text In Index / Match Multiple Criteria In Excel

Jun 10, 2014

I'm having trouble using wildcards for text in index/match multiple criteria; I need to find the nearest site along a river (x) below a certain point (distance =21), each stretch of the river is labelled with the streches downstream (so stretch abc is upstream of ab).

My problem arises when the nearest point downstream is on the downtsream stretch of river. How do I use wild card to search for ab&"*" that will exclude abd.

River
Distance
Stretch

S1
x
10
a

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

'formula in cell E14 ={INDEX(A2:C11,MATCH(1,(A14=B2:B11)*(C2:C11

View 2 Replies View Related

Extracting Data Based On Multiple Criteria - Index Match Array?

Jan 2, 2013

I have sheet full of data containing results of multiple tests on various equipment.The sheet contains many columns of data but below are the specifc criteria i want to use to extract the data. As maintenance is carried out regularly the list is always growing. I want to create a dashboard summary of the "Machines" which i will colour using condition formatting. I will list the machines in the columns and would like the rows below each machine to be populated with the results.

Column 1 Lists the various factories
Column 2 Lists the Machine
Column 3 Lists the Part
Column 4 Lists the result.

Results can either be "ok", "warning", "Alert" only

View 6 Replies View Related

Reverse VLookup (Index Match) To Return Multiple Values Based On Single Lookup Criteria

Jul 11, 2012

I have encountered a situation where I need to essentially accomplish a reverse Vlookup (using index match) and return multiple values.

View 1 Replies View Related

Index Items Based On Criteria?

Jul 9, 2014

I have a list of words in the column A, and then columns E:SA where are numbers. I need to set up a piece of code/VBA that will index(write) all the words from the column A that have a number 1 on the same row in the column E for example (I need to do this for each column - E:SA).

I know it's hard to understand, I'll give you an example:

Column E has in E16 number 1. So the program will index the text(value) of the cell A16
and so on ... for every column E:SA

I need to index the values in the 1748th cell(and higher) of each column (E:SA)

View 8 Replies View Related

Count Items In Column That Match Multiple Data Items?

Mar 27, 2014

I need to count the total number of times 4 different values appear in a column. This formula works for one value:

=COUNTIFS(Source!$C:$C,$B5,Source!$J:$J,$L$3,Source!$L:$L,$H$1)

Where H1 contains the word Assigned. I need to also find and add to count for matches in I1,J1 and K1 which contain New, Pending and Work in Progress respectively.

View 6 Replies View Related

Index And / Or Match Formula With Multiple Match Required To Return A Value

Jan 21, 2014

See attached file, "Rate Sample Index-Match Formula".

I need a formula to return the value at the cross section of two (2) lookup values that match. This formula will be input into column D under, "RATE" on the 1st tab, "TEST FILE".

In the 1st tab, "TEST FILE" there are a series of columns as follows;

A = Service
B = From
C = To
D = Rate

In the 2nd tab, "RATES" there is a series of rates with drivers From (green) & To (blue)

The formula needs to do the following;

1. Lookup the "From" value in column B on tab, "TEST FILE" and match to column B2:B59 on tab, "RATES" both highlighted in green
2. Then Lookup the "To" value in column C on tab, "TEST FILE" and match to row C1:BH1 on tab, "RATES" both highlighted in blue
3. Then return the value at the cross section of the match "From" (point 1 above) & "To" (point 2 above) in range C2:BH59

For Example;

The rate From SYD To CBR = 0.33. I have highlighted this in yellow on both tabs to show where the formula needs to lookup the data to return the answer.

Additionally, if we were to add service as an additional lookup match how would this work?

View 3 Replies View Related

How To Use The INDEX And MATCH Against Two Criteria

Jul 8, 2014

Screenshot1.JPG

Screenshot2.JPG

So basically, I have these two sets of data in 2 separate tabs. I need the 2 sets of data circled in green that match to bring up data circled in red.

How would I go about doing this?

View 2 Replies View Related

INDEX & MATCH 3 Criteria

Mar 12, 2009

I have a userform that collects production data from several production lines each running up to 4 shifts every day. This populates a table for performance related calculations to be applied.

Each day I must produce a report for each line and shift showing the performance stats I have calculated. the format of the report has been defined for me and I'm not allowed to change it at the moment.

I wrote a line of code to be applied to each cell I wanted to show the data in excel 2007 but this doesn't work in 2002 which is the version in our office and I'm hitting my head against a brick wall.

Essentially the report will either use Now() or get the user to enter a date, then I need to search for the unique reference that meets the date, the line and the shift and return several values in the report from the row in my "daily data" table.

Here is the code I have so far - it returns a "VALUE" error...

=INDEX('Daily Data'!A6000:AA6000,,19,MATCH($B$2&"Line "&$A$6&B6,'Daily Data'!$F6000:$F6000&'Daily Data'!$H6000:$H6000&'Daily Data'!$I6000:$I6000,0))

(although it doesn't show ot here I have entered it as an array formula)

The previous code I tried (again entered as an array) returns a "NUM" error

=INDEX('Daily Data'!A:AA,,19,MATCH($B$2&"Line "&$A$6&B6,'Daily Data'!$F:$F&'Daily Data'!$H:$H&'Daily Data'!$I:$I,0))

B2 is date (dd/mm/yyy)
A6 is line number (numeric)
B6 is shift (alpha)

View 3 Replies View Related

INDEX / MATCH Multiple Ocurence Match Values

Jul 11, 2008

INDEX/MATCH multiple ocurence match values needed

View 9 Replies View Related







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