+ Reply to Thread
Results 1 to 2 of 2

Trying to create an average formula without creating multiple columns

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Trying to create an average formula without creating multiple columns

    Hello,

    I am trying to create an array formula that will give me the average of two dates, one of which is the current date. Basically, I need the following under certain conditions:
    Average Number of Days Since Created = (Today’s date – created date) / number of records if status is “In Progress”

    I have tried to put together a number of different arrays but cannot get anything to produce the proper results. I feel like it would look something like this, but this doesn’t work: if column 1 = “criteria” then subtract the value in column 2 from a constant value and take the average of all of the differences within the range.

    Example:

    Column 1 Column 2 Column 3 Column 4
    Jack 3/1/2013 Yes 5
    Jack 2/28/2013 Yes 2
    Jack 2/26/2013 Yes 3
    Jack 2/25/2013 No 6
    Jack 2/6/2013 No 9
    Casey 3/1/2013 No 8
    Casey 3/3/2013 No 4
    Casey 2/28/2013 No 2
    Melissa 3/4/2013 Yes 5
    Thomas 3/5/2013 Yes 9
    Thomas 2/6/2013 Yes 4
    Thomas 2/26/2013 Yes 7
    Thomas 2/25/2013 No 7

    What can I write that would take the information in column 2, subject it from the current date, and average the difference of all of the values in the data set? I’d rather do this than create a new column with the difference and then just taking the average of that column.

    Any help anyone can provide would be great!
    Thanks!

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Trying to create an average formula without creating multiple columns

    amerain,

    Welcome to the forum!
    Assuming you wanted to average the differences in dates from today's date where column 3 = yes, this would be the formula. Make sure to array enter it with Ctrl+Shift+Enter and not just Enter:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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