+ Reply to Thread
Results 1 to 3 of 3

Can Excel recognize when data is entered and apply formulas?

  1. #1
    cwool4512
    Guest

    Can Excel recognize when data is entered and apply formulas?

    Can Excel recognize when data is entered into a cell and then apply the
    appropriate formulas from the cells above? I have a spreadsheet set up for
    people to use but some of the cells are locked and I don't want to print the
    whole worksheet until info is entered into cells and then the formulas be
    applied.

  2. #2
    Anne Troy
    Guest

    Re: Can Excel recognize when data is entered and apply formulas?

    Something like this, assuming quantity in column A and price in column C?
    =if(isblank(a2),"",a2*c2)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "cwool4512" <[email protected]> wrote in message
    news:[email protected]...
    > Can Excel recognize when data is entered into a cell and then apply the
    > appropriate formulas from the cells above? I have a spreadsheet set up

    for
    > people to use but some of the cells are locked and I don't want to print

    the
    > whole worksheet until info is entered into cells and then the formulas be
    > applied.




  3. #3
    Bernie Deitrick
    Guest

    Re: Can Excel recognize when data is entered and apply formulas?

    You could use an worksheet event. The example code below will copy the formula in Column C from the
    row above the entry in Column B.

    For example, if you have a value in cell B2 and a formula in cell C2, and row 3 is blank, then when
    you enter a value into cell B3, the formula from C2 will be copied into cell C3, and so on.

    Copy the code, right-click on the sheet tab, select "view code" and paste the code into the window
    that appears.

    If you need help customizing this to your particular situation, post back.

    HTH,
    Bernie
    MS Excel MVP


    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    If Target.Column <> 2 Then Exit Sub
    If Target(1, 2).HasFormula Then Exit Sub
    Application.EnableEvents = False
    Target(1, 2).FormulaR1C1 = Target(0, 2).FormulaR1C1
    Application.EnableEvents = True
    End Sub


    "cwool4512" <[email protected]> wrote in message
    news:[email protected]...
    > Can Excel recognize when data is entered into a cell and then apply the
    > appropriate formulas from the cells above? I have a spreadsheet set up for
    > people to use but some of the cells are locked and I don't want to print the
    > whole worksheet until info is entered into cells and then the formulas be
    > applied.




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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