0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

12間表示(AM:PMつき)の時刻の差を求める

Last updated at Posted at 2021-07-03

最後は、別の人が答えた....
ヒントを与えたので後は自力でと思ったんですが、結局できなかったようですね。
これでは、いつまでたっても自分ではできんだろうなぁと思う。まぁいいか私じゃないし、人それぞれ。

しかし、この質問は結構ハードだったけど、また、回答しても理解してもらえない。

(((
IF(LEFT(TEXT(End_Time__c),2)="12", 0, VALUE(LEFT(TEXT( End_Time__c ),FIND(":", TEXT(End_Time__c ))-1)))+
IF(CONTAINS( TEXT(End_Time__c),"PM" ),12,0))
*60+VALUE(MID(TEXT(End_Time__c ),FIND(":", TEXT(End_Time__c ))+1,2)))
-
((
IF(LEFT(TEXT(Start_Time__c ),2)="12",0, VALUE(LEFT(TEXT( Start_Time__c  ),FIND(":", TEXT(Start_Time__c  ))-1)))+

IF(CONTAINS( TEXT(Start_Time__c ),"PM" ),12,0))


*60+VALUE(MID(TEXT(Start_Time__c  ),FIND(":", TEXT(Start_Time__c  ))+1,2))))/60

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?