+ Reply to Thread
Results 1 to 10 of 10

Automatic change of cell contents according to date

  1. #1
    Registered User
    Join Date
    11-10-2022
    Location
    London
    MS-Off Ver
    2019
    Posts
    7

    Automatic change of cell contents according to date

    Hello,

    I want to ask you for help
    what formula to use if I would like to set the AUTOMATIC CHANGE of the cell contents according to the DATE.

    thank you
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Automatic change of cell contents according to date

    Please revise your profile to show your current version of Excel. There is no Excel 2020.

    Let me restate your description to make sure it's clear, because you give an example but don't explain how to determine E6 or F6.

    There is a list of dates in column K. The date in column E should be the next date from column K that follows the date in D6 (i.e., TODAY()). So that if today is any day in 2025, the date in E6 should be 31 DEC 2025. The value in F6 should be the value in column L that correspond to the date in E6.

    See attached.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-10-2022
    Location
    London
    MS-Off Ver
    2019
    Posts
    7

    Re: Automatic change of cell contents according to date

    perfect,
    well thank you.

    And is it possible to fill in the lines listed in the yellow cells?
    Does an auxiliary column/row need to be created where they must be added together?
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Automatic change of cell contents according to date

    That is a completely new question.

    Here is the solution, but column Q is blank so I'm not sure why you want to include it.

    Values as displayed
    D
    E
    F
    5
    TODAY
    6
    3/16/2024
    12/31/2024
    3000
    7
    5400
    8
    700
    Solution


    Underlying formulas
    D
    E
    F
    5
    6
    =TODAY()
    =INDEX($K$3:$K$9,MATCH(D6,$K$3:$K$9,1)+1)
    =SUM(INDEX($L$3:$L$7,MATCH($D$6,$K$3:$K$7,1)+1):INDEX($N$3:$N$7,MATCH($D$6,$K$3:$K$7,1)+1))
    7
    =SUM(INDEX($L$3:$L$7,MATCH($D$6,$K$3:$K$7,1)+1),INDEX($N$3:$N$7,MATCH($D$6,$K$3:$K$7,1)+1),INDEX($O$3:$O$7,MATCH($D$6,$K$3:$K$7,1)+1))
    8
    =SUM(INDEX($M$3:$M$7,MATCH($D$6,$K$3:$K$7,1)+1),INDEX($Q$3:$Q$7,MATCH($D$6,$K$3:$K$7,1)+1))

  5. #5
    Registered User
    Join Date
    11-10-2022
    Location
    London
    MS-Off Ver
    2019
    Posts
    7

    Re: Automatic change of cell contents according to date

    Can I still help you with this automatic completion of cell contents by date?

    thank you
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Automatic change of cell contents according to date

    Completely new question. Normally I would ask you to start a new thread but since I have a solution we'll take care of it here.

    Values as displayed
    F
    G
    9
    TODAY
    10
    3/16/2024
    7/20/2023
    Hárok1


    Underlying formulas
    F
    G
    9
    10
    =TODAY()
    =DATE(YEAR(F10)-IF(F10>=DATE(YEAR(F10),7,20),0,1),7,20)

  7. #7
    Registered User
    Join Date
    11-10-2022
    Location
    London
    MS-Off Ver
    2019
    Posts
    7

    Re: Automatic change of cell contents according to date

    perfect, thanks for your help

  8. #8
    Registered User
    Join Date
    11-10-2022
    Location
    London
    MS-Off Ver
    2019
    Posts
    7

    Re: Automatic change of cell contents according to date

    Quote Originally Posted by 6StringJazzer View Post
    That is a completely new question.

    Here is the solution, but column Q is blank so I'm not sure why you want to include it.

    Values as displayed
    D
    E
    F
    5
    TODAY
    6
    3/16/2024
    12/31/2024
    3000
    7
    5400
    8
    700
    Solution


    Underlying formulas
    D
    E
    F
    5
    6
    =TODAY()
    =INDEX($K$3:$K$9,MATCH(D6,$K$3:$K$9,1)+1)
    =SUM(INDEX($L$3:$L$7,MATCH($D$6,$K$3:$K$7,1)+1):INDEX($N$3:$N$7,MATCH($D$6,$K$3:$K$7,1)+1))
    7
    =SUM(INDEX($L$3:$L$7,MATCH($D$6,$K$3:$K$7,1)+1),INDEX($N$3:$N$7,MATCH($D$6,$K$3:$K$7,1)+1),INDEX($O$3:$O$7,MATCH($D$6,$K$3:$K$7,1)+1))
    8
    =SUM(INDEX($M$3:$M$7,MATCH($D$6,$K$3:$K$7,1)+1),INDEX($Q$3:$Q$7,MATCH($D$6,$K$3:$K$7,1)+1))
    yes, the "Q" shouldn't have been there - I got the column wrong
    When I fill in the formulas (all) in the "F" column of the formula, it doesn't work.
    I want to ask you if you could do it yourself and give me an attachment with the formulas.
    I don't know where I'm doing wrong.

    thank you

  9. #9
    Registered User
    Join Date
    11-10-2022
    Location
    London
    MS-Off Ver
    2019
    Posts
    7

    Re: Automatic change of cell contents according to date

    Quote Originally Posted by seanx View Post
    yes, the "Q" shouldn't have been there - I got the column wrong
    When I fill in the formulas (all) in the "F" column of the formula, it doesn't work.
    I want to ask you if you could do it yourself and give me an attachment with the formulas.
    I don't know where I'm doing wrong.

    thank you
    it's okay now.
    I found where I was doing wrong
    Well thank you

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Automatic change of cell contents according to date

    You're welcome and thanks for the rep!

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

+ 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] VBA or formula to change cell contents based on today's date?
    By PitchNinja in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2022, 08:55 AM
  2. Replies: 2
    Last Post: 03-14-2022, 06:06 PM
  3. change cell contents to actual value instead of referenced value based on date
    By cindybert in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2020, 05:15 PM
  4. Replies: 8
    Last Post: 05-26-2018, 04:25 PM
  5. [SOLVED] Audit - add date and user to cell when row contents change
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-07-2012, 08:28 AM
  6. Confirming cell contents to change to date
    By reynastus in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-24-2011, 06:42 PM
  7. Replies: 4
    Last Post: 01-17-2006, 06:30 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