+ Reply to Thread
Results 1 to 5 of 5

Cell value depending on the month of today's day

  1. #1
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Cell value depending on the month of today's day

    Hello all,

    Could you please help me manage to do something like this? (if it's even possible)

    - i have a worbook with two sheets
    - on sheet 1 i have three rows: row1 = years, row2 = numbers from 1-12 (months of the year), row3 = some values for every month
    - on sheet 2 i have a cell, let's say it's D3. Now, in Sheet2!D3 i need a formula that should change the value of this cell depending on the month of today's day. So if today is in october, the returned value should be the value found on Sheet1, cell J3. That means that until october it's over the value returned should be the same. When will be 1rst november, the returned value should be K3.

    Please see attached file, to understand better...

    Thank you all in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Cell value depending on the month of today's day

    Try, for starters,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Cell value depending on the month of today's day

    hi, my proposition
    Please Login or Register  to view this content.
    Regards.

  4. #4
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Re: Cell value depending on the month of today's day

    Thank you both for your answers.
    I just tried TMS's solution and it's working wonderfully.
    I will try now Maras_mak's solution and choose the one that fits best.

    Thank you again!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Cell value depending on the month of today's day

    You're welcome. Thanks for the rep.


    My solution doesn't cater for the year but it will be a while before you can test that.


    maras_mak's solution does, but I think it could be shorter, comme ci:

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


    You can test this by putting a date in cell A1 and changing the formula to look at that rather than using TODAY()

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



    Note that it is always more efficient to put =TODAY() in a cell and refer to that rather than having multiple use of the TODAY() function. That's because =TODAY() is a volatile function and it is better to have one reference than lots.

+ 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. Replies: 14
    Last Post: 08-10-2018, 09:14 AM
  2. Replies: 4
    Last Post: 05-03-2018, 02:33 PM
  3. [SOLVED] How to set up a cell to change colors depending on today's date
    By nyyankees625 in forum Excel General
    Replies: 5
    Last Post: 03-19-2017, 08:41 PM
  4. [SOLVED] IF cell = today month and year
    By guy13 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-08-2014, 07:41 AM
  5. [SOLVED] display cell to show only Month/year to do sumif calc if today()= any day of month
    By fireguy7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2013, 06:55 PM
  6. [SOLVED] Update cell each day by certain value, depending on month
    By JonathanP in forum Excel General
    Replies: 7
    Last Post: 10-16-2012, 01:44 PM
  7. cell that changes depending on month
    By savage in forum Excel General
    Replies: 6
    Last Post: 03-05-2009, 12:06 AM

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