+ Reply to Thread
Results 1 to 4 of 4

Substract days from a date

  1. #1
    Registered User
    Join Date
    07-09-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    Substract days from a date

    I have a date field link to another sheet,

    so what I want to do is:

    for example cell e2 on "Outstanding cheques" sheet link to cell e3 on "Cdn. HSBC" sheet,

    that formula I am looking for is: on e2 =if( cell E3 on "Cdn. HSBC" sheet, Month has 31 days, then month-6 days, otherwise Month-5 days)

    so I always want the cell to Display for ej. April 25, 2013, May 25, 2013, always display the 25 of the month.

    Thank you

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Substract days from a date

    How about
    =DATE(YEAR('Cdn. HSBC'!E3), MONTH('Cdn. HSBC'!E3), 25)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-09-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Substract days from a date (Solved)

    Solved, thank you.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Substract days from a date (Solved)

    Another way..

    ='Cdn. HSBC'!E3-DAY('Cdn. HSBC'!E3)+25

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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