+ Reply to Thread
Results 1 to 19 of 19

group values based on time slot & week day

  1. #1
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    group values based on time slot & week day

    Hi good after noon,

    i have train numbers and concerned time for all week days in my input sheet. I want to extract the data based on time slot & week day mentioned in the output sheet format.
    I have attached sample workbook for your kind reference. kindly help me get the result.
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: group values based on time slot & week day

    Are you still using Excel 2013?

    If you want to check your current version, please click in Excel on your account name (top right) and office user info.
    The three most rectent versions are 365, 2021 and 2019.

  3. #3
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi Hans,
    I am still using 2013 only..

  4. #4
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi, i am exciting to see your formulas

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: group values based on time slot & week day

    Its a little bit difficult for Excel 2013. I want to try this later.
    May be another member is faster.

  6. #6
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2404-17531.20128
    Posts
    1,378

    Re: group values based on time slot & week day

    I can't offer a formula solution but below is a VBA solution:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If things don't change they stay the same

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: group values based on time slot & week day

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    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.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    However, if you continue to crosspost, you can expect to have your thread BLOCKED until you update it yourself.

    crossposted at: https://www.mrexcel.com/board/thread...k-day.1240315/
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  8. #8
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi sorry,
    i can't response due to out of station.
    I agree that i have posted the same question in another forum, due to emergency to getting results. But i don't know its offence in our forum.
    I will follow the rules and thanks for advising me.

  9. #9
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi cheese,

    Thank you for your valuable codes, that working perfectly. Still i want to add some features in this chart. shall i continue this thread or need to mark solved and create new thread?

  10. #10
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2404-17531.20128
    Posts
    1,378

    Re: group values based on time slot & week day

    You are welcome,

    If it a very similar request/ adjustment then you can continue here. If it quite diffrent from the title of the thread then you may be better with a new thread.

    It is always best to include all of what you want in the original post if possible, but i do understand that things are not always thought of until you see what you originally wanted.

  11. #11
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi cheese,

    I have updated train platform details in the attached chart and need required results in two sheets. (i.e output 1 & output 2) kindly advise..
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,682

    Re: group values based on time slot & week day

    For the Output 1 sheet:
    1. For the PF columns:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. For the Number and Time columns:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi sorry for the delay.... I have went for out of station work.
    I am getting error in VB and attached for your reference.
    Attached Images Attached Images

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,417

    Re: group values based on time slot & week day

    In the attached please find a formula solution.

    In Output 1A1 a drop down referencing R2:R8 for data validation.

    In A5 this formula copied and pasted into C5, E5, G5, I5 & K5. I believe that in Excel 2013 it will spill the rest of the column.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then this in B5 copied and pasted to D5, F5, H5, J5 & M5. Fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 07-27-2023 at 05:09 PM.
    Dave

  15. #15
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi flame,

    I have updated my sample worksheet on 07-13-2023, 05:58 PM. pls workout on this data to achieve the results.

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,682

    Re: group values based on time slot & week day

    I am not well versed in VBA so I am not sure but it may be that the error encountered in post #13 is due to the extra PF columns that were added to the file in post #11.
    Here is the file from post #6 with the formulas from post #12 applied.
    I feel that if the macro runs in this file that it may be possible to for someone to modify the code in post #6 to work with the file in post #12.
    Let us know if you have any questions.
    Attached Files Attached Files

  17. #17
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2404-17531.20128
    Posts
    1,378

    Re: group values based on time slot & week day

    Below is the updated code for tab "OUTPUT 1" based of the file in post 11

    Please Login or Register  to view this content.

  18. #18
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    125

    Re: group values based on time slot & week day

    Hi cheese...
    Working fine. Thanks for your valuable formula...
    I am waiting for Output 2

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,682

    Re: group values based on time slot & week day

    This proposal adds a column (H) which may be moved and/or hidden for aesthetic purposes.
    Column H is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Cells A3:G32 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

+ 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] Solve with dynamic range formula to Calculate Percentage Payments Over Moving 3 Week Slot
    By novihermawan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2022, 11:34 PM
  2. Replies: 5
    Last Post: 05-29-2021, 03:04 AM
  3. How can I formulate my Entry Time Raw Data within a specific Time Slot Range
    By variantquery91 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-26-2019, 04:28 AM
  4. ccount based on text and a time slot
    By pmw19800 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2018, 09:09 AM
  5. [SOLVED] check a date and return different values based on time and day of week
    By garyfahy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-22-2014, 07:26 AM
  6. [SOLVED] Calculating longest waiting time at given time slot
    By dvs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2013, 06:20 PM
  7. Replies: 1
    Last Post: 03-28-2012, 12:11 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