In this article, we will discuss how to calculate TAT in hours in Excel, along with writing patterns using scripts. TAT, hours, Excel, scripts, calculation,

## Introduction

Time is of the essence in today’s fast-paced world. Businesses and organizations need to be quick and efficient in delivering their services to their clients. That’s where turnaround time (TAT) comes into play. TAT is the amount of time it takes to complete a task or a process. Calculating TAT in hours is crucial in many industries, including customer service, healthcare, logistics, and more. In this article, we will explore how to calculate TAT in hours in Excel, along with writing patterns using scripts.

## Step-by-Step Guide

### Step 1: Open Excel and Create a New Spreadsheet

The first step in calculating TAT in hours is to open Microsoft Excel and create a new spreadsheet. Enter the data you need to calculate TAT for, including the time and date of start and end.

### Step 2: Create a New Column and Label It as “Duration”

Once you have entered the data, create a new column beside the end time column and label it as “Duration.”

### Step 3: Calculate the Duration

In the first cell of the “Duration” column, type the formula “=B2-A2,” where “B2” and “A2” are the cells of the end and start time, respectively. This formula will calculate the duration of the task in decimal format.

### Step 4: Convert the Duration to Time Format

To convert the duration from decimal to time format, select the cell containing the duration and go to “Format Cells.” Under “Number,” select “Time” and choose the format you want to use.

### Step 5: Create a New Column and Label It as “TAT Hours”

To calculate the TAT in hours, create another column beside the “Duration” column and label it as “TAT Hours.”

### Step 6: Calculate the TAT in Hours

In the first cell of the “TAT Hours” column, type the formula “=HOUR(C2)+MINUTE(C2)/60,” where “C2” is the cell containing the duration in time format. This formula will calculate the TAT in hours.

### Step 7: Copy the Formula to the Rest of the Column

Copy the formula from the first cell of the “TAT Hours” column and paste it into the rest of the cells in the column.

### Step 8: Round the TAT in Hours

To round the TAT in hours to the nearest whole number, select the cells in the “TAT Hours” column and go to “Format Cells.” Under “Number,” select “Number” and under “Decimal Places,” select “0.”

### Step 9: Create a New Column and Label It as “TAT Minutes”

To calculate the TAT in minutes, create another column beside the “TAT Hours” column and label it as “TAT Minutes.”

### Step 10: Calculate the TAT in Minutes

In the first cell of the “TAT Minutes” column, type the formula “=C2*60,” where “C2” is the cell containing the duration in time format. This formula will calculate the TAT in minutes.

### Step 11: Copy the Formula to the Rest of the Column

Copy the formula from the first cell of the “TAT Minutes” column and paste it into the rest of the cells in the column.

### Step 12: Round the TAT in Minutes

To round the TAT in minutes to the nearest whole number, select the cells in the “TAT Minutes” column and go to “Format Cells.” Under “Number,” select “Number” and under “Decimal Places,” select “0.”

### Step 13: Create a New Column and Label It as “TAT Seconds”

To calculate the TAT in seconds, create another column beside the “TAT Minutes” column and label it as “TAT Seconds.”

### Step 14: Calculate the TAT in Seconds

In the first cell of the “TAT Seconds” column, type the formula “=C2*86400,” where “C2” is the cell containing the duration in time format. This formula will calculate the TAT in seconds.

### Step 15: Copy the Formula to the Rest of the Column

Copy the formula from the first cell of the “TAT Seconds” column and paste it into the rest of the cells in the column.

### Step 16: Round the TAT in Seconds

To round the TAT in seconds to the nearest whole number, select the cells in the “TAT Seconds” column and go to “Format Cells.” Under “Number,” select “Number” and under “Decimal Places,” select “0.”

### Step 17: Create a New Column and Label It as “TAT Milliseconds”

To calculate the TAT in milliseconds, create another column beside the “TAT Seconds” column and label it as “TAT Milliseconds.”

### Step 18: Calculate the TAT in Milliseconds

In the first cell of the “TAT Milliseconds” column, type the formula “=C2*86400000,” where “C2” is the cell containing the duration in time format. This formula will calculate the TAT in milliseconds.

### Step 19: Copy the Formula to the Rest of the Column

Copy the formula from the first cell of the “TAT Milliseconds” column and paste it into the rest of the cells in the column.

### Step 20: Round the TAT in Milliseconds

To round the TAT in milliseconds to the nearest whole number, select the cells in the “TAT Milliseconds” column and go to “Format Cells.” Under “Number,” select “Number” and under “Decimal Places,” select “0.”

## Conclusion

Calculating TAT in hours is crucial in various industries. With the help of Microsoft Excel and writing patterns using scripts, it is easy to calculate TAT in hours, minutes, seconds, and milliseconds. This step-by-step guide will help you calculate TAT accurately and efficiently, allowing you to deliver your services on time to your clients.