which returns the time portion of the value in B5, 1:00 PM. The MOD function returns the remainder from division. The first argument is the number and the second is the divisor. Here are a few examples: If you use MOD with a divisor of 1, the result will be the decimal part of the number, if any, because every whole number can be evenly divided by itself. For example: In short, =MOD(number,1) returns just the fractional part of a number, discarding the integer portion, so it’s a convenient way to extract time from a date. Note: if you use this formula to strip the time from a date + time, you’ll need to apply a suitable number format to display as time.

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.