Vlookup formula with a twist

G

Guest

Sheet A ('Customers Alignment'):
--------------------------------------
column A- name of sales representative
column B - customer ID
(Not sorted in any particular order. So, a sales rep could be listed in row
5, 27, etc)

Sheet B ('Sales Rep Lists'):
 
V

vezerid

Bill,
use the following array formula (Shift+Ctrl+Enter) in A2 of Sheet B:

=IF(ISERROR(SMALL(IF('Sheet
A'!$A$2:$A$100=$A$1,ROW($A$2:$A$100)),ROW()-ROW($A$2)+1)),"",INDEX('Sheet
A'!$B$2:$B$100,SMALL(IF('Sheet
A'!$A$2:$A$100=$A$1,ROW($A$2:$A$100)),ROW()-ROW($A$2)+1)))

HTH
Kostis Vezerides
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top