Two way lookup for text from different sheet

MilenaKanwal

New Member
Joined
Mar 18, 2014
Messages
12
I have been go crazy trying to figure this out... I hope someone can help!

I have a data table that I need to populate from worksheets submitted from various departments. The challenge is that each department uses differing systems, so the table that I need to assimilate the data into includes all access options available in our organization, and each worksheet submitted only reflects systems and employees valid to their department.


I am able to use INDIRECT(ADDRESS9MATCH(MATCH to pull the data if it is in the same worksheet, but as soon as I adjust the formula to pull from another sheet, it fails.:oops: I have successfully used the following function in C3 to pull from the same sheet. What do I need to do to get it to pull data from another sheet???


INDIRECT(ADDRESS(MATCH(N$3,$C$4:$C$12,0)+3,MATCH($M4,$D$3:$I$3,0)+3))


FROM TABLE:
ABCDEFGH
1 Access
2 Accounting DashboadImporter DatabaseEICWefaxTPACAD
3Employee IDBP71789ViewViewViewFullView
4DS52763ContViewViewFullViewView
5WG85640 ViewFullViewView
6RD11328ContCont FullView
7LF54825FullFullFullFullFullFull
8PY82135ViewView FullView
9KE45832View FullView
10QM49328View ContFullContCont
11PP54235FullContContFullViewFull

<COLGROUP><COL style="WIDTH: 16pt; mso-width-source: userset; mso-width-alt: 768" width=21><COL style="WIDTH: 20pt; mso-width-source: userset; mso-width-alt: 950" width=26><COL style="WIDTH: 48pt; mso-width-source: userset; mso-width-alt: 2340" width=64><COL style="WIDTH: 59pt; mso-width-source: userset; mso-width-alt: 2852" width=78><COL style="WIDTH: 56pt; mso-width-source: userset; mso-width-alt: 2706" width=74><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" span=4 width=61><TBODY>
</TBODY>



TO TABLE:

ABCDEFG
1 Employee ID
2 BP71789KE45832LI45219LZ12113NO73111
3AccessAccounting DashboadViewView
4CAD
5EICView
6Importer DatabaseView
7SYS 5
8TEMKY
9TPAViewView
10WefaxFullFull
11WFST Sharepoint

<COLGROUP><COL style="TEXT-ALIGN: center; WIDTH: 16pt; mso-width-source: userset; mso-width-alt: 768" width=21><COL style="TEXT-ALIGN: center; WIDTH: 20pt; mso-width-source: userset; mso-width-alt: 950" width=26><COL style="TEXT-ALIGN: center; WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3657" width=100><COL style="TEXT-ALIGN: center; WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" span=5 width=61><TBODY>
</TBODY>
 

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.
I would open this sheet first, then open the other sheet within the same instance of Excel. (That is if we are talking about another file, otherwise, if it's the same file, different tab, then you have it open already)
Then highlight $C$4:$C$12 in your formula and go to the other page and select the range with your mouse.. and press enter. This will replace $C$4:$C$12 with the range from the other worksheet. If it's from a different sheet (tab), then the address will be something like:
INDIRECT(ADDRESS(MATCH(N$3,Sheet1!$C$4:$C$12...

if it's another file then the address will be
INDIRECT(ADDRESS(MATCH(N$3,'Another file.xlsx'!$C$4:$C$12
 
Upvote 0
Thanks LxQ. I actually did that, but I get an N/A response each time. I may have figured it out though... It looks like I had the MATCH functions transposed. It should be row, THEN column... I had it defining column, then row
 
Upvote 0
BUGGER! Still doesn't work!

=INDIRECT(ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0)))

When I F9 the ADDRESS(MATCH I get: =INDIRECT("$I$17")

The defined cell ($I$17) is correct... but it's not referencing the other sheet. :confused:



Thanks LxQ. I actually did that, but I get an N/A response each time. I may have figured it out though... It looks like I had the MATCH functions transposed. It should be row, THEN column... I had it defining column, then row
 
Upvote 0
I think you have to add the sheet name before the ADDRESS:

=INDIRECT("FSO&CFOS!"&ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0)))
 
Upvote 0
=INDIRECT("FSO&CFOS!"&ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0))) gives me a #REF error
=INDIRECT("FSO&CFOS!", ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0))) gives me a #VALUE error

This thing is going to make me nutty


I think you have to add the sheet name before the ADDRESS:

=INDIRECT("FSO&CFOS!"&ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0)))
 
Upvote 0
I think you have to add the sheet name before the ADDRESS:

=INDIRECT("FSO&CFOS!"&ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0)))

Corr:
=INDIRECT("'FSO&CFOS'!"&ADDRESS(MATCH(FH21,'FSO&CFOS'!E1:E19,0),MATCH(FH20,'FSO&CFOS'!1:1,0)))
 
Upvote 0

Forum statistics

Threads
1,215,603
Messages
6,125,776
Members
449,259
Latest member
rehanahmadawan

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