Copy value from any position in INDEX MATCH function

musungujim

New Member
Joined
Oct 12, 2017
Messages
2
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID number[/TD]
[TD]Form Submitted[/TD]
[TD]Received[/TD]
[/TR]
[TR]
[TD]ID 001[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]ID 002[/TD]
[TD][/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]ID 003
[/TD]
[TD][/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]ID 001[/TD]
[TD][/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]ID 003[/TD]
[TD]Yes[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]

I've been using VLOOKUP and INDEX MATCH to relate ID number to form submission. If I enter "Yes" in the first instance of an ID number, there is no problem and "Yes" copies to all subsequent times the ID number shows up (see ID 001). The problem I've been having is that if I enter "Yes" on the second instance of the ID number or later, it does not change the corresponding or previous "No" to "Yes" (see ID 003).

I've tried using several different methods to no success. My latest idea was to use SMALL to create a subset based on MATCH values and use OFFSET to skip the first value if blank. It still doesn't do what it's supposed to and is basically an over complicated INDEX MATCH function.

=IF(INDEX(C:K,SMALL(MATCH(C2,C:C,0),1),9)="Yes","Yes",IF(INDEX(C:K,SMALL(OFFSET(C2,MATCH(C2,C:C,0),0,2500,1),1),9)="Yes","Yes","No"))

Is there any way to get this to work properly?

Thanks.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,

Try this

Crtl+Shift+Enter NOT just Enter

C2 and drag down =IFERROR(INDEX($B$2:$B$6,MATCH(1,IF($A$2:$A$6=A2,IF($B$2:$B$6="Yes",)))),"No")

A B C
[TABLE="width: 254"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: left"]ID number[/TD]
[TD="align: left"]Form Submitted[/TD]
[TD="align: left"]Received[/TD]
[/TR]
[TR]
[TD="align: left"]ID 001[/TD]
[TD="align: left"]Yes[/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]ID 002[/TD]
[TD][/TD]
[TD="align: left"]No[/TD]
[/TR]
[TR]
[TD="align: left"]ID 003[/TD]
[TD][/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]ID 001[/TD]
[TD][/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]ID 003[/TD]
[TD="align: left"]Yes[/TD]
[TD="align: left"]Yes[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,971
Members
452,540
Latest member
haasro02

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