题目
Excel2003里这样的时间如何转换?9/28/2010 12:43:50 PM转换成09/29/2010 00:43:50
有如下两点注意:1,格式 9/5/2010 10:30:06 PM要求变为09/05/2010 22:30
2,9/28/2010 12:43:50 PM转换后应是09/29/2010 00:43:50
如下公式:
=LEFT(A1,FIND(" ",A1))&IF(RIGHT(A1,2)="PM",TEXT(MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1)+12/24,"hh:mm:ss"),MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1))有缺陷,但我不会改,
9/28/2010 12:43:50 PM转换后是9/28/2010 00:43:50这是不对的
有如下两点注意:1,格式 9/5/2010 10:30:06 PM要求变为09/05/2010 22:30
2,9/28/2010 12:43:50 PM转换后应是09/29/2010 00:43:50
如下公式:
=LEFT(A1,FIND(" ",A1))&IF(RIGHT(A1,2)="PM",TEXT(MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1)+12/24,"hh:mm:ss"),MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1))有缺陷,但我不会改,
9/28/2010 12:43:50 PM转换后是9/28/2010 00:43:50这是不对的
提问时间:2020-11-09
答案
=IF(LEN(LEFT(A1,FIND("/",A1)))=2,"0"&LEFT(A1,FIND("/",A1)),LEFT(A1,FIND("/",A1)))&IF(MID(A1,FIND("/",A1)+2,1)="/","0"&MID(A1,FIND("/",A1)+1,2),MID(A1,FIND("/",A1)+1,3))&MID(A1,FIND(" ",A1)-4,5)&IF(RIGHT(A1,2)="PM",TEXT(MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1)+12/24,"hh:mm:ss"),MID(A1,FIND(" ",A1)+1,FIND(" ",A1,FIND(" ",A1)+1)-FIND(" ",A1)-1))
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1已知点P是边长为4的正方形内任一点,则P到四个顶点的距离均大于2的概率是( ) A.4-π4 B.14 C.3-π4 D.18
- 2x>0时,求函数y=(根号2乘x)/(2+x平方)
- 3art的读音跟ear、where一样吗?也可以问art、ear、where的读音一样吗
- 4Mg(OH)2和Al(OH)3沉淀分离原理
- 5We _____a meeting form 2 to 4 yesterday afternoon A had had Bwould have C were having D had
- 6you look the same.和you are look the same.这两句中哪句是对的.
- 7比较级than的用法中省略
- 8英语翻译
- 9很遗憾用英语怎么说
- 10线段AB上有两点P.Q,点P将AB分成两部分,AP:PB=2:3;点Q将AB分成两部分,AQ:QN=4:1;且
热门考点
- 1(x2-5x)(x2-5x-2)-24分解因式
- 2I like green tea and orange juice (改否定句)
- 3Friday,Saturday,Sunday,week,park这些英语单词怎么解释
- 4棉花纤维可以用做造纸
- 5He likes dogs because they are____friendly A a kind of B kind of C a kind D kind选几哦
- 6甲数除以已数,商4余3.被除数,除数,商相加的和是37.甲数······
- 7我国淡水资源的总量约为多少立方米
- 8求一道数学方程组的解
- 9It is silly _____you _____forgive others for their faults A of ,don not B for, not to C of,never to
- 10概率统计问题,麻烦解释下为什么P(A-B)=P(A-AB)=P(A)-P(AB)呢?