+ Reply to Thread
Results 1 to 4 of 4

Simplify data entry for rota

  1. #1
    Registered User
    Join Date
    10-03-2021
    Location
    Berlin
    MS-Off Ver
    latest
    Posts
    1

    Simplify data entry for rota

    Dear people out there,

    i need you help to write a rota for my employee.

    i will try it to explain as good as i can.

    we have four different time of shift:

    06:30 to 15:00
    09:00 to 17:30
    14:30 to 23:00
    22:30 to 07:00

    what i would like to do is that when i have to input the time instead of thyping "06:30" i could only tipe "1" and the system will understand that "1" means "06:30", "2" would mean "09:00" and so on.

    How could i do that?
    Last edited by 6StringJazzer; 10-03-2021 at 10:26 AM. Reason: more specific title

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

    Re: Simplify data entry for rota

    You could use a multiple-IF or a VLOOKUP formula, in conjunction with a small table. Attach a sample Excel workbook, as explained in the yellow banner at the top of the screen.

    Pete

  3. #3
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,974

    Re: Simplify data entry for rota

    Welcome to the forum.

    Which latest version of Excel do you have - Excel 2019 or MS365? Please update your forum profile accordingly. Thanks.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    If you want Excel to REPLACE these numbers with times, then you will need VBA. If you want the times to appear in an adjacent cell, then Pete's suggestion will work.
    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.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Simplify data entry for rota

    There is more than one way to do this. It depends on how you are going to use the shift times in the rest of your spreadsheet. Can you attach a sample file showing how you will record and use this data?

    First I would set up a lookup table with the shift times.

    One option is to enter 1 and everywhere that time is needed, interpret that as Shift 1 (06:30 - 15:00). Another is to have a column where you enter 1, then in the next column do a lookup to show 06:30 and in the next column do another lookup to show 15:00.

    In either case you could use data validation with a dropdown list to ensure that the user enters a valid number.

    Example:

    Values as displayed
    A
    B
    C
    D
    E
    F
    G
    1
    Lookup Table
    Data Entry
    2
    Shift
    Start
    End
    Shift
    Start
    End
    3
    1
    6:30
    15:00
    2
    9:00
    17:30
    4
    2
    9:00
    17:30
    5
    3
    14:30
    23:00
    6
    4
    22:30
    7:00
    Underlying formulas
    A
    B
    C
    D
    E
    F
    G
    1
    Lookup Table
    Data Entry
    2
    Shift
    Start
    End
    Shift
    Start
    End
    3
    1
    0.270833333333333
    0.625
    2
    =INDEX(B$3:B$6,$E3)
    =INDEX(C$3:C$6,$E3)
    4
    2
    0.375
    0.729166666666667
    5
    3
    0.604166666666667
    0.958333333333333
    6
    4
    0.9375
    0.291666666666667
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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] Excel Rota - Flagging when 6 shifts are set on rota in a row
    By Delta Foxtrot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2020, 05:55 AM
  2. Replies: 14
    Last Post: 05-23-2015, 06:26 AM
  3. Replies: 0
    Last Post: 04-07-2015, 11:39 PM
  4. Help with a rota
    By Paul381 in forum Excel General
    Replies: 1
    Last Post: 08-19-2014, 10:54 AM
  5. Rota Help
    By MikeFord in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-14-2012, 08:16 AM
  6. Rota
    By noviceben in forum Excel General
    Replies: 1
    Last Post: 04-03-2007, 03:45 PM
  7. Rota
    By chris.howes in forum Excel General
    Replies: 1
    Last Post: 07-24-2006, 07:35 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