How to Subtract Military Time in Excel: 3 Suitable Ways

Method 1 – Apply Subtraction for Subtracting Military Time in Excel

Step 1:

  • Select cell E5 to subtract military time.

Apply Subtraction to Subtract Military Time in Excel

  • Use the following formula in the Formula Bar. The formula is,
=D5-C5
  • D5 is the ending time, and C5 is the starting time of duties of the employees.

Apply Subtraction to Subtract Military Time in Excel

  • Press Enter on your keyboard, and you will get 7:00 AM as the return of the subtraction formula.

Apply Subtraction to Subtract Military Time in Excel

Step 2:

  • Auto Fill the subtract formula to the entire column, and you will get the output of the subtract formula that has been given in the screenshot below.

Step 3:

Look at our dataset; the formula returns military time with AM. We will convert these times into military time.

  • From your Home tab, go to Number → More Number Formats

  • After clicking on the More Number Formats option, a window named Format Cells will appear in front of you.
  • From the Format Cells window, select Number.
  • Select Time from the Category and select 37:30:55 from the Type box.
  • Press OK.

  • You will get the military time of the employees.

Apply Subtraction to Subtract Military Time in Excel


Method 2 – Use the MOD Function for Subtracting Military Time in Excel

Step 1:

  • Select cell E5 to apply the MOD function.

Use the MOD Function to Subtract Military Time in Excel

  • Type the MOD function in the Formula Bar. The formula is,
=MOD(D5-C5,1)
  • Where D5-C5 is the time difference, and 1 is the divisor.

Use the MOD Function to Subtract Military Time in Excel

  • Press Enter on your keyboard, and you will get 7:00:00 as the return of the MOD function in cell E5.

Use the MOD Function to Subtract Military Time in Excel

Step 2:

  • Place your cursor on the bottom-right of cell E5, and an AutoFill sign will pop up.

  • Drag the AutoFill sign down, and you will get your desired output.

Use the MOD Function to Subtract Military Time in Excel


Method 3 – Perform the Custom Format Command for Subtracting Military Time in Excel

Step 1:

  • Select cells from E5 to E14, then press Ctrl + C on your keyboard.

Perform the Custom Format Command to Subtract Military Time in Excel

  • Select cell F5, right-click on it, and select Values from Paste Options.

  • After pasting the values in column F from column E, you will get fraction values.

Perform the Custom Format Command to Subtract Military Time in Excel

Step 2:

  • Convert the fraction into military time. Right-click and select Format Cells.

  • A window named Format Cells will instantly pop up.
  • From the Format Cells window, select Number.
  • Select Custom from the Category and select “hhmm” from the Type box.
  • Press OK.

Perform the Custom Format Command to Subtract Military Time in Excel

Here’s the result.

Perform the Custom Format Command to Subtract Military Time in Excel


Things to Remember

You can press Ctrl + 1 simultaneously to pop up the Format Cells window instead of the Home ribbon.


Download the Practice Workbook


Related Articles


<< Go Back to Subtract Time | Calculate Time | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdur Rahim Rasel
Md. Abdur Rahim Rasel

MD. ABDUR RAHIM is a marine engineer proficient in Excel and passionate about programming with VBA. He views programming as an efficient means to save time while managing data, handling files, and engaging with the internet. His interests extend to Rhino3D, Maxsurf C++, AutoCAD, Deep Neural Networks, and Machine Learning, reflecting his versatile skill set. He earned a B.Sc in Naval Architecture & Marine Engineering from BUET, and now he has become a content developer, creating technical content... Read Full Bio

2 Comments
  1. If you are going to do military time don’t use AM / PM, did not help my issue of getting ###### in the calculation field.

  2. Reply Avatar photo
    Md. Abdur Rahim Rasel Aug 29, 2022 at 9:10 AM

    Hello MARK,
    To solve your ###### issue in the calculation field simply AutoFit the column width. You can AutoFit the column width like below screenshot.

    Thank you for your comment.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo