|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Excel Index and Match function with multiple criteria not searching the next record
I have a spreadsheet wherein I need to find data based on multiple search criteria. I have used the Index with Match function to find the first record in the spreadsheet however I am unable to get to the next record in the data set.
The file name is "Safety Stats" and the data is in the [Occupational Injuries] tab. I need to find all records where the month is pervious month, the "Employee/Contractor" column is "Employee" and the "Injury Type" column is not "First Aid" or "Reported Only". I want excel to pull data based on my criteria from this spreadsheet into a different excel report every month. My function is locating the first occurrence however I am unable to find the next record in the data set. Any help will be highly appreciated. Here is the function I have written. [code][code][code]{=IF( ISNA( INDEX( '[Safety Stats.xlsx]Occupational Injuries'!$C$5:$C$128, MATCH(1, ('[Safety Stats.xlsx]Occupational Injuries'!$A$5:$A$128=TEXT(EOMONTH(TODAY(),-1),"MMMM")) * ('[Safety Stats.xlsx]Occupational Injuries'!$F$5:$F$128="Employee") * ('[Safety Stats.xlsx]Occupational Injuries'!$I$5:$I$128<>"First Aid") * ('[Safety Stats.xlsx]Occupational Injuries'!$I$5:$I$128<>"Reported Only"),0))),"", INDEX('[Safety Stats.xlsx]Occupational Injuries'!$C$5:$C$128, MATCH(1, ('[Safety Stats.xlsx]Occupational Injuries'!$A$5:$A$128=$Y$9) * ('[Safety Stats.xlsx]Occupational Injuries'!$F$5:$F$128="Employee") * ('[Safety Stats.xlsx]Occupational Injuries'!$I$5:$I$128<>"First Aid") * ('[Safety Stats.xlsx]Occupational Injuries'!$I$5:$I$128<>"Reported Only"),0)))} Here is the DATA. MonthDayFull NameYears of ExperienceOccupationEmployee /ContractorLocationDepartmentInjury TypeMay05Bery Owen5WelderEmployees2. MaintenanceMaint ShopMedical Treatment InjuryMay09Samyy Wood3ServicesContractor2. MaintenanceServicesFirst AidMay11Sunny Man4OperationEmployees1. ProductionOperation FacilityMedical Treatment InjuryMay15Rick Richard1OperationEmployees4. OthersPlantLost Time InjuryMay19Patty Westwood6MaintEmployees4. OthersMachineryFirst AidMay21Tim Bear3MaintContractor4. OthersServicesReported OnlyMay24Angela Petterson5MechanicEmployees1. ProductionOperation FacilityFirst AidMay25Martin Butin4TradesmanEmployees1. ProductionOperation FacilityRestricted Work InjuryMay29Roy Mathew6RiggerEmployees1. ProductionOperation FacilityFirst Aid |
#2
|
|||
|
|||
Think your chances of assistance would be better if you attach a sample workbook.
When replying, click "Go Advanced" >> scroll down and click "Manage Attachments" >>Browse to a file and "Upload" |
#3
|
|||
|
|||
Excel Index and Match function with multiple criteria not searching the next record
Sorry. I am new to this forum. Attached please find the excel sheet
|
#4
|
||||
|
||||
Do not crosspost your question on multiple forums without including links here to the other threads on other forums.
Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post. Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you! Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Configuring proper syntax for multiple-worksheet and criteria using INDEX-MATCH, and others | Excel-User | Excel | 4 | 12-07-2016 07:29 PM |
Excel - Index and Match Function ,First Second and Third Match | paulzy95 | Excel | 10 | 09-29-2016 10:46 PM |
Index Match function | jackzha | Excel | 5 | 12-03-2014 12:43 PM |
Vlookup or Index/Match - Multiple Criteria | ruci1225 | Excel | 1 | 01-15-2012 07:31 AM |
Moving a Index/Match function | FraserKitchell | Excel | 2 | 01-19-2010 09:38 AM |