Index with match specific ranges

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Hi,

I am trying to index match the specify type result. Column B4:B18 and C4:C18 contain code and text. Column C had a multiple types are

CRI,VRI and RRM.

I am looking for specific type (CRI) only.Column E4 match type and F4 code, If matched formula return the text, if not matched formula return

NA.

https://www.dropbox.com/s/4vak7dkkoa2oi09/INDEX.PNG?dl=0

Please help me.

[TABLE="width: 426"]
<tbody>[TR]
[TD="colspan: 2"]DATA[/TD]
[TD][/TD]
[TD="colspan: 3"]DESIRED RESULT[/TD]
[/TR]
[TR]
[TD]CODE[/TD]
[TD]TEXT[/TD]
[TD][/TD]
[TD]TYPE[/TD]
[TD]CODE[/TD]
[TD]TEXT[/TD]
[/TR]
[TR]
[TD]222[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD]CRI[/TD]
[TD]2846-RRT[/TD]
[TD]CRI[/TD]
[/TR]
[TR]
[TD]111-AVT[/TD]
[TD]RRM[/TD]
[TD][/TD]
[TD][/TD]
[TD]4856-RRT[/TD]
[TD]CRI[/TD]
[/TR]
[TR]
[TD]111-AVT[/TD]
[TD]VRI[/TD]
[TD][/TD]
[TD][/TD]
[TD]4546-RRT[/TD]
[TD]CRI[/TD]
[/TR]
[TR]
[TD]1178-FT[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD][/TD]
[TD]111-AVT[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]1178-FT[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD][/TD]
[TD]4859-FFY[/TD]
[TD]NA[/TD]
[/TR]
[TR]
[TD]2846-RRT[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD][/TD]
[TD]7879-RRT[/TD]
[TD]CRI[/TD]
[/TR]
[TR]
[TD]2846-RRT[/TD]
[TD]VRI[/TD]
[TD][/TD]
[TD][/TD]
[TD]1178-FT[/TD]
[TD]CRI[/TD]
[/TR]
[TR]
[TD]4546-RRT[/TD]
[TD]RRM[/TD]
[TD][/TD]
[TD][/TD]
[TD]222[/TD]
[TD]CRI[/TD]
[/TR]
[TR]
[TD]4546-RRT[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4856-RRT[/TD]
[TD]VRI[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4856-RRT[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4859-FFY[/TD]
[TD]VRI[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4859-FFY[/TD]
[TD]RRM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7879-RRT[/TD]
[TD]CRI[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7879-RRT[/TD]
[TD]RRM[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi

You can use filter as suggested by MikeRickson.

Another way to do it is to use a formula.

Enter the following array formula in G4 by pressing Shift + Control + Enter and copy it down.

=IFERROR(INDEX($C$3:$C$18,MATCH(INDEX(IF($E$4=$C$3:$C$18,$B$3:$B$18,""),MATCH(F4,IF($E$4=$C$3:$C$18,$B$3:$B$18,""),0)),$B$3:$B$18,0)),"NA")

Kind regards

Saba
 
Upvote 0
Maybe:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDEFG
3CODETEXTTYPECODETEXT
4222CRICRI2846-RRTCRI
5111-AVTRRM4856-RRTCRI
6111-AVTVRI4546-RRTCRI
71178-FTCRI111-AVTNA
81178-FTCRI4859-FFYNA
92846-RRTCRI7879-RRTCRI
102846-RRTVRI1178-FTCRI
114546-RRTRRM222CRI
124546-RRTCRI
134856-RRTVRI
144856-RRTCRI
154859-FFYVRI
164859-FFYRRM
177879-RRTCRI
187879-RRTRRM
Sheet
 
Upvote 0
Thank for your help and sorry for the late reply. I got error the following codes 4856-RRT and 4546-RRT the formula return is VRI & RRM but actual result is CRI.

please check and help me.
 
Upvote 0

Forum statistics

Threads
1,225,487
Messages
6,185,274
Members
453,285
Latest member
Wullay

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