How to match any column in table range and return with value in right side of the column?

sampayor

New Member
Joined
Jun 7, 2022
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
i have 1 large table range with various data.my intention is to match any column in table range and return with value in right side of the column? most common formula is to use vlookup or match,index but it specific with column or row only..i attach part of table range pic...hope anyone can help me.tqsm
 

Attachments

  • pic.png
    pic.png
    58.2 KB · Views: 12
Or, non volatile option (non INDIRECT, ADRRESS)
Book1
ABC
1
2
3OPTION 1OPTION 2
4E32Penolong Pegawai Perangkaan2Penolong Pegawai Perangkaan2
5KP19PEGAWAI IMIGRESEN (PI)PEGAWAI IMIGRESEN (PI)
6PEGAWAI IMIGRESEN TINGGI (PIT)E36E36
7PENGARAH BAHAGIAN 20 
TEST
Cell Formulas
RangeFormula
B4:B7B4=INDEX(info!$A$1:$F$14,AGGREGATE(14,6,ROW(info!$B$2:$F$14)/(info!$A$2:$E$14=A4),1),AGGREGATE(14,6,COLUMN(info!$B$2:$F$14)/(info!$A$2:$E$14=A4),1))
C4:C7C4=IF(INDEX(info!$A$1:$F$14,AGGREGATE(14,6,ROW(info!$B$2:$F$14)/(info!$A$2:$E$14=A4),1),AGGREGATE(14,6,COLUMN(info!$B$2:$F$14)/(info!$A$2:$E$14=A4),1))="","",INDEX(info!$A$1:$F$14,AGGREGATE(14,6,ROW(info!$B$2:$F$14)/(info!$A$2:$E$14=A4),1),AGGREGATE(14,6,COLUMN(info!$B$2:$F$14)/(info!$A$2:$E$14=A4),1)))
tq bebo021999 for your solution..i already try and it successful....but 1 problem is the table in sheet 'info' is in table range and act as reference table, means that the row and column will be expand from time to time...
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I would go for a more robust solution that does not return incorrect results if any rows happen to subsequently be inserted above the table on the 'info' sheet.
Also, since that data appears to be in a formal table, I would utilise the table nomenclature so that formula ranges do not need to be adjusted if the table changes size.

I have assumed the table on 'info' is called table1. Adjust the formula if it has a different name.

sampayor.xlsm
ABCDEF
1ImigresenImigresen2EkonomiEkonomi2Sistem MaklumatSistem Maklumat2
2KP19PEGAWAI IMIGRESEN (PI)E29Penolong Pegawai Perangkaan1FT19Juruteknik Komputer1
3KP22PEGAWAI IMIGRESEN KANAN (PIK)E32Penolong Pegawai Perangkaan2FT22Juruteknik Komputer2
4KP26PEGAWAI IMIGRESEN TINGGI (PIT)E36Penolong Pegawai Perangkaan3FA29Penolong Pegawai Teknologi Maklumat1
5KP28KETUA PEGAWAI IMIGRESEN TINGGI (K/PIT)FA32Penolong Pegawai Teknologi Maklumat2
6KP29TIMBALAN PENOLONG PENGARAH IMIGRESEN (TPPI)FA38Penolong Pegawai Teknologi Maklumat3
7KP32TIMBALAN PENOLONG PENGARAH IMIGRESEN KANAN (TPPK)F41Pegawai Teknologi Maklumat1
8KP38KETUA TIMBALAN PENOLONG PENGARAH IMIGRESEN (KTPP)F44Pegawai Teknologi Maklumat2
9KP41PENOLONG PENGARAH IMIGRESEN 1F48Pegawai Teknologi Maklumat3
10KP42PENOLONG PENGARAH IMIGRESEN 2F52Timbalan Pengarah Teknologi Maklumat
11KP44PENOLONG PENGARAH IMIGRESEN KANANF54Pengarah Teknologi Maklumat
12KP48KETUA PENOLONG PENGARAH IMIGRESEN
13KP52PENGARAH BAHAGIAN 1
14KP54PENGARAH BAHAGIAN 2
info


sampayor.xlsm
AB
3GredJawatan
4Penolong Pegawai Perangkaan1FT19
5E32Penolong Pegawai Perangkaan2
6KP44PENOLONG PENGARAH IMIGRESEN KANAN
7ABCD 
8FA29Penolong Pegawai Teknologi Maklumat1
9Pengarah Bahagian 2 
test
Cell Formulas
RangeFormula
B4:B9B4=IFERROR(INDEX(Table1,AGGREGATE(15,6,(ROW(Table1)-ROW(Table1[#Headers]))/(Table1=A4),1),AGGREGATE(15,6,(COLUMN(Table1)-COLUMN(INDEX(Table1[#Headers],1))+1)/(Table1=A4),1)+1)&"","")

Tq so much Peter_SSs. definitely..solved my case...tqsm again..​

 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,305
Members
449,218
Latest member
Excel Master

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