+ Reply to Thread
Results 1 to 6 of 6

Carry Out Simple Formula on Cell Value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    CDN
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Carry Out Simple Formula on Cell Value

    Hi!

    Attached.

    I'm trying to incorporate inflation into the values pulled into the summary tab macro. Inflation being =(1+Inflation Rate)^(Column year - current year)
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-03-2012
    Location
    CDN
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Carry Out Simple Formula on Cell Value

    Ok, so I have drawn up the following:

    Sub Inflation()
    Dim c As Range, LR As Long
    
    LR = Range("A" & Rows.Count).End(xlUp).Row
    
    For Each c In Worksheets("BUILDING SUMMARY").Range("F4:O" & LR).Cells
    c.Value = c.Value * (1 + Worksheets("Start").Cell("$C$15")) ^ ("F$3" - Worksheets("Start").Cell("$C$17"))
    Next
    End Sub
    But I get errors, can anyone help me out?
    Last edited by Jrub; 10-19-2012 at 01:51 PM.

+ 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