+ Reply to Thread
Results 1 to 5 of 5

How to allow for formula or data entry in the same cell without deleting formula

  1. #1
    Registered User
    Join Date
    01-20-2020
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    1

    How to allow for formula or data entry in the same cell without deleting formula

    Hi,

    I need some help with allowing for a formula OR data entry in a cell depending on the result of another cell.

    If cell B7 equals "tube", I want to be able to enter data into E11 and have a formula calculated in H11. OR If cell B7 equals "sheet", I want to be able to enter data into H11 and have a formula calculated in E11.

    For example
    Cell H11 - IF(B7="Tube",FormulaX,Data Entry)
    Cell E11 - IF(B7="Sheet",FormulaY,Data Entry)

    I need the switch to be automatic depending on the value of cell B7.

    There there a way to do this? Maybe using vba?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: How to allow for formula or data entry in the same cell without deleting formula

    This can only be done with VBA
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: How to allow for formula or data entry in the same cell without deleting formula

    Quote Originally Posted by FDibbins View Post
    This can only be done with VBA
    it is not fully right. With small restrictions: the changes only once and undo is not working.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: How to allow for formula or data entry in the same cell without deleting formula

    BMV my understanding is that the OP wants to either have a formula in E11 and data entry in H11 OR data entry in E11 and formula in H11

    If you have a formula in E11 and enter data, that formula is gone. If you have a formula in both E11 and H11 you will probably end up with a circ ref error

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: How to allow for formula or data entry in the same cell without deleting formula

    FDibbins I understud you wrote, and because of this "not fully". Look at my example.

+ 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. Formula and data entry in same cell
    By Dango2312 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-23-2017, 03:20 PM
  2. Manual Entry without deleting formula
    By gzoeller in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-01-2015, 08:44 AM
  3. Can a cell contain a formula and be used for data entry?
    By mshaneweaver in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2014, 04:03 PM
  4. Can I have a formula but allow data entry in same cell?
    By durallymax in forum Excel General
    Replies: 2
    Last Post: 02-16-2012, 01:05 PM
  5. Replies: 7
    Last Post: 07-11-2011, 06:42 PM
  6. Can I do this? cell data entry that returns a formula value
    By jasonr704 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-14-2006, 06:36 PM
  7. [SOLVED] Formula and Data Entry in a Single Cell
    By Josh VM in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 05:05 PM

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