+ Reply to Thread
Results 1 to 4 of 4

Convert a string in a cell into an executable/executed cell

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Long Beach, WA
    MS-Off Ver
    Excel 2013
    Posts
    87

    Convert a string in a cell into an executable/executed cell

    Example:
    Start with $O$8 filled with 6
    A1 =$O$8>=5 displaying TRUE
    B1: Put into B1 = FORMULATETEXT(A1) It displays =$O$8>=5. I'm not sure what to call this information except "string"...
    C1: COPY B1. PASTE SPECIAL as VALUE into C1 It displays the same as B1 =$O$8>=5. I'm not sure what to call this information except "string"...
    D1: Put into D1: =RIGHT(C1,LEN(C1)-1). It displays $O$8>=5. But the string that is displayed isn't editable because the cell contains a formula.
    E1: COPY D1. PASTE SPECIAL as VALUE into E1. This is an editable string. Edit it to read =$O$8>=7
    F1: Enter: =Concatenate("=",D1) It displays =$O8>=7. I'm not sure what to call this information except something like "formula string"
    G1: I want to put the formula displayed in F1 into G1 such that it is executed. It should display FALSE.
    How? Perhaps with VBA?
    Thank you!

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Convert a string in a cell into an executable/executed cell

    It is not possible to make a formula variable in Excel.
    You should look for a solution in a "fixed formula", in which you vary the parameters. "
    Often this is possible, but the problem must then be clear.

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Long Beach, WA
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Convert a string in a cell into an executable/executed cell

    HansDouwe: Thank you! I'm not sure how this pertains in this case. I want to edit formulas manually from a list of existing formulas. Then I want to enter them after editing. Perhaps a simpler objective without any pre-conversion would be:
    1) write a formula
    2) enter it as a string
    3 convert the string to an executable formula

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Convert a string in a cell into an executable/executed cell

    convert the string to an executable formula
    I understand what you mean, but this is not possible in Excel.

    You should solve your problem in an other way.

+ 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. Replies: 4
    Last Post: 08-16-2020, 01:11 PM
  2. Replies: 1
    Last Post: 03-17-2016, 06:25 AM
  3. Convert String to Cell
    By doronlevy in forum Excel General
    Replies: 7
    Last Post: 12-21-2015, 09:33 AM
  4. How to convert an excel with VB macro into an executable file?
    By Kiran2012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2012, 01:52 AM
  5. Replies: 0
    Last Post: 01-08-2008, 09:40 PM
  6. Convert Multi-Sheet Workbook to Standalone Executable
    By George Orwell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2005, 11:06 PM
  7. Convert Multi-Sheet Workbook to Standalone Executable
    By George Orwell in forum Excel General
    Replies: 1
    Last Post: 04-04-2005, 09:06 AM

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