+ Reply to Thread
Results 1 to 9 of 9

date calculation

  1. #1
    Registered User
    Join Date
    06-09-2013
    Location
    lebanon
    MS-Off Ver
    Excel 2007
    Posts
    95

    date calculation

    hello everyone,

    i have finally managed to create the perfect inventory manager with just one setback which is the using date to identify how many days have passed
    i'v uploaded the excel workbook for calculation if someone wants to see it, its in sheet2 which is named "daily use"


    i have the following formula in E5
    HTML Code: 
    , it will always show the today date and will update itself everyday.

    and everytime i request an item im writing down the order date by just simply typing the date or hitting the control ; button.

    now i know if i deduct the normal hand written date ( which stays the same ) out of the =today() date ( which updates itself everyday ), the next day the answer should be 1, but in a table its not that simple its giving a whole bunch other numbers and dates, can it be turned into one digit ?

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: date calculation

    This is a duplicate post.

    http://www.excelforum.com/excel-prog...lculation.html

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: date calculation

    You could have just added your file to the 1st thread, instead of starting a new thread. I will close the 1st 1, you can continue on this thread, seeing as this 1 has the file.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: date calculation

    Where are you trying to do this? If you are using TODAY() in a calc, then today's date will always be used

  5. #5
    Registered User
    Join Date
    06-09-2013
    Location
    lebanon
    MS-Off Ver
    Excel 2007
    Posts
    95

    Re: date calculation

    the formula "=today()" is in sheet2 which is named "daily use" in cell E5, and in column G im trying to deduct column E out of E5, so in column G i can have the number of the days which have passed the next and the day after, as the days pass E5 will change and show the current day and column E dates wont change therefore i will have column G numbers adding up everyday by 1

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: date calculation

    Use this, formatted as general...
    =IF(E8="","",$E$5-E8)

  7. #7
    Registered User
    Join Date
    06-09-2013
    Location
    lebanon
    MS-Off Ver
    Excel 2007
    Posts
    95

    Re: date calculation

    thanks for the help and creative answer, well, its calculating correct, im sorry i just realised as it turns out the table is the problem, its giving me 00-01-00 instead of just a single digit answer, if its not in a table it is saying 0 but in table 00-01-00 is there a way around this ? however thanks for the answer which u have provided me with its quiet helpful.
    Last edited by raffi123; 12-23-2013 at 07:44 PM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: date calculation

    That is because it defaults to date format....1 day into 1900. Like I said, you need to format the cell/s as general

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: date calculation

    Happy to help and thanks for 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. [SOLVED] If Statement with today's date minus due date for a delay calculation
    By RDFUC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 02:58 PM
  2. [SOLVED] Need Calculation - If A1=Annual, Anniv. Date for Current Year, else Biennial Date
    By TaxAnnihilator in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2013, 06:06 PM
  3. Replies: 4
    Last Post: 06-02-2012, 11:26 AM
  4. Replies: 1
    Last Post: 04-18-2012, 05:49 PM
  5. [SOLVED] subtract a delivery date:Date Calculation to exclude weekends
    By Vim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2006, 11:00 AM

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