+ Reply to Thread
Results 1 to 2 of 2

Is it possible to have a cell calculate itself?

  1. #1
    Registered User
    Join Date
    07-22-2008
    Location
    WV
    Posts
    70

    Is it possible to have a cell calculate itself?

    I have the following formula that substitutes a code number for an item name.

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"1","apple"),"2","banana"),"3","carrot")

    This formula works fine if I enter it in any other cell except A1, since it is using the data in A1 to calculate the formula result.

    However, I want the user to enter the data in the same cell that calculates the result. For example the formula is in A1, but that is the same cell the user would type "1" in to. Once the user selects the next cell, the "1" in A1 is replaced with "apple"

    Currently, I get the circular reference warning when doing this which I disregard, but of course, when I do enter the text in the cell, the formula disappears and is replaced with my entered text.

    Are there some advanced settings or syntax I can use to override this behavior in excel and have the cell calculate it's own answer based on data entered into the same cell as the formula?

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Is it possible to have a cell calculate itself?

    You would need VBA to do this I believe.

+ 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: 6
    Last Post: 10-26-2017, 04:16 AM
  2. Replies: 6
    Last Post: 04-29-2016, 09:48 AM
  3. [SOLVED] Formula: If cell 3 is blank have cell 1 calculate, if cell 3 filled have cell 2 calculate
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2016, 09:34 AM
  4. Cell to calculate when another cell date is expired or close to expiring
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2014, 11:08 AM
  5. [SOLVED] for range of cell = n, calculate sum of cell + n-1 previous cell
    By TNLNYC in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-02-2013, 10:20 PM
  6. Replies: 0
    Last Post: 08-14-2012, 10:42 AM
  7. Replies: 2
    Last Post: 05-24-2010, 10:13 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