logo
search
Function Problems

How to Automatically Populate Excel Time Slots from Another Sheet

Algirdas JasaitisAlgirdas Jasaitis Sep 30, 2026 868 views

Question details

The user wants to automatically generate 15-minute time intervals between a specific start and end time, based on a selected person's schedule stored on a different worksheet.

How to Automatically Populate Excel Time Slots from Another Sheet
Product
Excel
Device & OS
not provided
Scenario
Building an automated scheduling workbook where selecting a client or employee name retrieves their start and end times from a master schedule and fills the adjacent cells with a range of 15-minute availability slots.
Observed behavior
Currently, the user is looking for a functional way to use two retrieved cells (start and end times) to automatically expand and populate the available time range into a continuous grid of slots.
Before you start

Ensure both your source schedule sheet and the target sheet have their time-related cells formatted uniformly using standard Time formats (e.g., h:mm AM/PM) to prevent calculation errors when generating the intervals.

Solution 1Recommended

Use Dynamic Array Formulas to Generate Time Slots

The most efficient way to generate 15-minute intervals is by combining lookup functions like XLOOKUP with the SEQUENCE function to dynamically spill the results.

Dynamic array formulas allow a single function to return multiple values into adjacent cells automatically. By looking up the start and end times, you can calculate the exact number of 15-minute slots required and use SEQUENCE to list them out.

1
Look up start and end times

In your target sheet, use the XLOOKUP or VLOOKUP function to find the selected person's name and retrieve their specific start and end times from the master schedule sheet.

2
Calculate the number of intervals

Subtract the retrieved start time from the end time. Multiply the result by 24 (hours) and then by 60 (minutes), and divide by 15 to determine the total number of 15-minute rows needed.

3
Enter the SEQUENCE formula

In the cell where the time slots should begin, type a formula similar to =SEQUENCE(total_intervals, 1, start_time, TIME(0,15,0)). This instructs Excel to start at the lookup time and add 15 minutes per row.

4
Apply Time formatting

Select the cells that the formula populates. Go to the Home tab, click the Number Format dropdown, and select 'Time' (or press Ctrl+Shift+@) so the results display as readable hours and minutes.

Use Dynamic Array Formulas to Generate Time Slots
Compatibility Note: The SEQUENCE function is a dynamic array feature available in Microsoft 365 and Excel 2021 or newer versions.

Create Automated Schedules Easily with WPS Spreadsheet

WPS Spreadsheet fully supports advanced dynamic array formulas and functions like XLOOKUP, allowing you to instantly generate 15-minute time slots from another sheet with zero hassle and perfect precision.

  1. 1. Open your schedule: Launch WPS Spreadsheet and open the scheduling workbook containing your master timesheet.
  2. 2. Select the target cell: Click on the cell in your daily view sheet where you want the 15-minute intervals to begin populating.
  3. 3. Enter the dynamic formula: Input your combined SEQUENCE and XLOOKUP formula to fetch the start time and generate the 15-minute increments using TIME(0,15,0).
  4. 4. Watch the slots spill: Press Enter, and WPS Spreadsheet will automatically spill the accurately calculated time slots into the adjacent cells downwards.
Fully compatible with Microsoft Excel (.xlsx) formats and complex scheduling formulas.Native support for dynamic arrays like SEQUENCE to instantly generate time slots.Lightweight, lightning-fast software with a familiar tabbed interface.Free to use for everyday scheduling, data lookups, and spreadsheet automation tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why are my generated time slots showing as strange decimal numbers?

Spreadsheet software stores time as a fraction of a 24-hour day (e.g., 12:00 PM is 0.5). To fix this, highlight the populated cells, right-click to choose 'Format Cells', and apply a 'Time' format so they display correctly.

Can I change the time intervals from 15 minutes to 30 minutes?

Yes. If you are using the SEQUENCE formula, simply change the fourth argument (the step value) from TIME(0,15,0) to TIME(0,30,0) to generate half-hour slots instead.

What if the person's schedule crosses midnight?

When calculating time intervals that cross midnight, the end time is mathematically smaller than the start time. You must add 1 to the end time before subtracting the start time (e.g., (End_Time + 1) - Start_Time) so the formula recognizes the time belongs to the next day.

Why is my SEQUENCE formula returning a #SPILL! error?

A #SPILL! error occurs when there is existing text, data, or formatting blocking the cells where the dynamic array needs to place the generated time slots. Clear the cells directly below your formula to allow the intervals to populate.