+ Reply to Thread
Results 1 to 4 of 4

Hourly Sales Formula

  1. #1
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Hourly Sales Formula

    Hi all,

    can anyone help me work out how many sales per a hour my team are doing?

    the sales per hour figure needs to appear in Q3

    K3 = how many sales they done
    C3 = how many hours they have worked in the HH:MM:SS format

    K3 = 3 (total sales done)
    C3 = 07:30:00 (total hours worked)
    03 = display the amount of sales per hour

    appreciate your help guys

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,743

    Re: Hourly Sales Formula

    you need to change the time to decimal use
    =INT(C3)*24+HOUR(C3)+ROUND(MINUTE(C3)/60,2)

    SO
    K3 / (INT(C3)*24+HOUR(C3)+ROUND(MINUTE(C3)/60,2))

  3. #3
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: Hourly Sales Formula

    Quote Originally Posted by etaf View Post
    you need to change the time to decimal use
    =INT(C3)*24+HOUR(C3)+ROUND(MINUTE(C3)/60,2)

    SO
    K3 / (INT(C3)*24+HOUR(C3)+ROUND(MINUTE(C3)/60,2))

    thanks for this mate works and does the job really appreciate this :-)

    how do i stop the 2nd one from erroring?

    =K3/(INT(C3)*24+HOUR(C3)+ROUND(MINUTE(C3)/60,2))[/QUOTE]

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,743

    Re: Hourly Sales Formula

    whats the error ?

    #Value - if you have formulas in the cell C3 and not a time ?
    #DIV/0! if you have zero or blank for the K3 and no time

    =IFERROR(K3/(INT(C3)*24+HOUR(C3)+ROUND(MINUTE(C3)/60,2)),"") will show a blank for those errors
    The following error types are evaluated: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.

+ 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