+ Reply to Thread
Results 1 to 4 of 4

Formula for autocalculating difference based on current and previous day

  1. #1
    Registered User
    Join Date
    05-10-2018
    Location
    Romania
    MS-Off Ver
    2017
    Posts
    5

    Formula for autocalculating difference based on current and previous day

    Hello,

    Friends, I'm in a big need for a formula wich need to calculate how many days remain until the membership expire.
    For example, the membership is for 30 days. I want everytime I open the excel file with the table wich contain clients and their
    memberships, i want everytime that the cell read the actual time and date of smartphone (if excel file is opened on smartphone) or PC (if it's opened on PC)
    and auto adjust the remaining days.

    Please check the picture below with aditional explanations.

    Very much thanks for any help!
    Attached Images Attached Images

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,856

    Re: Formula for autocalculating difference based on current and previous day

    You can use this formula in cell Q8:

    =IF(DATE(O8,N8,M8)<=TODAY(),"Overdue",DATE(O8,N8,M8)-TODAY())

    Format the cell as General, then copy down. You may need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-10-2018
    Location
    Romania
    MS-Off Ver
    2017
    Posts
    5

    Re: Formula for autocalculating difference based on current and previous day

    Hi Pete,

    It work flawless!
    Thank you very much!

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Formula for autocalculating difference based on current and previous day

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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: 8
    Last Post: 05-30-2019, 12:54 AM
  2. [SOLVED] Finding the most current and previous current date based on multiple criteria
    By tkbuc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-27-2016, 06:06 PM
  3. SUM IF FORMULA BASED ON CURRENT/PREVIOUS/NEXT Month
    By AK123 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2016, 01:10 PM
  4. [SOLVED] Dynamic formula to calculate the difference between current and previous month
    By kay007 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2015, 11:19 AM
  5. [SOLVED] Formula for amount on previous month based on current month
    By Yu Marquez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2014, 12:42 AM
  6. Cell value based on previous to cells time difference
    By SoulBlader in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-02-2012, 04:12 PM
  7. Replies: 4
    Last Post: 03-21-2011, 05:37 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