Help with Index/Match formula.

jmazorra

Well-known Member
Joined
Mar 19, 2011
Messages
715
Hello:

I am using the following formula on my report:

Code:
=INDEX('Open Leave Report'!$P:$P,MATCH(D2,'Open Leave Report'!$C:$C,0))

Works well, unless I have the reference sheet has multiple rows with the same look up value ie:

Code:
Column C                                                   Column P
[TABLE="width: 361"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]
DVX46J6K[/TD]
[TD][/TD]
[TD="align: right"]6/1/2018[/TD]
[/TR]
[TR]
[TD]DVX46J6K[/TD]
[TD]Y[/TD]
[TD="align: right"]6/29/2018[/TD]
[/TR]
[TR]
[TD]DVX46J6K[/TD]
[TD]Y[/TD]
[TD="align: right"]8/24/2018[/TD]
[/TR]
</tbody>[/TABLE]

So when I look up the data on the return sheet it looks like this

Code:
[TABLE="width: 361"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]DVX46J6K[/TD]
[TD][/TD]
[TD="align: right"]6/1/2018[/TD]
[/TR]
[TR]
[TD]DVX46J6K[/TD]
[TD][/TD]
[TD="align: right"]6/1/2018[/TD]
[/TR]
[TR]
[TD]DVX46J6K[/TD]
[TD][/TD]
[TD="align: right"]6/1/2018[/TD]
[/TR]
</tbody>[/TABLE]

How can I modify my Index/Match formula to return the values exactly as my reference table?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You'll need an array formula and SMALL ...


Book1
DEFG
2DVX46J6K6/1/2018
3DVX46J6K6/29/2018
4DVX46J6K8/24/2018
Sheet1
Cell Formulas
RangeFormula
G2{=INDEX('Open Leave Report'!$P:$P,SMALL(IF('Open Leave Report'!$C:$C=D2,ROW('Open Leave Report'!$C:$C)),COUNTIF(D$2:D2,D2)))}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

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