Excel 2010 Assistance needed with Index Match Returning Multiple Results

Donager

New Member
Joined
Mar 28, 2015
Messages
17
Good day and thank you for taking the time to review my request.

I am using Excel 2010 on Windows 7 and I have searched the forums extensively and attempted to make the formula work.

I have a data dump of time off requests with the following format:



On a separate tab on the spreadsheet, I am using Index/Match to search by date to return the first match. I want all names to populate that have the same scheduled date.

I created the following formula after reading and researching the formula and quite honestly, I think I got out of my league with my Excel understanding. I am moderately good and can use basic lookups and pivot tables, but I don't have the formalized understanding that others may.

This is the formula I created

=IF(COUNTIF(Sheet1!E:E,'Apr 15'!$A$1)>=ROWS($A$2:A2),INDEX(Sheet1!B:B,SMALL(IF(Sheet1!E:E='Apr 15'!A1,ROW(Sheet1!B:B)-ROW(Sheet1!E2)+1,ROWS($A$2:A2)),"")))

I turned it into an array using CTRL, SHFT, ENTR and it has the curly braces around it.

This is how it looks in Excel



I believe my issue is syntax and a lack of understanding of the various elements of the formula.

If someone could please review my request and provide me some guidance, I would greatly appreciate it.

Respectfully,

Donager
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I have replaced the images in my post with the content from the MrExcel HTML Generator.

Thank you for your time.

Good day and thank you for taking the time to review my request.

I am using Excel 2010 on Windows 7 and I have searched the forums extensively and attempted to make the formula work.

I have a data dump of time off requests with the following format:

Excel 2010
ABCDEFG
1StatusFromRequest TypeTypeScheduled DateReceived DateDOW
2DeniedBobExceptionVacation1/1/20152/25/2014 16:15Thursday
3DeniedmikeExceptionVacation1/1/20151/14/2014 11:13Thursday
4DeniedgeorgeExceptionVacation1/1/20152/18/2014 20:02Thursday
5DeniedsueExceptionVacation1/2/20152/25/2014 16:25Friday
6ApprovedbillExceptionVacation1/2/201510/24/2013 14:24Friday
7DeniedwilliamExceptionVacation1/2/201510/20/2014 15:58Friday
8ApprovedhenryExceptionVacation1/2/201511/12/2014 16:27Friday
9DeniedBobExceptionVacation1/2/201512/6/2013 14:46Friday
10DeniedmikeExceptionVacation1/2/20151/14/2014 11:13Friday
11DeniedgeorgeExceptionVacation1/2/20152/18/2014 20:02Friday
12DeniedsueExceptionPersonal1/2/201511/18/2014 7:45Friday
13ApprovedbillExceptionVacation1/2/201510/24/2013 16:22Friday
14DeniedwilliamExceptionVacation1/3/201510/20/2014 15:58Saturday
15ApprovedhenryExceptionVacation1/3/201510/24/2013 14:24Saturday
16ApprovedBobExceptionVacation1/3/201511/12/2014 16:27Saturday
17ApprovedmikeExceptionVacation1/3/20151/14/2014 11:14Saturday
18DeniedgeorgeExceptionVacation1/3/20153/29/2014 11:36Saturday
19ApprovedsueExceptionVacation1/3/20152/25/2014 16:26Saturday

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



On a separate tab on the spreadsheet, I am using Index/Match to search by date to return the first match. I want all names to populate that have the same scheduled date.

I created the following formula after reading and researching the formula and quite honestly, I think I got out of my league with my Excel understanding. I am moderately good and can use basic lookups and pivot tables, but I don't have the formalized understanding that others may.

This is the formula I created

=IF(COUNTIF(Sheet1!E:E,'Apr 15'!$A$1)>=ROWS($A$2:A2),INDEX(Sheet1!B:B,SMALL(IF(Sheet1!E:E='Apr 15'!A1,ROW(Sheet1!B:B)-ROW(Sheet1!E2)+1,ROWS($A$2:A2)),"")))

I turned it into an array using CTRL, SHFT, ENTR and it has the curly braces around it.

This is how it looks in Excel

Excel 2010
ABCDEF
11/1/20151/2/20151/3/20151/4/20151/5/20151/6/2015
2FALSE
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Jan 15



I believe my issue is syntax and a lack of understanding of the various elements of the formula.

If someone could please review my request and provide me some guidance, I would greatly appreciate it.

Respectfully,

Donager
 
Upvote 0
=IF(COUNTIF(Sheet1!E:E,'Apr 15'!$A$1)>=ROWS($A$2:A2),INDEX(Sheet1!B:B,SMALL(IF(Sheet1!E:E='Apr 15'!A1,ROW(Sheet1!B:B)-ROW(Sheet1!E2)+1,ROWS($A$2:A2)),"")))

try it like this.....

=IF(ROWS(A$2:A2)>COUNTIF(Sheet1!$E$2:$E$19,A$1),"",INDEX(Sheet1!$B$2:$B$19,SMALL(IF(Sheet1!$E$2:$E$19=A$1,ROW(Sheet1!A$2:A$19)-ROW(Sheet1!A$2)+1),ROWS(A$2:A2)))) control shift enter

you should also try to avoid the full column references also
 
Upvote 0
In B2 of Jan 15, try:

Code:
=IF(ROWS(A$2:A2)>COUNTIF(Sheet1!$E$2:$E$19,A$1),"",INDEX(Sheet1!$B$2:$B$19,SMALL(IF(Sheet1!$E$2:$E$19=A$1,ROW(Sheet1!$B$2:$B$19)-ROW(Sheet1!$B$2)+1),ROWS(A$2:A2))))

Committed with CTRL+SHIFT+ENTER, before copying down and across.

Matty
 
Upvote 0
It works!

Weazel and Matty, thank you so much. I spent a long time on this and you took a few minutes.

Weazel, I will remove the full column references. I was being lazy.

I really appreciate this. You just made life a lot easier for me :)

Have a great day.
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,050
Members
449,206
Latest member
Healthydogs

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