+ Reply to Thread
Results 1 to 4 of 4

Difficulty using EVALUATE to convert string to formula and return result

  1. #1
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Difficulty using EVALUATE to convert string to formula and return result

    Hello,

    Attached please find the spreadsheet. In it i have the formula i want to use in cell F1 as text. I want to apply this formula in column B. This is possible by just copy and pasting and typing an equals sign. I was trying to use the define name and EVALUATE approach to cut down on the redundancy but with no success.

    Any suggestions? I don't know if i made a mistake or if perhaps there is a better approach?

    Thank You
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Difficulty using EVALUATE to convert string to formula and return result

    What is the formula meant to do and where's the 'redundacy'?
    If posting code please use code tags, see here.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Difficulty using EVALUATE to convert string to formula and return result

    ROW() and COLUMN() cannot be used with Evaluate, since it doesn't know what cell to use as it base.

    A different approach might be to put X*.9 in F2 and change the definition of Test to =EVALUATE(SUBSTITUTE(Sheet1!$F$2,"x",Sheet1!A2))
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Difficulty using EVALUATE to convert string to formula and return result

    The redundancy is that in reality my actual is many thousands of rows long and the formula i am using is also long. This creates a spreadsheet that takes up alot of disk space and takes awhile to open.
    I want to have one formula and reference it. This will cut down on the size of the file and make it easier for me to edit the formula if i have to.
    mikerickson your suggestion works great. I ran into a problem though. Im actually using named ranges with condition formatting. if i enter a value into cell M4 on sheet one that doesnt fit the range on sheet two, it should illuminate. This is working however it should also work if the value isnt a number. what i dont understand is that i have the formula in cell X6 and it appears to be working correctly. Ive attached a copy to take a look.

+ 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] 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
  2. VBA Evaluate Formula and "Copy Down" Result as String/Value to Last Row
    By falkon007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2013, 03:04 AM
  3. [SOLVED] SUMIF function don't return same result with Evaluate and Application.WorksheetFunction
    By zbor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-31-2012, 12:48 PM
  4. [SOLVED] Conditional Formatting to evaluate formula result not cell value
    By snoproladd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2012, 11:11 PM
  5. [SOLVED] Return a text string when the result of VLOOKUP formula is #N/A
    By jeremy nickels in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2006, 12:30 PM
  6. Replies: 11
    Last Post: 03-21-2006, 04:00 AM
  7. Evaluate string as a formula
    By peacelittleone in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 12: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