+ Reply to Thread
Results 1 to 4 of 4

VBA Function to filter data from an array

  1. #1
    Registered User
    Join Date
    12-28-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2013
    Posts
    3

    VBA Function to filter data from an array

    Hi everyone,
    I'm working in a function to filter data from an array and then show a list of the non-repeated data, but i can't find the error in my code, if anyone could help me i really appreciate it!

    This is the code:
    Please Login or Register  to view this content.
    After this in the worksheet , drag down the formula, and selecting the resuled array press {F2} and then {ctrl} + {shift} + {enter}.
    I attached the workbook, any advice is welcome...
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: VBA Function to filter data from an array

    I'm not so sure about the code, but here's a non-VB method for list into non-duplicates:

    =INDEX($A$5:$A$233, MATCH(0, COUNTIF($H$4:H4, $A$5:$A$233), 0))

    as an array

    --

    Perhaps if you used the functionality of this method in your own code?
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    12-28-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: VBA Function to filter data from an array

    I think I wasn't clear at all, in the attached file the column "H" is the result of the proposed function (so i can't put this range in your method, besides if i could do it the "resulted list" is wrong), the column "J" is the expected result, in this case i did it manually; and the range "K5:L75" came from another UDF (i called SUM_EQUAL).
    I try with your method but that is not what i'm looking for, btw many many thanks for your time and interest...

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: VBA Function to filter data from an array

    No problem. Maybe someone else will stumble on by?

    This is all I gots.
    Attached Files Attached Files

+ 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] Filter data using Array Function
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-23-2014, 08:45 AM
  2. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  3. [SOLVED] Filter Data with Array
    By jkj115 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-19-2013, 04:22 PM
  4. Replies: 6
    Last Post: 05-26-2012, 04:56 AM
  5. Filter data per function
    By vrijbergen in forum Excel General
    Replies: 3
    Last Post: 10-03-2005, 06:05 PM

Tags for this Thread

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