+ Reply to Thread
Results 1 to 5 of 5

Formula To Minus a day from a cell

  1. #1
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Formula To Minus a day from a cell

    Hello Experts
    What can I use if I have a date (02/05/2016) in cell D4

    I need Cell G4 to automatically show the previous date (01/05/2016)

    What formula can I use?
    Please help

    Thanks

    Regards
    Rahul

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Formula To Minus a day from a cell

    in G4

    =D4-1

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula To Minus a day from a cell

    In Excel dates are really just numbers formatted to look like dates. These numbers are commonly referred to as the date serial number. The date serial number is the count of days starting from a base date. In Windows Excel the default base date is January 1, 1900. So, January 1, 1900 is date serial number 1.

    Jan 1 1900 = date serial number 1
    Jan 2 1900 = date serial number 2
    Jan 3 1900 = date serial number 3
    Jan 4 1900 = date serial number 4
    Jan 5 1900 = date serial number 5
    etc
    etc
    Jan 1 1975 = date serial number 27395
    Jan 1 2000 = date serial number 36526
    Jan 1 2016 = date serial number 42370

    You can see the date serial number by entering some date in a cell and then changing that cells format to General or Number.

    So, you just need to subtract 1 from the date:

    =D4-1

    Format as Date if needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    02-23-2014
    Location
    Melbourne
    MS-Off Ver
    Microsoft 365
    Posts
    174

    Re: Formula To Minus a day from a cell

    Hi John & Tony
    Thanks for that

    It was so simple and I feel so stupid

    Thanks a lot

    Rahul

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula To Minus a day from a cell

    You're welcome. We appreciate the feedback!

+ 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. Formula to minus 1 day based upon content of another cell
    By missydanni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2016, 06:29 AM
  2. Need formula for a fixed cell minus last entry on ongoing log
    By Mari C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Need formula for a fixed cell minus last entry on ongoing log
    By Mari C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Need formula for a fixed cell minus last entry on ongoing log
    By Kassie in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Need formula for a fixed cell minus last entry on ongoing log
    By Mari C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] Need formula for a fixed cell minus last entry on ongoing log
    By Mari C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] Need formula for a fixed cell minus last entry on ongoing log
    By Mari C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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