View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
robotman robotman is offline
external usenet poster
 
Posts: 51
Default quick double-criteria lookup?

[This may be a duplicate post... I tried continuing the original
thread, but it's not showing up so I'm reposting for more help!]
____

I have a table with 3 columns (employee's last name, first name, and
ID). Last names can be duplicated

Smith John td232
Smith Mary xk543
Smith Steve aa213

Can someone suggest a formula that I can look up based on the last
name and first name to return the ID?

(I know I can create a new column that would merge the last name and
firstname to create a "lookup" key, but I'm trying to see if there's a
way to do the lookup with out using this technique.)

John McGimpsey suggested an array-entered formula that does work:

=INDEX(C1:C200,MATCH(J1&K1,A1:A200&B1:B200,FALSE))

Although this does work, it is very slow because the spreadsheet
recalculates constantly which takes a few seconds each time...
yielding the worksheet pretty unusable with the constant pausing. My
lookup table is about 20000 lines.

Are they any other suggestions for doing a formula-based double-
criteria lookup that would use less processor time?

Thanks!

John