当前位置:网站首页>Excel Advanced Drawing Skills 100 Lectures (23) - Countdown Counting in Excel
Excel Advanced Drawing Skills 100 Lectures (23) - Countdown Counting in Excel
2022-08-10 03:31:00 【Getullo Book】
As shown in the figure below, it is part of the vehicle transportation form of a courier company.Where column F is the planned arrival time, I hope to get the following effect in column G:
If the scheduled arrival time is earlier than the system time, the remaining time is displayed.
If the planned arrival time is later than the system time, the words "Timeout xx hours xx minutes" will be displayed.

To solve this problem, let's sort out our ideas first:
1. To get the current time of the system, you need to use the NOW function.
2. Use NOW() to subtract the time in column F to calculate the time difference.
3. With the help of the TEXT function, the positive number after subtraction is displayed as time, and the negative number after subtraction is displayed as "timeout xx hours xx minutes".
It looks simple, let's try it.
Enter the following formula in cell G2, drop down.
=TEXT(F2-NOW(),"h:mm:ss;timeout h:mm:ss")

The second parameter of the TEXT function uses two format codes. The h:mm:ss before the semicolon corresponds to the format of the positive number application, and h:mm:ss is "hour:minute:second".
The "timeout h:mm:ss" after the semicolon corresponds to the format of the negative number application, that is, the word "timeout" is added before the "hours, minutes and seconds".
However, starting from cell G3, the formula returns the wrong value. What's the reason?
By default, Excel does not support negative time or negative date, so when the time in column F is earlier than the current system time, the two are subtracted to a negative number, common
边栏推荐
猜你喜欢
随机推荐
Database management tool: dynamic read-write separation
2022.8.8 Exam area link (district) questions
ECCV 2022 Oral | CCPL: 一种通用的关联性保留损失函数实现通用风格迁移
Open3D 网格均匀采样
算法与语音对话方向面试题库
Redis - String|Hash|List|Set|Zset数据类型的基本操作和使用场景
2022.8.9 Exam arrangement and transformation--1200 questions solution
QT modal dialog and non-modal dialog learning
小菜鸟河北联通上岗培训随笔
浅写一个下拉刷新组件
官宣出自己的博客啦
2022年8月8日-2022年8月15日,ue4视频教程+插件源码()
Pycharm中6个常用插件推荐
实例043:作用域、类的方法与变量
数据库治理利器:动态读写分离
通关剑指 Offer——剑指 Offer II 012. 左右两边子数组的和相等
Write a drop-down refresh component
[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration
Algorithm and voice dialogue direction interview question bank
2022.8.8考试区域链接(district)题解









