+ Reply to Thread
Results 1 to 5 of 5

Question about using Evaluate with an array of formulas not an array formula

  1. #1
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Question about using Evaluate with an array of formulas not an array formula

    I have several lines of code that currently input a formula into several different cells. Basically these cells echo data from one sheet to the dashboard. I would like to only have the values appear if possible. Can this array of formulas be written using Evaluate?


    Please Login or Register  to view this content.
    Last edited by Mr_Bill; 09-19-2014 at 01:22 PM. Reason: Typo in title

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Question about using Evaluate with an array of formulas not an array formula

    This converts the formulas to values
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Question about using Evaluate with an array of formulas not an array formula

    Thank you it did work but not how I planned need to rethink this one. Does this only return the value of the cell in the array once? Any thought how I could get the cells to auto update as if they were still ='Random Name'!P2 or would I need to have line like Range("D2").Value = Range("'Random Name'!P2").Value for every cell I want to do this to? These codes are automatically input in a newly generated section of the dashboard when a new sheet is generated so I am thinking I am stuck with them as is.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Question about using Evaluate with an array of formulas not an array formula

    A formula is probably the best way for the cells to auto-update.

    What's the problem with using a formula if it works? I don't follow what the issue is.

  5. #5
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Question about using Evaluate with an array of formulas not an array formula

    Part an OCD thing, part my mind tells me the page would work faster with less on it, and part pain to copy and paste from that page as the formulas get copied.

    One more if you are up it can a sumif be done in the evaluate? I tried but it doesnt do anything and gives no error

    Range("E6").Value = Evaluate("=SUMIF($D$6:D8000,"">=0"", $E$6:E8000)")

    What it should do is if one of the cells in D is blank or has a - it wont add the adjacent cell in E to the total

+ 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. Evaluate an Array Formula
    By rodrigoxsm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2014, 05:26 PM
  2. [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
  3. [SOLVED] Unable to get result Using FormulaArray or Evaluate with Array Formula in VBA
    By :) Sixthsense :) in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-30-2013, 11:27 PM
  4. [SOLVED] Using Evaluate With Array Formula
    By :) Sixthsense :) in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-10-2013, 06:47 AM
  5. [SOLVED] Quick Array question - Copy array to another array then resize?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2013, 01:17 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