+ Reply to Thread
Results 1 to 12 of 12

Best profit hour

  1. #1
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    Best profit hour

    I want to calculate which is the most profitable hour in the day across our business.

    I have a table see attached That breaks down the profit per hour from 8 till 9pm.

    One thing we need to ignore the first hour in the day as it is not a full hour and not reflective of the day

    I want a new column which shows the daily highest hour profit and the hour in the next column ie £6750 11.00am

    I have attached a image also hope this helps to explain

    Thank you

    PS I have this posted here also http://www.ozgrid.com/forum/showthread.php?t=184192
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by censura; 11-18-2013 at 01:16 PM.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Best profit hour

    Take a look at this.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Best profit hour

    write your wish date at D2, and put this formula at E2 for Best Profit
    =MAX(IF(AND((DATE(YEAR(A2:A1738,MONTH(A2:A1738),DAY(A2:A1738))=D2),HOUR(A2:A1738)<>8),B2:B1738))

    Put this at F2 for Hour
    =SUMPRODUCT((DATE(YEAR(A2:A1738),MONTH(A2:A1738),DAY(A2:A1738))=D2)*(B2:B1738=E2)*(HOUR(A2:A1738)))
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  4. #4
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    Re: Best profit hour

    Thank you both for your help.

    In solution 1 which works but does not consider the exclusion of the 8.00 hour argument

    In solution 2 I got a error too many arguments (could you possible edit my spread sheet with your formula)

    Lots of thanks for your help

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Best profit hour

    Remove first all 8:00 rows.
    And what about the hours of 20 jun 1:00 -4:00 (rows 1200-1204)?

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Best profit hour

    See attached file.

    The dates are generated automatically, but three give no sales - presumably bank holidays?

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Best profit hour

    Hi, censura,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.ozgrid.com/forum/showthread.php?t=184192

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  8. #8
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    Re: Best profit hour

    Hi thank you for your efforts wanted to refine things further to minutes , i tried to change one of the paramaters from >--"08:00:01" 08:05:01 to ignore first 5 min but got lots of 0's in the H column

    hope you can help

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Best profit hour

    Change the formula in H2 to this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that this is an array formula, so you must commit it using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>. If you do this correctly then you will see curly braces { } around the formula when viewed in the formula bar, but you should not type these yourself. If you need to amend the formula again, you will have to use CSE again to commit it. The formula in the cell can be copied to other cells in the normal way(s).

    Hope this helps.

    Pete

  10. #10
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    Re: Best profit hour

    Hi sorry about this, i tried to paste some new data in but for some reason it throws a load of errors , can you see what the problem is . Thank you
    Attached Files Attached Files

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Best profit hour

    Your date/times have come in as text values rather than proper date/times. To rectify this, select all the data from cell A2 downwards, then click on the Data tab, and then on Text-to-columns - a dialogue box will pop up, just click Finish and all will be fine again.

    Hope this helps.

    Pete

    P.S. You don't need to keep using PMs - just post in the thread and I will get an email notification.

  12. #12
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    Re: Best profit hour

    ok sorry thanks

+ 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] Formula to convert 24 hour day to 8 hour (working) day?
    By miro2021 in forum Excel General
    Replies: 4
    Last Post: 07-31-2017, 10:06 AM
  2. 1. consecutive days of profit and of losses 2. biggest profit loss since date
    By xbohemianx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2013, 12:57 PM
  3. How do I? Hour by Hour Occurrences between a Date Range?
    By lesoies in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 09:01 PM
  4. Find hour in a range of hour values
    By mqdias in forum Excel General
    Replies: 2
    Last Post: 04-11-2011, 05:06 AM
  5. convert decimal numbers to a fraction of an hour for payroll hour
    By Flower in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2006, 03:50 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