<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>accs2014</author_name>
  <author_url>https://blog.hatena.ne.jp/accs2014/</author_url>
  <blog_title>いきなり答える備忘録</blog_title>
  <blog_url>https://www.officeisyours.com/</blog_url>
  <categories>
    <anon>Excel</anon>
  </categories>
  <description>Excelで複数要素の並べ替えパターンをすべて生成・列挙する例です。ワークシート関数では困難ですが2024年秋に利用可能となったPython in Excelを使って簡単に実現できます。 手順 次の画像では、B2:D2の範囲に入力されている3つの要素A,B,Cを並べ替えた6つのパターンをすべて書き出しています。 手順は次の通りです。 F2セルに次のコードを入力します。具体的にはセルに「=PY(」と入力するか数式タブの「Pythonの挿入」をクリックしてセルが変化したところでコードを入力します。 import itertools items = xl(&quot;B2:D2&quot;).unstack() lis…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.officeisyours.com%2Fentry%2F2024%2F09%2F20%2F173000&quot; title=&quot;（Python in Excel）順列を全通り生成する方法 - いきなり答える備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/accs2014/20240920/20240920161143.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-09-20 17:30:00</published>
  <title>（Python in Excel）順列を全通り生成する方法</title>
  <type>rich</type>
  <url>https://www.officeisyours.com/entry/2024/09/20/173000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
