+ Reply to Thread
Results 1 to 4 of 4

Insert formula and can enter number in the same cell

  1. #1
    Registered User
    Join Date
    06-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    2

    Insert formula and can enter number in the same cell

    Hi,

    I want make if cell A1 is saying "NO" , it will delete all the value in cell B1 and if the cell A1 is saying "YES" then I can enter number in cell B1

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Insert formula and can enter number in the same cell

    Based upon your description, the following will do exactly as asked.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Insert formula and can enter number in the same cell

    Hi,
    I just wondering why there is run time error 13 in this coding? however is still working.,

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$L$29" And Target <> Chr(yes) Then
    Range("O29,Q29,S29") = ""
    End If
    End Sub

    Thanks

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: Insert formula and can enter number in the same cell

    Chr() Function: Returns a String containing the character associated with the specified character code.

    "yes" is not a character code.
    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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] Enter number in blank cell match number on sheet 2 & enter data from adjacent cell
    By Bikeman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2015, 08:36 PM
  2. Date changes to <*insert number* when you click cell and press enter?
    By henryGKN in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-20-2014, 06:11 AM
  3. [SOLVED] Creating a formula: If cell starts with number X, then enter this in column A
    By abraham.lopez in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2013, 07:05 PM
  4. Replies: 8
    Last Post: 06-20-2008, 08:01 AM
  5. [SOLVED] How do I enter a formula in a cell so that letters= a number i.e..
    By Alex in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-23-2005, 10:06 PM
  6. Replies: 2
    Last Post: 02-23-2005, 08:06 AM
  7. [SOLVED] How do I enter a formula in a cell so that letters= a number i.e..
    By Alex in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2005, 08:06 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