+ Reply to Thread
Results 1 to 3 of 3

Choosing Cells to Today

Hybrid View

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    aaa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Choosing Cells to Today

    Hi all,

    Example: I have dates from A1 to A31 (1st May to 31st May). I have number values from B1 to B31.

    Now I would like to calculate i.e. average in C1 in a way it takes cells in B column from B1 to cell what is in a same row than TODAY. Today is 9th of May so I would like it will automatically calculates in C1 AVERAGE(B1:B7) tomorow AVERAGE(B1:B8) ...

    Thank you for help!

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Choosing Cells to Today

    =average(b1:index(b1:b31,match(today(),a1:a31,0)))
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Choosing Cells to Today

    Welcome to the forum
    you can try it like this


    =AVERAGE(IF(A1:A31<=TODAY(),B1:B3)) - ctrl + shift + enter not just enter
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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