+ Reply to Thread
Results 1 to 9 of 9

Interpolate and count days

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    Polska
    MS-Off Ver
    Excel 2013
    Posts
    17

    Interpolate and count days

    I have two columns. In A:A - days (2013-08-10), and in B:B - number of points gathered each of that days. See attachment.
    I need to make a formula in C:C which will tell me how many days (in decimal) did it take to get every 60 000 points.
    The dates in column A are midight times.

    howmanydays.xlsx

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Interpolate and count days

    Hi,

    I don't understand the logic behind some of your answers. For example, between 19/01/2013 and 20/01/2013 the cumulative total went from 152,093 to 183,675, i.e. a difference of 31,582, yet you have a "60,000" next to the value of 183,675 - can you explain? Similarly for 301,009.

    Also, it's not clear how you are arriving at anwers like "1.5 days". How did you determine "half a day" in these cases? What values would result in e.g. "1.75 days"? "1.0234417 days"?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Interpolate and count days

    Hi,

    Try this formula in row 2 somewhere (column F, for example):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope this helps

  4. #4
    Registered User
    Join Date
    07-01-2013
    Location
    Polska
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Interpolate and count days

    Quote Originally Posted by XOR LX View Post
    I don't understand the logic behind some of your answers. For example, between 19/01/2013 and 20/01/2013 the cumulative total went from 152,093 to 183,675, i.e. a difference of 31,582, yet you have a "60,000" next to the value of 183,675 - can you explain? Similarly for 301,009.
    Because on 2013-01-20 it went to 180 000 so the multiple of 60 000. And the day earlier it went through 120 000.
    Quote Originally Posted by XOR LX View Post
    Also, it's not clear how you are arriving at anwers like "1.5 days". How did you determine "half a day" in these cases? What values would result in e.g. "1.75 days"? "1.0234417 days"?
    Halves of the days are just examples withour proper counting.
    Let's say from 120 000 to 152 093 it took about "half" of 19th day, from 152 093 to 180 000 it took almost all 20th day. That's why I put 1,5 days. I know it is not exact.

  5. #5
    Registered User
    Join Date
    07-01-2013
    Location
    Polska
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Interpolate and count days

    Quote Originally Posted by ajryan88 View Post
    Hi,

    Try this formula in row 2 somewhere (column F, for example):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope this helps
    It almost works perfect but... I get cumulative answers. So it tells me the first 60 000 is 1,7 days and next 60 000 is 3,3 (it should be 3,3 - 1,7).
    Another question is: can we eliminate C column and rely only on B column (not cumulative)? I put C column just for explaining.

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Interpolate and count days

    That is strange, because I was not getting cumulative days...take a look at the attachment. We can definitely get rid of column C, I have adjusted the formula accordingly in the attachment too.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-01-2013
    Location
    Polska
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Interpolate and count days

    Yup. It does the job perfectly. Many thanks. Now I need to investigate through the formula and see what it does step by step

    BTW. The first formula didn't work correctly because I didn't notice there is range $G$1:G1. I should have put formula in column G.

    Thanks again. Reputation goes to you.
    Last edited by koboos; 08-21-2013 at 07:06 AM.

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Interpolate and count days

    Ah sorry I forgot that part when I suggested column F as an option.

    Thanks, and please don't forget to mark the thread as solved too

    Happy to help, have a great day!

  9. #9
    Registered User
    Join Date
    07-01-2013
    Location
    Polska
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: Interpolate and count days

    Can you explain me what does double dash (--) do?

    Nevermind. I googled it.
    Last edited by koboos; 08-21-2013 at 07:19 AM.

+ 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: 5
    Last Post: 05-06-2013, 08:44 PM
  2. Count of days (ex: Monday plus 2 days = 1 for Mon, Tues, Wed)
    By melissadolan2004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2013, 10:07 PM
  3. Replies: 5
    Last Post: 08-29-2012, 05:25 PM
  4. How to count # of days in a month from a list of days
    By vinnygamz in forum Excel General
    Replies: 3
    Last Post: 07-20-2009, 05:02 PM
  5. Calculating time elapsed in days and count days within same range
    By michellem410 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2008, 01:13 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