当前位置:网站首页>办公软件系列 之excel应用4
办公软件系列 之excel应用4
2022-06-09 08:20:00 【琅晓琳】
1 介绍
接【办公软件系列 之excel应用1】博客中介绍的内容。
2 问题
这次是csv文件中时间格式的问题,示例如下:
我们还是想按照要求转化为通用数据格式:yyyy-mm-dd hh:mm:ss
3 步骤
采用标识符分隔的形式分别整到不同的单元格内,然后按照文本的拼接方法整到一块;如:
这里前面的日期有可能没有按照yyyy-mm-dd的格式,而是yyyy-m-d,这时可以做接下来的转化:
最后再将日期和时间拼成一个字符串形式。
4 函数
Text函数:根据指定的数值格式将数字转换为文本。
经过Text函数设置后的数字将转变为文本格式,而在【设置单元格格式】对话框中进行格式设置后单元格中的值仍为数字。
用法:TEXT(数据,格式代码)
使用案例:
(1)日期变为星期:
输入公式 =TEXT(A2,"aaaa")
(2)Excel工作表中的数值转换为百分数:
输入公式 =TEXT(A2,"0%")
(3)数值进行条件判断:
输入公式 =TEXT(A2,"[>=80]优秀;[>=60]及格;不及格")
(4)时间进行求和:
输入公式 =TEXT(SUM(A2:A30),"[h]:mm:ss")
(5)两个时间戳比较早晚:
输入公式 =TEXT(B2-A2,"[h]时m分")
条件函数:
单条件判断:=IF(判断条件,符合条件时返回真的值,不符合条件时返回假的值)
输入公式 =IF(A2>=60,"及格","不及格")
“且”的条件判断:
输入公式 =IF(AND(A2>85,B2>=80),"优秀","")
“或”的条件判断:
输入公式 =IF(OR(A2>85,B2>=80),"优秀","")
SUMIF函数:按指定条件求和
用法:=SUMIF(条件区域,指定的求和条件,求和的区域)
COUNTIF函数:统计符合条件的个数
用法:=COUNTIF(条件区域,指定的条件)
输入公式 =COUNTIF(A2:A30,">=60")
Choose()函数:
Choose()函数的功能是根据序号从参数列表中选择对应的数据。语法结构为:Choose(index_num,value1,[value2],……)
边栏推荐
- At time_ What happens to TCP connections in wait status after SYN is received?
- Market Research - current situation and future development trend of global and Chinese wall mounted extraction arm Market
- EDA开源仿真工具verilator入门1:安装和测试
- C语言复习12
- leetcodeSQL:1070. Product sales analysis III
- Clickhouse distributed table & local table & Clickhouse realize time series data management and mining
- Market Research - current situation and future development trend of global and Chinese dental zirconia materials market
- Twitter's latest feature lets businesses preview upcoming products and remind customers to go shopping
- It took so long for numpy to really use the ndarray object
- Special places of to documents of SAP WM 2-step picking
猜你喜欢

whatweb

自制编译器学习3:Flex和Bison简介

Summary of MySQL knowledge points

苹果胜诉 法官驳回iPhone安全欺诈集体诉讼

Redlock red lock security debate (Part 1)

【论文简介】CLIP:图像与自然语言配对预训练可迁移模型:Learning Transferable Visual Models From Natural Language Supervision

JVM architecture learning notes

The cumulative net worth of more than 1100 products fell below 0.8. Is the performance of private placement good this year?
![[paper introduction] clip: image and natural language pairing pre training transferable visual models from natural language supervision](/img/31/4b728c8f719d19fad798c0b55f4221.png)
[paper introduction] clip: image and natural language pairing pre training transferable visual models from natural language supervision
![[introduction to the paper] 2204 Vqgan-clip (open source):open domain image generation and editing with natural language guidance](/img/4b/009d09dd775cad943274ac7e825948.png)
[introduction to the paper] 2204 Vqgan-clip (open source):open domain image generation and editing with natural language guidance
随机推荐
English语法_地点副词
Market Research - current situation and future development trend of Brazil berry oil market in the world and China
Oracle partition table paging query SQL optimization
【论文简介】2204.VQGAN-CLIP(已开源):Open Domain Image Generation and Editing with Natural Language Guidance
Go questions / knowledge gathering - 2
xml-json-yaml 互轉
Market Research - current situation and future development trend of global and Chinese sunfish feed market
POI and COS realize excel file uploading and downloading
Do you really know tcp/ip
SQL or NoSQL, you will understand after reading this article
Market Research - current market situation and future development trend of polypropylene filter cloth in the world and China
P3954 [noip2017 popularization group] results
Elk cluster settings account password authentication
Nacos startup error [db load error]load jdbc properties error
whatweb
Market Research - current situation and future development trend of global and Chinese cosmetic grade 1,2-hexanediol Market
Nacos二次开发
Understand the difference between left join, right join and join
Blow up the idea artifact in use recently
ELK集群设置账号密码认证