+ Reply to Thread
Results 1 to 5 of 5

Auto update due dates if conditions are met

  1. #1
    Registered User
    Join Date
    10-05-2023
    Location
    United States
    MS-Off Ver
    365
    Posts
    3

    Auto update due dates if conditions are met

    I am trying to write a formula for a Due Date that will automatically update to the new Month/Day/Year, but only if the value in cell F4 equals ANY of the following: "Cancelled", "Paid", "Paid Off", OR "Paused"

    Currently In cell A1 I have today's day as A1 =TODAY()

    I am getting the Date in cell E4 by using the following formula: =IF(AND(DAY($A$1) = 1, OR(F4 = "Cancelled", F4 = "Paid", F4 = "Paid Off", F4 = "Paused")), DATE(YEAR($A$1), MONTH($A$1), 1), DATE(YEAR($A$1), MONTH($A$1), 1))
    ---The formula above checks IF two conditons are BOTH TRUE: 1) IF the day of the month in cell A1 is the first of the month AND 2) IF the value in cell F4 equals ANY of the following: "Cancelled", "Paid", "Paid Off", OR "Paused".
    ---IF BOTH CONDITIONS ARE TRUE, then cell E4 will extract the Year and Month from A1 and enter the day as 1.

    ---IF ONE OR BOTH ARE FALSE it will extract the Year and Month from cell A1 and enter the day as 1. --> This is my issue. I am getting my dates by extracting from Today's date in cell A1. [A1 =TODAY()]. Doing this means that even if BOTH conditons are not met the date is still updating to the next month.

    Bills.png

    Any help on a better way to do this is appreciated.

    Thanks.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Auto update due dates if conditions are met

    Welcome to the forum.

    Which version of Excel do you have? Is it 365? Is it for Mac?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-05-2023
    Location
    United States
    MS-Off Ver
    365
    Posts
    3

    Re: Auto update due dates if conditions are met

    Thanks for the help. I have Office 365 and it's a Windows PC.

    I believe that attachment was added.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Auto update due dates if conditions are met

    OK - please change your forum profile to 365. Thanks.

  5. #5
    Registered User
    Join Date
    10-05-2023
    Location
    United States
    MS-Off Ver
    365
    Posts
    3

    Re: Auto update due dates if conditions are met

    Updated my profile

+ 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. Auto update cell from one sheet to another(or workbook) with conditions
    By lbugay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2022, 03:54 AM
  2. Auto populate cells based on dates and other conditions
    By Couchy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2022, 08:37 PM
  3. [SOLVED] Formula to update dates based on conditions
    By aldenes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2020, 12:03 AM
  4. Auto update of Data (Dates, Time, etc.) in next sheet created
    By raqureshi78 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2019, 03:39 PM
  5. VBA to Auto update Dates in SQL Query
    By yali1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2019, 02:25 PM
  6. Auto update all dates in a column to todays date on workbook open
    By smorri25 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-01-2016, 03:12 AM
  7. Auto update pivot table filter dates
    By kaitco in forum Excel General
    Replies: 5
    Last Post: 11-19-2010, 01:40 PM

Tags for this Thread

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