+ Reply to Thread
Results 1 to 3 of 3

Can anyone tell me what this formula is calculating?

  1. #1
    Registered User
    Join Date
    03-23-2016
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS 2010
    Posts
    2

    Can anyone tell me what this formula is calculating?

    Can you tell me what the denominator of this equation is calculating. Specifically the section of the formula that says (1899,12,31)+(0*7+IF(B2>60,B2-1,B2))),

    The column is labeled change per day.

    =(B5/((DATEDIF((DATE(1899,12,31)+(0*7+IF(B2>60,B2-1,B2))),TODAY(),"D"))))

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Can anyone tell me what this formula is calculating?

    I'm not sure why it has the 0*7 part in there as that will always calculate to 0. What it is doing is calculating the date that is the number of days shown in cell B2 after 31 December 1899, unless B2 is more than 60 days in which case it is calculating the date that is one day earlier than the number of days shown in cell B2 after 31 December 1899. It is then comparing that calculated date to today's date and working out the number of days between those two dates. It is then dividing cell B5 by that number of days.

    Why it is doing this though is impossible to say without context.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Registered User
    Join Date
    03-23-2016
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS 2010
    Posts
    2

    Re: Can anyone tell me what this formula is calculating?

    I am confused as well by the 0*7 in the formula....since this will always be equal to 0

    The context of the spreadsheet is as follows:
    The spreadsheet is calculating the weight the baby has lost in the spreadsheet.
    B5 = weight the child has lost in the past 7 days.
    B2 = date the child was first weighed.

    I can't understand why the formula is calculating how many days the date in B2 is after 31 December 1899.....what is that about?
    Isn't there an easier way to calculate the difference between the date in B2 and today?

    Wouldn't the following formula work:
    DATEDIF(B2, TODAY(), "d")
    Last edited by antoszewskim; 03-23-2016 at 10:34 PM.

+ 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: 0
    Last Post: 10-14-2015, 03:10 AM
  2. [SOLVED] Calculating From One Formula to Another
    By BJBattousai in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2015, 10:01 AM
  3. Replies: 1
    Last Post: 01-27-2013, 11:05 AM
  4. Formula for calculating value at set %
    By Jamboni in forum Excel General
    Replies: 6
    Last Post: 03-12-2012, 09:28 AM
  5. I am looking for a formula for calculating APY on CDs.
    By notabitsurprised in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. [SOLVED] I am looking for a formula for calculating APY on CDs.
    By notabitsurprised in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. [SOLVED] I am looking for a formula for calculating APY on CDs.
    By notabitsurprised in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2005, 12:05 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