+ Reply to Thread
Results 1 to 6 of 6

Which timing is more sale is happened with category -- Need Formula

  1. #1
    Registered User
    Join Date
    05-30-2020
    Location
    India
    MS-Off Ver
    2010
    Posts
    39

    Which timing is more sale is happened with category -- Need Formula

    Hi Friends,

    I need which timing is more sale is happened. So, I split timing in below categories. Could you please help me to find out the details.

    Time Period
    6 am to 9 am
    9.01 am to 12 pm
    12.01 pm to 3 pm
    3.01 pm to 6 pm
    6.01 pm to 9 pm
    9.01 pm to 12 pm

    Example
    Date format Answer (Need formula)
    1/1/20 7:03 AM - 6 am to 9 am
    1/1/20 11:09 AM - 9.01 am to 12 pm
    1/1/20 1:10 PM - 12.01 pm to 3 pm
    1/1/20 3:43 PM - 3.01 pm to 6 pm
    1/1/20 6:49 PM - 6.01 pm to 9 pm
    1/1/20 11:45 PM - 9.01 pm to 12 pm
    Last edited by Sekar G; 06-29-2020 at 09:54 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,383

    Re: Time Period

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-30-2020
    Location
    India
    MS-Off Ver
    2010
    Posts
    39

    Re: Time Period

    Thanks. Now I changed the title.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,383

    Re: Which timing is more sale is happened with category -- Need Formula

    Thanks,

    With a simple lookup table and a VLOOKUP:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    1
    Date format Time Period
    2
    01/01/2020 07:03
    6 am to 9 am
    06:00:00
    6 am to 9 am
    3
    01/01/2020 11:09
    9.01 am to 12 pm
    09:00:01
    9.01 am to 12 pm
    4
    01/01/2020 13:10
    12.01 pm to 3 pm
    12:00:01
    12.01 pm to 3 pm
    5
    01/01/2020 15:43
    3.01 pm to 6 pm
    15:00:01
    3.01 pm to 6 pm
    6
    01/01/2020 18:49
    6.01 pm to 9 pm
    18:00:01
    6.01 pm to 9 pm
    7
    01/01/2020 23:45
    9.01 pm to 12 pm
    21:00:01
    9.01 pm to 12 pm
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    B
    2
    =VLOOKUP(A2-INT(A2),$E$2:$F$7,2,1)
    Sheet: Sheet1
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-30-2020
    Location
    India
    MS-Off Ver
    2010
    Posts
    39

    Smile Re: Which timing is more sale is happened with category -- Need Formula

    Thank you very much. This is working fine.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,383

    Re: Which timing is more sale is happened with category -- Need Formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Macro to find the Earliest Start Time and Latest Finish Time during a period
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2018, 06:40 AM
  2. [SOLVED] Formula/method to sort by specific time period within date+time ranges in cell
    By mikeskins84 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-13-2018, 01:12 PM
  3. [SOLVED] Calculate the portion of a planned number during a period, based on another time period
    By BryGuy81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2017, 01:29 PM
  4. Replies: 2
    Last Post: 02-03-2017, 07:39 AM
  5. Replies: 0
    Last Post: 07-25-2013, 10:03 AM
  6. [SOLVED] Complicated:Calculate time period based on no. of units sold + fluctuations within period
    By omaha.crab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 03:04 AM
  7. Replies: 2
    Last Post: 04-27-2011, 08:21 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