1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Calculate an average

Discussion in 'Business Applications' started by Guest2, Apr 15, 2010.

Thread Status:
Not open for further replies.
  1. Guest2

    Guest2 Thread Starter

    Joined:
    Feb 5, 2010
    Messages:
    12
    In excel I would like to calculate the value of Column A ($) / Column B(# of years) across the row, one result per column for each number of years.

    Any suggestions would be greatly appreciated

    Example:


    7 $2,800 $400 $400 $400 $400 $400 $400 $400
    5 $364 $73 $73 $73 $73 $73
    3 $150 $50 $50 $50
    2 $200 $100 $100
    3 $250 $83 $83 $83
    2 $210 $105 $105
    2 $210 $105 $105
    2 $200 $100 $100
    2 $100 $50 $50
    1 $140 $140
     
  2. Ent

    Ent Trusted Advisor

    Joined:
    Apr 11, 2009
    Messages:
    5,467
    First Name:
    Josiah
    The ideal way would probably be to use macros. However if you put this in every box that may hold the results (i.e. every box with a 400 in your first example, for the maximum number of columns you'll have years) it should work

    Code:
    =IF(COLUMN()-2<=A1,B1/A1,"")
     
  3. Guest2

    Guest2 Thread Starter

    Joined:
    Feb 5, 2010
    Messages:
    12
    That works for our needs - thanks for your time
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/917151

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice