+ Reply to Thread
Results 1 to 9 of 9

Array by State

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Array by State

    Please see attachment...

    I have a list of employees and the states they are assigned...the way the assigned states are listed is just like the example...one state per row (it will go down for all 50 states and contain additional employees, I just truncated the example here for simplicity)

    Then I have a list of the states and the customers that have locations in those states. I need to show a list of all customers assigned to employee's states, and the number of locations in just those states. Any suggestions?

    I appreciate the assistance...
    Attached Files Attached Files
    Last edited by Figboot; 05-02-2011 at 08:44 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Array by State

    Hi Figboot,

    If you arrange your data a little differently, you can do a very easy and quick pivot table. See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Array by State

    Thanks. I know pivot tables are made for this kind of thing, but I was looking to be able to display an employee followed by only the customers they cover as opposed to a table of all customers. Thought a type of array might do the trick. Looks like I might have to revert back to a pivot.

  4. #4
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Array by State

    ...the more I look at this, I'm not sure a pivot will work. Mainly because each state has more than one customer, so in your example .xlsx in A21:D31, how would I display that AK has both Macy and Costco?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Array by State

    Hi,
    See the attached with a second pivot.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Array by State

    With a helper section to find matches... final output is as you desired..... see attached... note: There are some array formulas that need to be confirmed with CTRL+SHIFT+ENTER not just ENTER... those are the formulas with { } brackets around them.
    Attached Files Attached Files
    Last edited by NBVC; 05-02-2011 at 08:40 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Array by State

    NBVC...I appreciate the help. Did you have the correct file attached? I couldn't find any arrays on yours.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Array by State

    Sorry... I replaced the attachment above.... check again please.

  9. #9
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Array by State

    Perfect...exactly what I was looking for. Thanks for the assistance!

+ 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