Table lookup

matt_ward

New Member
Joined
Jul 6, 2015
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Perhaps I have excel BLINDNESS today or something but im trying to do what i thought would be an easy lookup. I have a list that contains email aliases from the below table.


What I want to do is lookup the items in the first column of the above list and return the First entry from the table below.


Index and Match is the one I think I should be using here where the Aliases are the Range and the PrimaryEmail is the match. JUST NOT WORKING?! Any Help would be most appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Which version of Excel are you using?
 
Upvote 0
365 version 2409
Should update your profile. Try:
Book2
ABCDEF
1
2DSmith@gmail.comResult1@gmail.com
3Djones@gmail.comResult3@gmail.com
4DannyJones@gmail.comResult3@gmail.com
5JanDoe@gmail.comResult4@gmail.com
6
7PrimaryEmailAliasAlias1Alias2Alias3Alias4
8Result1@gmail.comDSmith@gmail.comdave@gmail.comDave24@gmail.com
9Result2@gmail.comSKelp@gmail.comsarah@gmail.comsarahK@gmail.comsarak@gmail.com
10Result3@gmail.comDjones@gmail.comDanny@gmail.comDannyJones@gmail.com
11Result4@gmail.comJDoe@gmail.comJane@gmail.comJaneDoe@gmail.comJanDoe@gmail.comJD@GMail.com
Sheet1
Cell Formulas
RangeFormula
B2:B5B2=TOCOL(IFS($B$8:$F$11=A2,$A$8:$A$11),2)
 
Upvote 0
@Cubist There is one problem though... i do have a large table and the calculations have brought my measly computer to its knees... Is there a more economical way of doing it??
 
Upvote 0
See if this is faster:
Book2
ABCDEF
1Array
2DSmith@gmail.comResult1@gmail.comResult1@gmail.com
3Djones@gmail.comResult3@gmail.comResult3@gmail.com
4DannyJones@gmail.comResult3@gmail.comResult3@gmail.com
5JanDoe@gmail.comResult4@gmail.comResult4@gmail.com
6
7PrimaryEmailAliasAlias1Alias2Alias3Alias4
8Result1@gmail.comDSmith@gmail.comdave@gmail.comDave24@gmail.com
9Result2@gmail.comSKelp@gmail.comsarah@gmail.comsarahK@gmail.comsarak@gmail.com
10Result3@gmail.comDjones@gmail.comDanny@gmail.comDannyJones@gmail.com
11Result4@gmail.comJDoe@gmail.comJane@gmail.comJaneDoe@gmail.comJanDoe@gmail.comJD@GMail.com
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=INDEX($A$8:$A$11,ROUNDUP(XMATCH(A2:A5,TOCOL($B$8:$F$11))/COLUMNS($B$8:$F$11),0))
B2:B5B2=INDEX($A$8:$A$11,ROUNDUP(XMATCH(A2,TOCOL($B$8:$F$11))/COLUMNS($B$8:$F$11),0))
Dynamic array formulas.
 
Last edited:
Upvote 1
Solution
Oh yes this is much better.

This one for the win...
B2:B5B2=INDEX($A$8:$A$11,ROUNDUP(XMATCH(A2,TOCOL($B$8:$F$11))/COLUMNS($B$8:$F$11),0))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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