Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2017, 01:58 PM
mushtaqkadar mushtaqkadar is offline Excel Index and Match function with multiple criteria not searching the next record Windows 7 32bit Excel Index and Match function with multiple criteria not searching the next record Office 2010 32bit
Novice
Excel Index and Match function with multiple criteria not searching the next record
 
Join Date: Jun 2017
Posts: 2
mushtaqkadar is on a distinguished road
Default 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
Attached Files
File Type: xlsx Safety Stats Image.xlsx (10.3 KB, 7 views)
Reply With Quote
  #2  
Old 06-16-2017, 02:37 PM
NoSparks NoSparks is offline Excel Index and Match function with multiple criteria not searching the next record Windows 7 64bit Excel Index and Match function with multiple criteria not searching the next record Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

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"
Reply With Quote
  #3  
Old 06-16-2017, 02:48 PM
mushtaqkadar mushtaqkadar is offline Excel Index and Match function with multiple criteria not searching the next record Windows 7 32bit Excel Index and Match function with multiple criteria not searching the next record Office 2010 32bit
Novice
Excel Index and Match function with multiple criteria not searching the next record
 
Join Date: Jun 2017
Posts: 2
mushtaqkadar is on a distinguished road
Default 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
Attached Files
File Type: xlsx Safety Stats Image.xlsx (10.3 KB, 8 views)
Reply With Quote
  #4  
Old 06-17-2017, 12:20 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Excel Index and Match function with multiple criteria not searching the next record Windows 7 64bit Excel Index and Match function with multiple criteria not searching the next record Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,766
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Index and Match function with multiple criteria not searching the next record 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
Excel Index and Match function with multiple criteria not searching the next record Index Match function jackzha Excel 5 12-03-2014 12:43 PM
Excel Index and Match function with multiple criteria not searching the next record 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft