+ Reply to Thread
Results 1 to 8 of 8

average number of days between list of closeddate and opendate excluding blank cells

  1. #1
    Registered User
    Join Date
    05-03-2017
    Location
    California, US
    MS-Off Ver
    excel 2007
    Posts
    14

    average number of days between list of closeddate and opendate excluding blank cells

    I have a growing worksheet in workbook2.xlsx
    workbook2.xlsx
    opendate closedate
    01-Apr-16 03-Apr-16 2
    10-Apr-16 11-Jun-16 31
    02-May-16
    12-Dec-16 24-Dec-16 12
    20-Dec-16 22-Dec-16 2
    11-Dec-16 18-Jan-17
    21-Dec-16

    I need to calculate monthly average of how many days did it take for the order from opendate until closedate ignoring blank cells. so far I came up with the following but it is not working
    workbook1.xlsx
    Please Login or Register  to view this content.
    SO for average for dec should be 7. How can I get it?
    Thanks for help in advance.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: average number of days between list of closeddate and opendate excluding blank cells

    RosieGP welcome to the forum.

    Try this with the following layout and this formula in D1 as below.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    1
    opendate
    closedate*
    7
    1-Dec-16
    2
    1-Apr-16
    3-Apr-16
    2
    3
    10-Apr-16
    11-Jun-16
    31
    4
    02-May-16*
    5
    12-Dec-16
    24-Dec-16
    12
    6
    20-Dec-16
    22-Dec-16
    2
    7
    11-Dec-16
    18-Jan-17
    8
    21-Dec-16*
    Dave

  3. #3
    Registered User
    Join Date
    05-03-2017
    Location
    California, US
    MS-Off Ver
    excel 2007
    Posts
    14

    Re: average number of days between list of closeddate and opendate excluding blank cells

    Thanks for quick reply Dave. column C or E1 is not in the standard workbook2. I just added the days to display what the output should be.
    The calculation needs to be done only on opendate and closedate:
    sorry for any confusion.
    I'm trying make the following work
    Please Login or Register  to view this content.
    I also tried the following:
    Please Login or Register  to view this content.
    Last edited by RosieGP; 05-03-2017 at 10:59 PM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: average number of days between list of closeddate and opendate excluding blank cells

    Our edits crossed in the ether-mail.

    I'm confused. I thought you wanted averages of values in column C that were returned by closedate-opendate conditional upon a monthly range.

    opendate(Dec-16) and closedate(Dec-16) is a bit vague. We need to also know what the underlying days are in order to do the calendar math.

    I'm missing something. Please tell me.

    Better yet please upload a sample Excel workbook that illustrates what you are starting with and what you would like the results to be. Also indicate the logic you want us to apply in order to reach the solution. Think "BEFORE - AFTER". 10 to 20 rows is usually sufficient.

    Please no pics or screenshots (saves having to retype your data). You often get more and faster response if you do.

    If you are not familiar with how to do this:


    To attach a file to your post,
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”
    • be sure to desensitize the data
    The file name will appear at the bottom of your reply.
    Last edited by FlameRetired; 05-03-2017 at 11:12 PM.

  5. #5
    Registered User
    Join Date
    05-03-2017
    Location
    California, US
    MS-Off Ver
    excel 2007
    Posts
    14

    Re: average number of days between list of closeddate and opendate excluding blank cells

    please see the file.
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: average number of days between list of closeddate and opendate excluding blank cells

    I've reworked your upload with some suggested modification to expedite use and minimize the need for future edits in two cases.

    There is a helper column in column D. It can be hidden if you wish. It streamlines calculations and simplifies formulas by first subtracting all openDates from all closeDates. The formula in D2 filled down is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There is a data validation list of FOM dates 2016-2017 in column I. It is applied to a drop down in E1 for convenience.

    There are three formulas all equally valid and all returning the same results.

    In E2 this formula resembles what you were trying to do in the attempts Post #3. It must be array entered. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The next two do not have to be array entered and take advantage of the IFs family of functions to reference whole columns without noticeable load. This makes "future proofing" the formulas almost unnecessary.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-03-2017
    Location
    California, US
    MS-Off Ver
    excel 2007
    Posts
    14

    Re: average number of days between list of closeddate and opendate excluding blank cells

    thanks so much dave for all your help.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: average number of days between list of closeddate and opendate excluding blank cells

    You're welcome. Thanks for the feedback and rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Smallest number in group, excluding blank cells
    By ssminnow in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-16-2017, 03:06 PM
  2. [SOLVED] Calculate Moving Averages for x days while excluding blank cells
    By dewonw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2017, 09:48 AM
  3. Convert Matrix to List (excluding blank cells from list)
    By cameron.rumball in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-02-2013, 12:35 AM
  4. Replies: 0
    Last Post: 02-01-2013, 05:10 PM
  5. !HELP! how to count the number of records excluding blank cells
    By eksel_101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-21-2012, 11:28 PM
  6. Moving average excluding blank cells
    By bog3494 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-28-2011, 07:18 PM
  7. Average function excluding blank cells
    By jacko311 in forum Excel General
    Replies: 0
    Last Post: 10-24-2009, 01:48 PM

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