+ Reply to Thread
Results 1 to 4 of 4

Distribution list

  1. #1
    Registered User
    Join Date
    11-19-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Distribution list

    I have a listing of some 10,000 customer enquiries (this list changes every week), I need to distribute these to my 7 employees based on the first letter of the customer name.

    I have taken the list every week, sorted it in alpha order, then copied the clerks name assigned to the first letter. (a long an boring task)

    I have used the "Left" function to break out the first letter, but now want to make a macro to automaticly enter in the right staff members name based on the first letter of the last name.

    A = Sally; B = Jane; C - Sally; E = Jill; F = Jane; etc, etc.

    I know that this can be easily done in a VBA macro, but I am too close to the problem to see the obvious solution. If anyone has a VBA macro they have used for this type of situation, I would love to see it.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Distribution list

    Welcome to the forum.

    A simple two-column lookup table; letters in the left column, names in the right, retrieved using VLOOKUP.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-19-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Distribution list

    Sigh.. it is always the easiest answers that make it work. Now to imbed this into the VBA macro.

    Thank you very much for looking at this and making the obvious suggestion!

    Much appreciated

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Distribution list

    And if you are really only using the first letter, you can just use =index(namelist, code(letter) - 64)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1