Consulting

Results 1 to 3 of 3

Thread: VB code

  1. #1
    VBAX Regular
    Joined
    Jun 2008
    Posts
    9
    Location

    VB code

    Hi,
    I am trying to write a code with the formula given below.

    =AN3*(1-(0.025/1))^(1*r)

    i want "r" value will decrease by 1 gradually with the decrease in column number.

    It will be great if you can write a code for this formula in excel sheet.Thanks

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    =AN3*(1-(0.025/1))^COLUMN() or even =AN3*0.975^COLUMN()
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Expert
    Joined
    Aug 2007
    Location
    Windermere, FL, a 'burb in the greater Orlando metro area.
    Posts
    567
    Location
    <deleted> (duplicated Malcolm's solution.
    Ron
    Windermere, FL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •