+ Reply to Thread
Results 1 to 5 of 5

Creating an Array from range, no duplicates, filtered by location

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    11

    Creating an Array from range, no duplicates, filtered by location

    I feel like what I'm after should be easily accomplished but I can't seem to wrap my head around this. I've messed around with arrays very rarely.

    http://i.imgur.com/Leu1xTe.jpg

    So from here we have Job No., Location, DF Name

    This is a sample of the data this comes up to about 300-400 Jobs so far. Locations are fixed data from about 24 different locations. DF Name are values that can have duplicate information.

    I would like to filter by location and take out the duplicate DF Names from each location and create a small list.

    So Ideally the selection in the end would look like this for the "Brown" Location. For the sake of simplicity lets say I want the data below on column D for Location and column E for the DF Name results.

    Location DF Name

    Brown 01DF1
    Brown 01DF2
    Brown 01DF4



    Thanks!

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating an Array from range, no duplicates, filtered by location

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    06-21-2014
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Creating an Array from range, no duplicates, filtered by location

    Here is a little bit more data to get the idea in the sample book provided in attachments.

    There is a 'Before Sheet' showcasing the raw data.
    A 'VBA Filter Process' Sheet to just explain the idea im going for.
    and a 'After Results' sheet for the desired results.
    Attached Files Attached Files

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Creating an Array from range, no duplicates, filtered by location

    Okay, Alt + F8 to bring up the macro list. When you run the macro you will be asked to type a location into an input box. We can do this other ways, it doesn't have to be an input box.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by skywriter; 10-06-2015 at 01:46 PM.

  5. #5
    Registered User
    Join Date
    06-21-2014
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Creating an Array from range, no duplicates, filtered by location

    At the moment I made it work for what I was looking for. However It would probably be best I looped through the entire list of possible locations to give me a list. I just created an extra excel sheet with a table of each location and another table to place all the DFI data in. From there I ran my report macros and got the lists to populate the way I wanted. Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Creating Array From Range
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-24-2015, 08:47 AM
  2. Creating filtered array within formula before then calculating percentil
    By bpomeroy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-05-2014, 09:52 AM
  3. Help! - Range = Array when ranges is filtered is not working
    By gsmcconville in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-01-2014, 11:42 PM
  4. [SOLVED] Creating a list without duplicates or array formula
    By darq in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-11-2014, 04:46 AM
  5. [SOLVED] Add Auto Filtered Non Contigous range to Array
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2012, 04:27 AM
  6. [SOLVED] creating an array from range help
    By Gary Keramidas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2006, 09:55 PM
  7. No duplicates from range to an array
    By Sunil Patel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2005, 02:05 PM

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