+ Reply to Thread
Results 1 to 6 of 6

Get Average of Days from Date Range

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Get Average of Days from Date Range

    I wanted to make sure I have the correct formula before using it for a report. Could someone validate that this would be the formula to get a date range startdate (col C) to enddate (col D) and the days are indicated in col G. This is a wide range and not limited to one row.

    =AVERAGE(IF('Sheet1'!$C:$C>=A8,IF(Sheet'!$C:$C<=C8,'Sheet1'!$D:$D)))

    Where A8 is the startdate for the week, and C8 is the enddate for the week on a different work sheet. G specifies the days. The above formula is only for col C though, and I want to add col D with the date range too.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Get Average of Days from Date Range

    Hi codeRus,


    I do not see the use of col G in your formula.. would suggest you to upload the sample workbook. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Get Average of Days from Date Range

    Sorry about that, I meant to have col G as follows where the days will be indicated.

    =AVERAGE(IF('Sheet1'!$C:$C>=A8,IF(Sheet1'!$C:$C<=C8,'Sheet1'!$G:$G)))

    I want the formula to get the date range specified in A8 and C8 on Sheet3, and to pull date range data and days from Sheet1. Some dates are still not filled in as of yet, but just looking for the average of days for the ones filled in.
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Get Average of Days from Date Range

    HI CodesRus,


    See the attached file... sheet 3, yellow cell:-
    sample_book.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    05-29-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Get Average of Days from Date Range

    Thank you very much!!! this really helps.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Get Average of Days from Date Range

    You are welcome codesRus....

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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