<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>時間 - プログラミングで遊ブログ</title>
	<atom:link href="https://lemon818.com/tag/%e6%99%82%e9%96%93/feed/" rel="self" type="application/rss+xml" />
	<link>https://lemon818.com</link>
	<description>現役システムエンジニアが趣味でプログラミングする自由気ままなブログ</description>
	<lastBuildDate>Mon, 23 May 2022 14:49:38 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>	<item>
		<title>【マイクラ】ザ・ワールド！コマンドで時間を止める方法・Mod不要！</title>
		<link>https://lemon818.com/minecraft_the_world/</link>
		
		<dc:creator><![CDATA[Take]]></dc:creator>
		<pubDate>Fri, 13 May 2022 08:16:20 +0000</pubDate>
				<category><![CDATA[minecraft]]></category>
		<category><![CDATA[DIO]]></category>
		<category><![CDATA[ザワールド]]></category>
		<category><![CDATA[ジョジョ]]></category>
		<category><![CDATA[ジョジョの奇妙な冒険]]></category>
		<category><![CDATA[マイクラ]]></category>
		<category><![CDATA[マインクラフト]]></category>
		<category><![CDATA[世界]]></category>
		<category><![CDATA[停止]]></category>
		<category><![CDATA[固定]]></category>
		<category><![CDATA[時間]]></category>
		<category><![CDATA[空条承太郎]]></category>
		<guid isPermaLink="false">https://lemon818.com/?p=6132</guid>

					<description><![CDATA[Minecraftt でジョジョの奇妙な冒険「DIO」「承太郎」のザ・ワールドがしたい！！！ &#160; どーも、お久しぶりです。Takeです。久々の投稿です。 &#160; この記事で Minecraft で Mod…]]></description>
										<content:encoded><![CDATA[<div class="sc_frame_wrap solid yellow">
<div class="sc_frame "><span style="color: #000000;"><b>Minecraftt でジョジョの奇妙な冒険「DIO」「</b></span><span style="color: #000000;"><b>承太郎」のザ・ワールドがしたい！！！</b></span></div>
</div>
<p>&nbsp;</p>
<p>どーも、お久しぶりです。Takeです。久々の投稿です。</p>
<p>&nbsp;</p>
<p>この記事で<strong> <span style="color: #3366ff;">Minecraft で Mod なし・コマンドだけで時間停止する方法</span></strong>について記述します。</p>
<p>ちょっと難しいかもしれませんが、この記事通りにやれば下記動画みたいに時間停止できます。</p>
<p>★★★ショート動画ですので是非見てください！★★★</p>
<p><a href="https://youtu.be/9rfFF17-rws">https://youtube.com/shorts/9rfFF17-rws</a></p>
<p>&nbsp;</p>
<p>※ 上記動画ではスタンドっぽいのもでてますが、今回の記事では<span style="color: #ff0000;">スタンドを出す方法については記述しません。</span></p>
<p>またこのスタンドは完全に飾りですので、気にしなくて大丈夫です。</p>
<p>今回のマイクラのバージョンは、Minecraft Java版 1.17 ですが、Java版なら問題なく実行できると思います。</p>
<p>&nbsp;</p>
<h2>マイクラでザ・ワールド（時間停止）する方法</h2>
<p>&nbsp;</p>
<p>まずザ・ワールドの動きですが、動作イメージは下記です。</p>
<div class="sc_designlist ol square solid blue">
<ol>
<li>「ザ・ワールド！！！」（かっこいい演出をする！）</li>
<li>5秒の時間計測をスタート！！</li>
<li>5秒間、すべての生き物（エンティティ）の動作を停止</li>
<li>5秒後、時間が動きだし、すべてのエンティティが動き出す</li>
</ol>
</div>
<p>&nbsp;</p>
<h3>「ザ・ワールド！！！」（かっこいい演出をする！）</h3>
<p>&nbsp;</p>
<p>これは「ザ・ワールド！！！」（演出）これは好みだと思います。。</p>
<p>アニメ「ジョジョの奇妙な冒険」を見てなんとなく爆発っぽいイメージがあったので、私は爆発させるイメージにしました。</p>
<p>コマンドはこんな感じです。</p><pre class="crayon-plain-tag">tellraw @a[sort=nearest,limit=1] {"text":"「世界」ツ！！時よ止まれ！","underlined":true}
particle minecraft:explosion_emitter ~ ~ ~ 5 5 5 1 100
playsound minecraft:entity.generic.explode master @a ~ ~ ~</pre><p>
&nbsp;</p>
<p>まず「「世界（ザ・ワールド）」ツ！！時よ止まれ！」って叫んで、爆発します。</p>
<p>これなくてもいいんですが、あったほうがかっこいいです。</p>
<p>&nbsp;</p>
<h3>5秒の時間計測をスタート！！</h3>
<p>&nbsp;</p>
<p>この処理はこんな感じの流れです。</p>
<div class="sc_frame_wrap orange">
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid orange">
<ol>
<li>時間計測スタート！（スコアボードにtimerを登録）</li>
<li>5秒経過するまで待つ（スコアボードのtimerを1ずつ加算）</li>
<li>5秒経過！（スコアボードのtimerをリセット）</li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<p>まず「ザ・ワールド」開始時にマイクラのスコアボードにtimerを登録します。</p><pre class="crayon-plain-tag">scoreboard objectives add timer dummy</pre><p>
&nbsp;</p>
<p><span>つぎに時間が経過するごとに timerの値をどんどん加算するようにします。</span></p>
<p><span>Minecraft にはゲームティックというものがあり、</span>イメージは Minecraft の時間経過のようなもの1秒間に20回動き続けてるものです。</p>
<p>この<span>ゲームティックが</span>1回処理するたびにtimerを1ずつ足すようにします。</p>
<p>こうすることで1秒間実行し続けることで、timerの値は20になります。</p><pre class="crayon-plain-tag">scoreboard players add @a timer 1</pre><p>
&nbsp;</p>
<p>最後に5秒経過したとき（つまり timer が20×5 = 120になったとき）にtimer の値を削除します。</p><pre class="crayon-plain-tag">execute if score @p timer matches 100.. run scoreboard objectives remove timer</pre><p>
&nbsp;</p>
<h3>5秒間、すべての生き物（エンティティ）の動作を停止</h3>
<p>&nbsp;</p>
<p>時間とすべての生き物（エンティティ）の動作を停止する方法ですが、</p>
<p>さきにコマンドを記述するとこんな感じです。</p><pre class="crayon-plain-tag">execute if score @p timer matches ..99 run gamerule doDaylightCycle false
execute if score @p timer matches ..99 run gamerule doFireTick false
execute if score @p timer matches ..99 run gamerule randomTickSpeed 0
execute if score @p timer matches ..99 run gamerule doMobSpawning false
execute if score @p timer matches ..99 run gamerule doInsomnia false
execute as @e[type=!player] if score @p timer matches ..99 run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}</pre><p>
&nbsp;</p>
<p>「if score @p timer matches ..99」とありますが、これはタイマーが5秒未満の場合に処理するという意味です。</p>
<p>これはマイクラの gamerule の設定を書き換えて、エンティティの動き停止しています。</p>
<div class="sc_frame_wrap orange">
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid orange">
<ol>
<li>gamerule doDaylightCycle false ← マイクラの時間経過を固定</li>
<li>gamerule doFireTick false ← 火の燃え移り停止</li>
<li>gamerule randomTickSpeed 0 ← 植物の成長停止</li>
<li>gamerule doMobSpawning false ← モブのスポーン停止</li>
<li>gamerule doInsomnia false ← ファントムのスポーン停止</li>
<li>execute as @e[type=!player] run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}　 ← エンティティの動き停止</li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<p>gameruleは大体こんな感じでいけますが、</p>
<p>エンティティの動き停止（execute as @e[type=!player] run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}）について補足します。</p>
<p>この <strong>{NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s} </strong>の部分ですが、</p>
<p>これはエンティティに「重力をなくす」「モブのAI機能をなくす」「<span>エンティティの動き</span>」「ノックバックを無効化する」です。</p>
<p>&nbsp;</p>
<h3>5秒後、時間が動きだし、すべてのエンティティが動き出す</h3>
<p>&nbsp;</p>
<p>5秒たったらまずスコアボードの timer を削除します。</p><pre class="crayon-plain-tag">execute if score @p timer matches 100.. run scoreboard objectives remove timer</pre><p>
&nbsp;</p>
<p>この方法ですが、さきほどの停止した手順の逆をやればOKです。</p><pre class="crayon-plain-tag">execute if score @p timer matches 100.. run gamerule doDaylightCycle true 
execute if score @p timer matches 100.. run gamerule doFireTick true 
execute if score @p timer matches 100.. run amerule randomTickSpeed 3 
execute if score @p timer matches 100.. run gamerule doMobSpawning true 
execute if score @p timer matches 100.. run gamerule doInsomnia true 
execute as @e[type=!player] if score @p timer matches 100.. run data merge entity @s {NoAI:false,NoGravity:false,Motion:[0,0,0],knockback_resistance:0,DeathTime:0s}</pre><p>
&nbsp;</p>
<p>最後にかっこよく「時は動き出す...」と言ってあげましょう！</p><pre class="crayon-plain-tag">tellraw @a[sort=nearest,limit=1] {"text":"時は動き出す","underlined":true}</pre><p>
&nbsp;</p>
<p>これでOK！あとはコマンドブロックで実装しましょう。</p>
<p>&nbsp;</p>
<h2>ザ・ワールドをコマンドブロックで実行する！！</h2>
<p>&nbsp;</p>
<p>最後にマインクラフトで コマンド ブロックでザワールドを実行する方法です。</p>
<p>前章で説明したコマンドを下の表のようにコマンドブロックに書き込めばOKです！</p>
<p>&nbsp;</p>
<table style="border-collapse: collapse; width: 92.053%; height: 1102px;">
<tbody>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #141675;"><span style="color: #ffffff;">No.</span></td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #141675;"><span style="color: #ffffff;">コマンドブロックの種類</span></td>
<td style="width: 14.0961%; text-align: center; background-color: #141675; height: 49px;"><span style="color: #ffffff;">条件</span></td>
<td style="width: 55.2611%; height: 49px; text-align: center; background-color: #141675;"><span style="color: #ffffff;">コマンド</span></td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #ffd8c4;">1</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #ffd8c4;">インパルス</td>
<td style="width: 14.0961%; background-color: #ffd8c4; height: 49px; text-align: center;"><span>動力が必要</span></td>
<td style="width: 55.2611%; height: 49px; background-color: #ffd8c4;"><span>gamerule commandBlockOutput false</span></td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">2</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">tellraw @a[sort=nearest,limit=1] {"text":"「世界」ツ！！時よ止まれ！","underlined":true}</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">３</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">particle minecraft:explosion_emitter ~ ~ ~ 5 5 5 1 100</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">4</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">playsound minecraft:entity.generic.explode master @a ~ ~ ~</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">5</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">scoreboard objectives remove timer</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">6</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">scoreboard objectives add timer dummy</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #e7cafc;">7</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #e7cafc;">ループ</td>
<td style="width: 14.0961%; background-color: #e7cafc; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #e7cafc;">scoreboard players add @a timer 1</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">8</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doDaylightCycle false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">9</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doFireTick false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">10</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule randomTickSpeed 0</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">11</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doMobSpawning false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">12</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches ..99 run gamerule doInsomnia false</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">13</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute as @e[type=!player] if score @p timer matches ..99 run data merge entity @s {NoAI:true,NoGravity:true,Motion:[0,0,0],knockback_resistance:1,DeathTime:5s}</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">14</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doDaylightCycle true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">15</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doFireTick true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">16</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule randomTickSpeed 3</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">17</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doMobSpawning true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">18</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run gamerule doInsomnia true</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">19</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute as @e[type=!player] if score @p timer matches 100.. run data merge entity @s {NoAI:false,NoGravity:false,Motion:[0,0,0],knockback_resistance:0,DeathTime:0s}</td>
</tr>
<tr style="height: 73px;">
<td style="width: 6.01545%; text-align: center; height: 73px; background-color: #d6f7d0;">20</td>
<td style="width: 17.5893%; height: 73px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 73px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 73px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run tellraw @a[sort=nearest,limit=1] {"text":"時は動き出す","underlined":true}</td>
</tr>
<tr style="height: 49px;">
<td style="width: 6.01545%; height: 49px; text-align: center; background-color: #d6f7d0;">21</td>
<td style="width: 17.5893%; height: 49px; text-align: center; background-color: #d6f7d0;">チェーン</td>
<td style="width: 14.0961%; background-color: #d6f7d0; height: 49px; text-align: center;">常時実行</td>
<td style="width: 55.2611%; height: 49px; background-color: #d6f7d0;">execute if score @p timer matches 100.. run scoreboard objectives remove timer</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>最後に</h2>
<p>いかがでしたでしょうか？</p>
<p>この記事で<strong> <span style="color: #3366ff;">Minecraft で Mod なし・コマンドだけで時間停止する方法</span></strong>について記述しました。</p>
<p>★ 動画でもこの記事について解説していますのでよければどうぞ！</p>
<p>https://youtu.be/li8MPqxlP1A</p>
<p>&nbsp;</p>
<p>最近YouTube でマイクラの普段動画流してます。</p>
<p>よければチャンネル登録&amp;高評価していただけると嬉しいです。</p>
<p>ではでは。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>【Excel】あるある！時間の計算（足し算、引き算）の悩みを解決！</title>
		<link>https://lemon818.com/excel-time-cal/</link>
		
		<dc:creator><![CDATA[Take]]></dc:creator>
		<pubDate>Thu, 25 Jun 2020 10:03:46 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[エクセル]]></category>
		<category><![CDATA[分]]></category>
		<category><![CDATA[引き算]]></category>
		<category><![CDATA[時間]]></category>
		<category><![CDATA[秒]]></category>
		<category><![CDATA[計算]]></category>
		<category><![CDATA[足し算]]></category>
		<guid isPermaLink="false">https://lemon818.com/?p=4695</guid>

					<description><![CDATA[Excel の時間の計算したとき、こんなことになりませんでしたか？ &#160; &#160; 上記は、2行目がA+Bの足し算、3、4行目が引き算ですが、、、 2行目は100歩譲ってわかるとして、、、 「#######」…]]></description>
										<content:encoded><![CDATA[<p>Excel の時間の計算したとき、こんなことになりませんでしたか？</p>
<p>&nbsp;</p>
<p><img fetchpriority="high" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan14.png" alt="" width="788" height="134" class="aligncenter wp-image-4713" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan14.png 1172w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan14-300x51.png 300w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan14-1024x175.png 1024w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan14-768x131.png 768w" sizes="(max-width: 788px) 100vw, 788px" /></p>
<p>&nbsp;</p>
<p>上記は、2行目がA+Bの足し算、3、4行目が引き算ですが、、、</p>
<p>2行目は100歩譲ってわかるとして、、、</p>
<p>「#######」ってなんや？？？</p>
<p>&nbsp;</p>
<p>そんな悩みを持った場合、この記事を参考にぜひ <span style="color: #0000ff;"><strong>Excel の時間計算をマスター</strong></span>してみてください。</p>
<p>わかれば超簡単です！</p>
<p>&nbsp;</p>
<div class="sc_frame_wrap onframe blue">
<div class="sc_frame_title">この記事でわかること</div>
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid blue">
<ol>
<li>足し算の仕方（基本的な方法）</li>
<li>足し算の「24時間」越えの対処法</li>
<li>引き算の仕方（基本的な方法）</li>
<li>引き算の「#######」問題の解決方法</li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<h2>時間の足し算、引き算</h2>
<p>はじめに「時間」の足し算と引き算を説明します。</p>
<p>&nbsp;</p>
<h3>時間の足し算の仕方（基本的な方法）</h3>
<p>まずは普通に足し算します。</p>
<p><img decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan1.png" alt="" width="376" height="82" class="aligncenter wp-image-4699" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan1.png 505w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan1-300x65.png 300w" sizes="(max-width: 376px) 100vw, 376px" /></p>
<p>&nbsp;</p>
<p>すると、下記のように「2:00」となります。</p>
<p>&nbsp;</p>
<p><img decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan2.png" alt="" width="361" height="71" class="aligncenter wp-image-4700" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan2.png 474w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan2-300x59.png 300w" sizes="(max-width: 361px) 100vw, 361px" /></p>
<p>&nbsp;</p>
<h3>足し算の「24時間」越えの対処法</h3>
<p>&nbsp;</p>
<p>上の計算を見た時に、</p>
<p>「23:00」+ 「3:00」= 「26:00」にならないの...？と思われた人もいるのではないでしょうか？</p>
<p>そんな人は追加でExcel の設定が必要です。</p>
<p>セルを選択して「右クリック」→「セルの書式設定」を押下します。</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan3-1.png" alt="" width="506" height="390" class="aligncenter wp-image-4702" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan3-1.png 724w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan3-1-300x231.png 300w" sizes="auto, (max-width: 506px) 100vw, 506px" /></p>
<p>&nbsp;</p>
<p>「表示形式タブ」→「ユーザ定義」から種類（<span style="text-decoration: underline;">T</span>）の入力欄に <strong>[h]:mm</strong> と入力します。</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan4.png" alt="" width="453" height="483" class="aligncenter wp-image-4703" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan4.png 519w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan4-282x300.png 282w" sizes="auto, (max-width: 453px) 100vw, 453px" /></p>
<p>&nbsp;</p>
<p>すると、下記のように「26:00」表記になっていることが確認できます。</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan5.png" alt="" width="441" height="82" class="aligncenter wp-image-4704" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan5.png 484w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan5-300x56.png 300w" sizes="auto, (max-width: 441px) 100vw, 441px" /></p>
<p>&nbsp;</p>
<h3>時間の引き算</h3>
<p>引き算は以下のように行います。</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan9.png" alt="" width="414" height="89" class="aligncenter wp-image-4707" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan9.png 474w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan9-300x65.png 300w" sizes="auto, (max-width: 414px) 100vw, 414px" /></p>
<p>&nbsp;</p>
<p>予想通り、「1:00」になります。</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan15.png" alt="" width="498" height="89" class="aligncenter wp-image-4714" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan15.png 564w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan15-300x54.png 300w" sizes="auto, (max-width: 498px) 100vw, 498px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>引き算の「#######」問題の解決方法</h3>
<p>「#####」になっていませんか？</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan20.png" alt="" width="603" height="108" class="aligncenter wp-image-4718" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan20.png 737w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan20-300x54.png 300w" sizes="auto, (max-width: 603px) 100vw, 603px" /></p>
<p>&nbsp;</p>
<p>これには一工夫必要です。つまり Excel 関数を使います。</p>
<p>下記どちらかの数式を入力してみてください。</p>
<div class="sc_frame_wrap onframe blue">
<div class="sc_frame_title">数式</div>
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid blue">
<ol>
<li><strong>=TEXT(IF(B1&gt;A1,B1-A1,A1-B1),"h:mm")</strong></li>
<li><strong>=TEXT(ABS(A1-B1),"h:mm")</strong></li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan22.png" alt="" width="689" height="103" class="aligncenter wp-image-4720" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan22.png 809w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan22-300x45.png 300w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan22-768x115.png 768w" sizes="auto, (max-width: 689px) 100vw, 689px" /></p>
<p>すると下記のようにうまく表示されます。</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan21.png" alt="" width="582" height="107" class="aligncenter wp-image-4719" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan21.png 734w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan21-300x55.png 300w" sizes="auto, (max-width: 582px) 100vw, 582px" /></p>
<p>&nbsp;</p>
<p>3行目はええけど、2行目が「-12:00」にしたいという人もいると思います。</p>
<p>つまり、「マイナス」表記をつけたい！と思う人もいると思います。</p>
<p>そんな人は下記数式を入力してみてください。</p>
<div class="sc_frame_wrap onframe blue">
<div class="sc_frame_title">数式</div>
<div class="sc_frame ">
<div class="sc_frame_text">
<div class="sc_designlist ol square solid blue">
<ol>
<li><strong>=TEXT(IF(B1&gt;A1,B1-A1,A1-B1),IF(B1&gt;A1,"h:mm","-h:mm"))</strong></li>
<li><strong>=TEXT(ABS(B1-A1),IF(B1&gt;A1,"h:mm","-h:mm"))</strong></li>
</ol>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<p>どっちを入力しても下記のようになることが確認できます！</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan23.png" alt="" width="706" height="102" class="aligncenter wp-image-4721" srcset="https://lemon818.com/wp/wp-content/uploads/2020/06/zikan23.png 768w, https://lemon818.com/wp/wp-content/uploads/2020/06/zikan23-300x43.png 300w" sizes="auto, (max-width: 706px) 100vw, 706px" /></p>
<p>&nbsp;</p>
<h2>最後に</h2>
<p>いかがでしょうか？</p>
<p>この記事ではExcelの時間の計算方法について解説しました！</p>
<p>よければぜひ参考にしてみてください。</p>
<p>ではでは。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
