Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2018, 11:37 PM
Marcia's Avatar
Marcia Marcia is offline Index Match Formula to return value from a list with criteria Windows 7 32bit Index Match Formula to return value from a list with criteria Office 2007
Expert
Index Match Formula to return value from a list with criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default Index Match Formula to return value from a list with criteria


During or within a school year, some learners transfer in, transfer out or drop out from school. I have used index match functions to extract those that either transferred or dropped out during the whole school term but I want to extract the learners' movements every month starting June 2018. I tried the nesting the IF function but gave up after several hours.


Attached is the data I am working on and I need the following formula to:

1. Extract the Remarks (LE, T/I, T/O, DRP) from the tDATA into column AM of SF JUNE sheet, of each enrolled learner during the month of June. It should not return Remarks "T/O" or "DRP" that happened after June 30, or the end of the reporting period (cell AC6).

2. In the SF JULY sheet, what's the formula in Column B to extract the names of learners excluding those who transferred out or dropped out in June.
Attached Files
File Type: xlsm JUNE 2018 QUERY.xlsm (113.7 KB, 8 views)
Reply With Quote
  #2  
Old 10-26-2018, 05:01 AM
NBVC's Avatar
NBVC NBVC is offline Index Match Formula to return value from a list with criteria Windows 10 Index Match Formula to return value from a list with criteria Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Do these work?


in AM16 of June sheet:


=IFERROR(INDEX(REMARKS,MATCH(1,INDEX((FULL_NAME=$B 16)*(tDATA[DATE OF TRANSFER OUT/DROP OUT]<=$AC$6),0),0)),"")


copied down


In B16 of July sheet:


=IFERROR(INDEX(FULL_NAME,MATCH(SMALL(IF((COUNTIF($ B$15:$B15,FULL_NAME)=0)*(GRADE=$AC$8)*(SECTION=$AI $8)*(DATE_ENROLLED<=AC$6)*((tDATA[DATE OF TRANSFER OUT/DROP OUT]="")+(tDATA[DATE OF TRANSFER OUT/DROP OUT]>EOMONTH(AC$6,-1)))*(SEX="M"),COUNTIF(FULL_NAME,"<"&FULL_NAME),"" ),1),COUNTIF(FULL_NAME,"<"&FULL_NAME),0)),"")


confirmed with CTRL+SHIFT+ENTER and copied down
Reply With Quote
  #3  
Old 10-26-2018, 07:22 AM
ArviLaanemets ArviLaanemets is offline Index Match Formula to return value from a list with criteria Windows 8 Index Match Formula to return value from a list with criteria Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

I modified your workbook a bit - look for attached file.

To create a workbook for specific conditions (like specific month) is not very productive. Try design the workbook in a way, which allows to work with single workbook with smallest possible number of sheets for data entry, and with single report sheet for same kind of reports. When you do this, you design a workbook once, and may use it for long time without any changes to design. As example I designed a Report sheet based on your Data sheet (I made some changes there btw.)
Attached Files
File Type: xlsm QUERY.xlsm (119.9 KB, 8 views)
Reply With Quote
  #4  
Old 10-26-2018, 08:30 AM
Marcia's Avatar
Marcia Marcia is offline Index Match Formula to return value from a list with criteria Windows 7 32bit Index Match Formula to return value from a list with criteria Office 2007
Expert
Index Match Formula to return value from a list with criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by NBVC View Post
Do these work?


in AM16 of June sheet:


=IFERROR(INDEX(REMARKS,MATCH(1,INDEX((FULL_NAME=$B 16)*(tDATA[DATE OF TRANSFER OUT/DROP OUT]<=$AC$6),0),0)),"")


copied down


In B16 of July sheet:


=IFERROR(INDEX(FULL_NAME,MATCH(SMALL(IF((COUNTIF($ B$15:$B15,FULL_NAME)=0)*(GRADE=$AC$8)*(SECTION=$AI $8)*(DATE_ENROLLED<=AC$6)*((tDATA[DATE OF TRANSFER OUT/DROP OUT]="")+(tDATA[DATE OF TRANSFER OUT/DROP OUT]>EOMONTH(AC$6,-1)))*(SEX="M"),COUNTIF(FULL_NAME,"<"&FULL_NAME),"" ),1),COUNTIF(FULL_NAME,"<"&FULL_NAME),0)),"")


confirmed with CTRL+SHIFT+ENTER and copied down
Thank you for the immediate reply on my questions. The formula in AM16 of June sheet worked like a charm but when I copied it to AM16 of July sheet, the "LE" and "T/I" Remarks in June still appear in July. Sorry, I missed emntioning this on my original query. Only the Remarks occurring during the month should be reflected in the reporting month. The starting date of the month is found in E10, the end date AC6. I added another column in tDATA named DATE_REMARKS, this range contains the date/s of the Remarks. I'm at a loss on how to integrate the start date, end date and DATE_REMARKS in the formula you gave. *(tDATA[DATE_REMARKS]>=$E$10)*(tDATA[DATE_REMARKS<=$AC$6) doesn't work.


Finally, I got the formula right. Again, thank you.

Last edited by Marcia; 10-26-2018 at 10:15 PM.
Reply With Quote
  #5  
Old 10-26-2018, 08:59 AM
Marcia's Avatar
Marcia Marcia is offline Index Match Formula to return value from a list with criteria Windows 7 32bit Index Match Formula to return value from a list with criteria Office 2007
Expert
Index Match Formula to return value from a list with criteria
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by ArviLaanemets View Post
I modified your workbook a bit - look for attached file.

To create a workbook for specific conditions (like specific month) is not very productive. Try design the workbook in a way, which allows to work with single workbook with smallest possible number of sheets for data entry, and with single report sheet for same kind of reports. When you do this, you design a workbook once, and may use it for long time without any changes to design. As example I designed a Report sheet based on your Data sheet (I made some changes there btw.)

Thank you for the reply. Yeah, I've applied your method of assigning Row Nos and using these as unique identifiers in other databases that our office handles in our little hometown. Although I have yet to work out how I will use these Row Nos into the required/official forms.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
need Index, Match, Max to return SUMPRODUCT? IRHSAM Excel 0 11-17-2017 09:48 AM
Excel Index and Match function with multiple criteria not searching the next record mushtaqkadar Excel 3 06-17-2017 12:20 AM
Index Match Formula to return value from a list with criteria Create a unique list of values that match a criteria, sorted in order of another criteria BradRichardson Excel 2 01-03-2017 12:25 AM
Index Match Formula to return value from a list with criteria How to make MATCH/INDEX formula return multiple successive responses. danigirl121 Excel 7 06-08-2016 01:57 PM
Index Match Formula to return value from a list with criteria Vlookup or Index/Match - Multiple Criteria ruci1225 Excel 1 01-15-2012 07:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:20 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