Index Match based on exact value through duplicates

Mavri

New Member
Joined
Nov 30, 2022
Messages
30
Office Version
  1. 2016
Platform
  1. Windows
Hello,friends!
I need to extract region from Table 1 to Table 2 only by criteriums (PROJECT) in Table 3 . I tried INDEX/MATCH by name, but it returns me the first value which it finds.
Thanks in advance!

REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
COLACHCHEY LALWIN ACHCHEY LALTENCOLTEN
COLACHHE LAL PRAJAPATIWIN ACHHE LAL PRAJAPATIELEAUTELE
AUTAKHILESH KUMARWIN
AUTDIMPLE MASIHWINTable 2Table 3
COLMALKIT SINGH WIN
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 1
 

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
Hello,friends!
I need to extract region from Table 1 to Table 2 only by criteriums (PROJECT) in Table 3 . I tried INDEX/MATCH by name, but it returns me the first value which it finds.
Thanks in advance!

REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
COLACHCHEY LALWINACHCHEY LALTENCOLTEN
COLACHHE LAL PRAJAPATIWINACHHE LAL PRAJAPATIELEAUTELE
AUTAKHILESH KUMARWIN
AUTDIMPLE MASIHWINTable 2Table 3
COLMALKIT SINGHWIN
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 1
could you please show your expected output?
 
Upvote 0
could you please show your expected output?
Sorry,I didn't put exact Table 1.
REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
GREACHCHEY LALWIN ACHCHEY LALTENCOLTEN
GREACHHE LAL PRAJAPATIWIN ACHHE LAL PRAJAPATIELEAUTELE
AUTAKHILESH KUMARWIN
AUTDIMPLE MASIHWINTable 2Table 3
COLMALKIT SINGH WIN
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 1

the output in Table 2 should be
REGIONNAMEPROJECT
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 2
 
Upvote 0
Maybe
it's a little clearer this way
REGIONNAMEPROJECT
GREACHCHEY LALWIN
GREACHHE LAL PRAJAPATIWIN
AUTAKHILESH KUMARWIN
AUTDIMPLE MASIHWIN
COLMALKIT SINGH WIN
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 1
REGIONNAMEPROJECT
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 2
REGIONPROJECT
COLTEN
AUTELE
Table 3
 
Upvote 0
Maybe
it's a little clearer this way
REGIONNAMEPROJECT
GREACHCHEY LALWIN
GREACHHE LAL PRAJAPATIWIN
AUTAKHILESH KUMARWIN
AUTDIMPLE MASIHWIN
COLMALKIT SINGHWIN
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 1
REGIONNAMEPROJECT
COLACHCHEY LALTEN
AUTACHHE LAL PRAJAPATIELE
Table 2
REGIONPROJECT
COLTEN
AUTELE
Table 3
its a bit confusing.. at first you want to extract the REGION but your table 2 is consist of REGION NAME and PROJECT?
 
Upvote 0
its a bit confusing.. at first you want to extract the REGION but your table 2 is consist of REGION NAME and PROJECT?
In Table 1 there are Region,Name and Project and there are plenty of duplicate names with different Regions and Projects.In Table 2 I'd like to extract Region based on name but only by criteriums in Table 3( I want Region "COL" if Project is "TEN" and I'd like Region "AUT" if Project is "ELE").But when I try with index/match function,it returns me the first value for ACHCHEY LAL- in this case - REGION "GRE" because it comes first in Table 1.How can I count Region for ACHCHEY LAL only if his project in Table 1 is "TEN".
I hope I explained little bit better :)
 
Upvote 0
In Table 1 there are Region,Name and Project and there are plenty of duplicate names with different Regions and Projects.In Table 2 I'd like to extract Region based on name but only by criteriums in Table 3( I want Region "COL" if Project is "TEN" and I'd like Region "AUT" if Project is "ELE").But when I try with index/match function,it returns me the first value for ACHCHEY LAL- in this case - REGION "GRE" because it comes first in Table 1.How can I count Region for ACHCHEY LAL only if his project in Table 1 is "TEN".
I hope I explained little bit better :)
like this?

