+ Reply to Thread
Results 1 to 8 of 8

Use time series in formula

  1. #1
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Question Use time series in formula

    Hi,

    I have a total that I would like to disperse thru the day via the time.

    Total sales yesterday were 2K the store was open from 8AM-4PM.

    What we would like to know is: if its 11:50, what our sales were @ yesterday this time. [0.4870]
    So I divide the total by the time I want to know H or M & that gives me a breakdown, but I am hung-up on how I can use the current time as my integer.

    I know that my start time in Excel time is: 0.333333333 [8AM] Finish time is: 0.666666667 [4PM] & the range from 8-4 is 0.333333333.

    I cant for the life of me tie this together. Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Use time series in formula

    =(NOW()-TODAY()-"8:00")/("8:00")*B2

    with the total sales in cell B2.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Use time series in formula

    Thanks for the quick response Bernie.

    I tried your formula & its close, but it gives me a value that is a little to big. I am making a sample workbook right now, I appreciate your help & dont want to waste your time.

  4. #4
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Use time series in formula

    Heres a sample workbook thx again for the help.
    Sample Time.xlsx

  5. #5
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Use time series in formula

    It works fine I had 8-5 in my spread sheet instead of 8-4.

    How would I modify this for a shorter time frame 4 hrs or an odd time 5.5 hrs?

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Use time series in formula

    The general formula is

    =(NOW()-TODAY()-StartTime)/(FinishTime-Startime)*Value

    Like so:

    =(NOW()-TODAY()-"8:00")/("16:00"-"8:00")*B2

  7. #7
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Use time series in formula

    Thank a million I have been struggling for days on this. I already gave you a rep point & now I am gonna mark this solved.

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Use time series in formula

    Great - glad to hear it works the way you want.

+ 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: 2
    Last Post: 04-10-2013, 11:17 AM
  2. Replies: 2
    Last Post: 12-13-2010, 01:39 PM
  3. Collating different series to one time series
    By envex in forum Excel General
    Replies: 4
    Last Post: 10-25-2010, 04:49 AM
  4. How to use formula to exclude time series.
    By graphicwizard28 in forum Excel General
    Replies: 1
    Last Post: 05-09-2010, 12:57 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