Results 1 to 5 of 5

VBA Evaluate Array then imput into range adjusting forumla in Array down with the Range

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-31-2009
    Location
    Lincoln, USA
    MS-Off Ver
    Excel 2007 and excel 2010
    Posts
    142

    VBA Evaluate Array then imput into range adjusting forumla in Array down with the Range

    Hello and thank you in advance,

    What I'm trying to do is have VBA calculate an Array Formula and then input into a range which is pretty straight forward. The issue is the Array formula doesn't adjust down the range.

    for the example sheet I've attached here is the code that'll input the information I currently have.

    Sub test()
    
    Dim rng As Long
    
    rng = Evaluate("=MAX(IF(A:A=A2,B:B))")
    Range("C2:C15") = rng
      
    End Sub
    Issue is it inputs A2 as the reference cell in the full range.

    for the attached what I want is for A2 to move to A3 for the next cell then A4 for the 3rd cell and so forth.

    Was thinking a loop tell blank but the issue is the actual sheet will have a 200k lines so I might run into performance issues if I loop.

    any help is appreciated.
    Last edited by fireguy7; 02-11-2019 at 02:41 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Evaluate named range to an array
    By kcaisaacs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2017, 02:23 PM
  2. Multiple Non-Consecutive Cell Range in an Array Forumla
    By PJC83 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2015, 09:02 AM
  3. [SOLVED] Populate one array from another array and print new array as a range
    By Kaden265 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2014, 07:52 AM
  4. [SOLVED] Evaluate Named Range Array formula to VBA Array
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2014, 09:06 PM
  5. Adding a date range to an already complex index array forumla
    By jackifizzle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-05-2013, 11:50 AM
  6. [SOLVED] Formula Array not adjusting to range
    By LightHeart7 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 11-22-2013, 01:56 PM
  7. [SOLVED] Add Range to Array find Array value and Paste back to Range
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-28-2012, 05:45 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