Latest result before a certain date

mikewray

New Member
Joined
Apr 23, 2004
Messages
36
Hi everyone, I'm battling with this one...would like an Index Match formula to find the last test result before a certain date for a certain userid e.g. at Oct 31 mchansa04 result of her last test was 60% written on 18th Sept. For techima05 its 68%. Thanks in advance!


Excel 2010
ABCDEFG
1useridmchansa04
2Date point31/10/15
3Last score* formula*e.g. mchansa04 should return 60%
4
5Data Table
6DateFirst NameSurnameUser IDCentrePointsPercent
707/11/15MaureenChansamchansa04KAS3863%
818/09/15MoureenChansamchansa04KAS3660%
923/07/15MoureenChansamchansa04KAS1932%
1007/10/15TioneChimatchima05KAS4168%
1118/09/15TioneChimatchima05KAS3355%
1223/07/15TioneChimatchima05KAS2745%
baseline tests


I found a thread that did something similar but could not make it work for me. http://www.mrexcel.com/forum/excel-questions/528025-last-date-before-certain-date.html
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try:
Change ranges to match your data.
This is an array formula and must be entered with CTRL-SHIFT-ENTER (command-return on MAC).
Excel Workbook
ABCDEFG
1useridmchansa04
2Date point10/31/2015
3Last score60%
4
5Data Table
6DateFirst NameSurnameUser IDCentrePointsPercent
711/7/2015MaureenChansamchansa04KAS3863%
89/18/2015MoureenChansamchansa04KAS3660%
97/23/2015MoureenChansamchansa04KAS1932%
1010/7/2015TioneChimatchima05KAS4168%
119/18/2015TioneChimatchima05KAS3355%
127/23/2015TioneChimatchima05KAS2745%
13
Sheet
 
Upvote 0
Nailed, it thank you so much! Can I be cheeky and ask for two other related formulas that return:

The last (latest) test score and test date for a userid e.g. mchansa04 would be 63% on 11/7/15
The first (initial) test score they got and the test date for a userid e.g. tchima05 would be 45% on 7/23/15

If the data has to be ordered in ascending date order that can be done, preferably if free of this constraint. Thanks again!
 
Upvote 0
Try:
These are array formulas and must be entered with CTRL-SHIFT-ENTER (command-return on MAC).
Excel Workbook
ABCDEFG
1useridmchansa04
2Date point10/31/2015Latest DateLatest ScoreInitial DateInitial Score
3Last score60%11/7/201563%7/23/201532%
4
5Data Table
6DateFirst NameSurnameUser IDCentrePointsPercent
711/7/2015MaureenChansamchansa04KAS3863%
89/18/2015MoureenChansamchansa04KAS3660%
97/23/2015MoureenChansamchansa04KAS1932%
1010/7/2015TioneChimatchima05KAS4168%
119/18/2015TioneChimatchima05KAS3355%
127/23/2015TioneChimatchima05KAS2745%
Sheet
 
Upvote 0
Well if no-one has told you that you awesome today yet, let me be the first. Thank you so much!!!
 
Upvote 0
You're welcome. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,038
Messages
6,128,443
Members
449,453
Latest member
jayeshw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top