+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] Need to average a range AND calc a formula at once...

  1. #1
    S Davis
    Guest

    [SOLVED] Need to average a range AND calc a formula at once...

    Thanks for reading this post.

    I have a range of 2000 sets of data. I am trying to find the average
    age of this set of employees when they were hired. The employees age
    is within Column G, their hire date is in Column H, and the date the
    data was produced (so that this can be used in the future without
    distorting the facts at the time of the data) is in E1.

    This formula works for calculating one person's age at the time of
    hire:

    =G3-((E1-H3)/365))

    (or, in english, =AGE-minus the difference between the date of the data
    and the employees hire date, ie if an employee were hired 6 months from
    now, this formula will show an age 6 months younger.

    I need to somehow nest this inside a formula that will calculate, on
    the fly, each person's age (out to 2000 people) and turn out an average
    age of all the data when they were hired.

    Is this possible within one cell?


  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =AVERAGE(G3:G2000-(E1-H3:H2000)/365)

    confirmed with CTRL+SHIFT+ENTER

    note: the range shouldn't contain any blank rows...

+ 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