Ok here is my problem in general. I have an excel Sheet with a List of sales people (12) and a list of around 1500 potential clients, we have assigned clients to salespeople, and I would now like to create a separate table for each salesperson with a list of each client pulled from the master list. I have tried using the =vlookup ut it will only return the first occurrence of the salespersons name and ignore everything thereafter.
I found what I thought to be a solution with this:
=INDEX('Sales'!$G$6:$G$13, SMALL(IF(A1='Sales'!$D$6:$D$13, ROW('Sales'!$D$6:$D$13)-MIN(ROW('Sales'!$D$6:$D$13))+1, ""), ROW(A1)))
This returns the value from the second column from the master file each time it finds "Tom" (Cell A1=Tom) however the limitation of this is that I can not get it to return more than 7 occurrences, it seems to blow the list up when I increase the cell range beyond that.
I finally got frusterated trying to make that work , so I developed a sheet where all of the salespeople are listed in the A column, Clients in the B column all starting at Row 2, and in C1 the salespersons name and in C2 writing this statement =If(A2=C1,B2)
I have followed this format across (more salespeople) and down using $ to lock where needed and that part works fine, but now I want to return a list without all of the "#N/A", "False" and blanks left behind in the column.
In other words I want to create a complete list from a column (about 30 names) where the column has numerous blanks, "#N/A", and "False" statements in it.
I hope that all makes sense and someone can help. If it comes to it I can work up a "dummy" sheet of what I am trying to do and link it. But I am hoping this is a simpler problem than I am making it and someone understands it better than I.
Thanks in advance for the help!
Bookmarks