+ Reply to Thread
Results 1 to 3 of 3

selecting data from VBA given crieteria

  1. #1
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    selecting data from VBA given crieteria

    Hi,

    So I have some tools I'm trying to build where I will need to generate sets of data given criteria. RIght now I'm using a combination of Named Ranges and CSE Array formulas stored both in the worksheet and in the name manager.

    I would like to eliminate the CSE formulas as the sheet has become book has become very buggy and overall just doesn't seem like the most efficient way of doing things.

    Right now I'm trying to get a handle on Loading an entire data set as an array without looping and then manipulating the data against criteria from there and printing into a range back in the workbook.

    I know I can use .formula array but this seems like it would just be writing the formula rather than computing the output. If I can please get some guidance towards a good approach on selecting data from an array given criteria and loading a full data set to VBA array in one pass I'd appreciate it.

    With Worksheets(1)
    Array1 = .Range("NamedRangeExample").Value
    End With

    Is the convention I've found for loading array, haven't tested reliably as of yet.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: selecting data from VBA given crieteria

    Have a look in Evaluate("Your Formula") so that it will get the result of the formula and store in the cells.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Re: selecting data from VBA given crieteria

    Nice! Thanks. I will try this in a moment

+ 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. Year to Data data based on crieteria
    By alf40 in forum Excel General
    Replies: 7
    Last Post: 08-22-2013, 01:54 AM
  2. Deleting a row is crieteria met.
    By Lensmeister in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2013, 11:12 AM
  3. Help with Sumif function with multiple crieteria
    By greenbean0021 in forum Excel General
    Replies: 5
    Last Post: 01-20-2012, 12:35 AM
  4. How to keep the Last Crieteria from changes in a Formula
    By computerlady143 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2011, 06:22 PM
  5. Counting cell depending on certain crieteria
    By starguy in forum Excel General
    Replies: 4
    Last Post: 04-24-2006, 04:10 AM

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