<?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>\&quot; | nujonoa_blog</title>
	<atom:link href="https://nujonoa.com/tag/956/feed/" rel="self" type="application/rss+xml" />
	<link>https://nujonoa.com</link>
	<description>人生に役立つデータ集</description>
	<lastBuildDate>Tue, 11 Aug 2020 13:17:21 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://nujonoa.com/wp-content/uploads/2019/04/cropped-DSC00976-e1554456145409-32x32.jpg</url>
	<title>\&quot; | nujonoa_blog</title>
	<link>https://nujonoa.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【GAS】数式内に”(ダブルクオーテーション)が出てくるときの対処法</title>
		<link>https://nujonoa.com/how-to-use-double-quotation-marks-in-gas/</link>
					<comments>https://nujonoa.com/how-to-use-double-quotation-marks-in-gas/#respond</comments>
		
		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Tue, 11 Aug 2020 13:17:20 +0000</pubDate>
				<category><![CDATA[GAS]]></category>
		<category><![CDATA[google spreadsheet]]></category>
		<category><![CDATA["]]></category>
		<category><![CDATA[ダブルクオーテーションマーク]]></category>
		<category><![CDATA[\"]]></category>
		<guid isPermaLink="false">http://nujonoa.com/?p=6710</guid>

					<description><![CDATA[目次 【GAS】数式内に”(ダブルクオーテーション)が出てくるときの対処法GASの場合は簡単！「"」→「\”」と記述するだけ！まとめ 【GAS】数式内に”(ダブルクオーテーション)が出てくるときの対処法 GASをエクセル [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">【GAS】数式内に”(ダブルクオーテーション)が出てくるときの対処法</a></li><li><a href="#toc2" tabindex="0">GASの場合は簡単！「"」→「\”」と記述するだけ！</a></li><li><a href="#toc3" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">【GAS】数式内に”(ダブルクオーテーション)が出てくるときの対処法</span></h2>



<p>GASをエクセルVBAのように使用しようとすると、</p>



<p>setformula(数式)</p>



<p>を使って、数式をそのままセルに書き込みたいときが出てくると思います。</p>



<p>ExcelVBAでは、下記記事のような方法で回避できましたが、<br>GASはJAVAScriptをベースにしていますので、同じ方法では回避できません。</p>



<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-nujonoa-blog"><div class="wp-block-embed__wrapper">

<a rel="noopener" target="_blank" href="https://nujonoa.com/doublecotation-vba/" title="VBAダブルコーテーション内の&quot;&quot;の使い方!" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-right cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img decoding="async" src="http://nujonoa.com/wp-content/uploads/2019/05/25052019121319A-160x90.png" alt="" class=" internal-blogcard-thumb-image" width="160" height="90" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">VBAダブルコーテーション内の""の使い方!</div><div class="blogcard-snippet internal-blogcard-snippet">VBA,ダブルコーテーション内の&quot;&quot;の使い方!VBAで数式を作成するときに、数式を「”」ダブルコーテーションで囲いますが、数式内にも「”」があるとエラーが起こってしまいます。これを防ぐためには、数式内の「”」を「””」と2個にすることで回避...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img decoding="async" src="https://www.google.com/s2/favicons?domain=https://nujonoa.com" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">nujonoa.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2019.10.02</div></div></div></div></a>
</div></figure>



<p>そこで今回は、GASにおける、数式内の「”」の回避方法を説明していきたいと思います。</p>



<h2 class="wp-block-heading"><span id="toc2">GASの場合は簡単！「"」→「\”」と記述するだけ！</span></h2>



<p>VBAＳでは、二つ重ねるとなどなどの方法で記載していましたが、<br>GASの場合は非常に簡単で</p>



<p>\"</p>



<p>と前方に</p>



<p>\</p>



<p>を入れるだけでokです。</p>



<p>ですので、</p>



<p>例えば、image関数を挿入する場合、</p>



<p class="is-style-secondary-box">=image(<strong><span class="marker-animation">"</span></strong>https://drive.google.com/uc?id=画像Id<strong><span class="marker-animation">"</span></strong>)</p>



<p>としてあげる必要があるのですが、<br>この場合は、</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
setformula(&quot;=image(\&quot;https://drive.google.com/uc?id=&quot; + file.getId() + &quot;\&quot;)&quot;)
</pre></div>


<p>と記載するとセルにきちんと</p>



<p class="is-style-secondary-box">=image(<span class="marker-animation">"</span>https://drive.google.com/uc?id=画像Id<span class="marker-animation">"</span>)</p>



<p>が入力されると思います。</p>



<h2 class="wp-block-heading"><span id="toc3">まとめ</span></h2>



<p>実は非常に簡単に対処できたのですが、<br>この方法が見つかるまで結構時間がかかったので、<br>皆さんのお役に立てればと思います！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nujonoa.com/how-to-use-double-quotation-marks-in-gas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
