+ Reply to Thread
Results 1 to 3 of 3

Average if data is before todays date

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Average if data is before todays date

    Hi,

    i have data in rows 1 and 2.
    Row 1 is dates (so A1 is 01/10, A2 is 02/10..etc)
    Row 2 is just numerical data.

    How do i set up a formula that has a range from A1 (01/10) to AE1 (01/11) for example but only averages data from the beggining to the present day. Each day the formula will then extend its range based on the date.

    Hopefully that makes sense.

    Thanks in advance for any help you can give.

    Regards,
    Tom

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Average if data is before todays date

    =AVERAGE($A$2:INDEX($A$2:$AE$2, MATCH(TODAY(), $A$1:$AE$1,0)))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Registered User
    Join Date
    12-05-2012
    Location
    liverpool
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Average if data is before todays date

    perfect!!!! many thanks

+ 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. Filter data by date (within 3 months of todays date)
    By Gti182 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2014, 01:42 PM
  2. Using VB to find a range based on todays date and todays date +30
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 09:31 AM
  3. Replies: 3
    Last Post: 05-28-2008, 01:32 PM
  4. Data for todays date and before
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2008, 11:09 AM
  5. Print todays Report using todays date
    By jerryjaysr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2007, 04:09 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