+ Reply to Thread
Results 1 to 4 of 4

calculating formula only on active rows

Hybrid View

  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: calculating formula only on active rows

    Thanks.

    Maybe like this, assuming the data starts in A7:
    Sub CI_calculation()
        With ActiveSheet.Shapes("Button 7").TextFrame.Characters
            .Text = "CI"
            With .Font
                .Name = "Arial"
                .FontStyle = "Regular"
                .Size = 10
            End With
        End With
    
        With Range("A7", Range("C7").End(xlDown)).Offset(, 3)
            .Columns(1).FormulaR1C1 = "=SQRT(1/RC[-1])"
            .Columns(2).FormulaR1C1 = "=RC[-3]-1.96*RC[-1]"
            .Columns(3).FormulaR1C1 = "=1+1.96*RC[-2]"
        End With
    End Sub
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Registered User
    Join Date
    08-11-2009
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: calculating formula only on active rows

    Incredible! Thank you so much. That is just what I needed. You guys always have the answers.

+ 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