Book1
ABCDEFGHIJKLMNO
1REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
2GREACHCHEY LALWINCOLACHCHEY LALTENCOLTEN
3GREACHHE LAL PRAJAPATIWINAUTACHHE LAL PRAJAPATIELEAUTELE
4AUTAKHILESH KUMARWIN
5AUTDIMPLE MASIHWIN
6COLMALKIT SINGHWIN
7COLACHCHEY LALTEN
8AUTACHHE LAL PRAJAPATIELE
9
Sheet1
Cell Formulas
RangeFormula
F2:F3F2=INDEX($A$2:$A$8,MATCH(1,(G2=$B$2:$B$8)*(M2=$C$2:$C$8),0))
 
Upvote 0
like this?

Book1
ABCDEFGHIJKLMNO
1REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
2GREACHCHEY LALWINCOLACHCHEY LALTENCOLTEN
3GREACHHE LAL PRAJAPATIWINAUTACHHE LAL PRAJAPATIELEAUTELE
4AUTAKHILESH KUMARWIN
5AUTDIMPLE MASIHWIN
6COLMALKIT SINGHWIN
7COLACHCHEY LALTEN
8AUTACHHE LAL PRAJAPATIELE
9
Sheet1
Cell Formulas
RangeFormula
F2:F3F2=INDEX($A
like this?
Book1
ABCDEFGHIJKLMNO
1REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
2GREACHCHEY LALWINCOLACHCHEY LALTENCOLTEN
3GREACHHE LAL PRAJAPATIWINAUTACHHE LAL PRAJAPATIELEAUTELE
4AUTAKHILESH KUMARWIN
5AUTDIMPLE MASIHWIN
6COLMALKIT SINGHWIN
7COLACHCHEY LALTEN
8AUTACHHE LAL PRAJAPATIELE
9
Sheet1
Cell Formulas
RangeFormula
F2:F3F2=INDEX($A$2:$A$8,MATCH(1,(G2=$B$2:$B$8)*(M2=$C$2:$C$8),0))
Like that, but what if I have more different projects like in the table down,and I need returned value only in that cases,and if there is no that project in that region it should return me error
REGIONPROJECT
COLTEN
AUTELE
COLTWO
AUTTWE
AUTONE
COLTHR
$2:$A$8,MATCH(1,(G2=$B$2:$B$8)*(M2=$C$2:$C$8),0))
 
Upvote 0
if that is the case.. maybe you don't need the table 1

Book1
ABCDEFGHIJKLM
1REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
2GREACHCHEY LALWINCOLACHCHEY LALTENCOLTEN
3GREACHHE LAL PRAJAPATIWINAUTACHHE LAL PRAJAPATIELEAUTELE
4AUTAKHILESH KUMARWINCOLTWO
5AUTDIMPLE MASIHWINAUTTWE
6COLMALKIT SINGHWINAUTONE
7COLACHCHEY LALTENCOLTHR
8AUTACHHE LAL PRAJAPATIELE
9
Sheet1
Cell Formulas
RangeFormula
F2:F3F2=INDEX($L$2:$L$8,MATCH(H2,$M$2:$M$8,0))
 
Upvote 0
if that is the case.. maybe you don't need the table 1

Book1
ABCDEFGHIJKLM
1REGIONNAMEPROJECTREGIONNAMEPROJECTREGIONPROJECT
2GREACHCHEY LALWINCOLACHCHEY LALTENCOLTEN
3GREACHHE LAL PRAJAPATIWINAUTACHHE LAL PRAJAPATIELEAUTELE
4AUTAKHILESH KUMARWINCOLTWO
5AUTDIMPLE MASIHWINAUTTWE
6COLMALKIT SINGHWINAUTONE
7COLACHCHEY LALTENCOLTHR
8AUTACHHE LAL PRAJAPATIELE
9
Sheet1
Cell Formulas
RangeFormula
F2:F3F2=INDEX($L$2:$L$8,MATCH(H2,$M$2:$M$8,0))
I would like that I dont need it,but I have it :) In Table 1 there are a plenty of data(Names,passport numbers,regions and projects),and in the Table 2 is small part which is in some cases duplicated in Table 1..The only difference is that in Table 1 the regions and projects are different for the same people.Only duplicated are names or passport numbers.And I woud like to get the aproppriate region from table 1,by name(or passport number) only by project in Table 3,and when it when it comes to a certain man and the asked project is not what I need,it should skip it.If thats the only time when man is in Table 1 it shoud return error(just like it didnt found him) .But in table 3 one region have 3 or more projects.
I hope it makes sense now :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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