-
Excelノート
【パワークエリ】「サンプルファイルの変換」と「その他のクエリ」の違い
【経緯】 Excelのパワークエリでパワークエリエディタのサイドバーに「その他のクエリ」とあります。 その上には「サンプルファイルの変換」とあってどっちもデータが加工できそうです。 なので、今回はその違いについて勉強しました。 【サンプルファイル... -
Excelノート
【パワークエリ】「その他のクエリ」ってなに?
【経緯】 Excelのパワークエリでパワークエリエディタのサイドバーに「その他のクエリ」とあります。 これが気になったので、調べてみました。 【「その他のクエリ」の主な用途】 クエリの参照: 一つのクエリから別のクエリを参照する際に使用します。例え... -
Excelノート
【パワークエリ】取得した文字列を加工、追加したい
【経緯】 Excelのパワークエリという機能を使って、データの加工をしています。 取得した文字列が「測定日 :2022年10月31日 14時31分」というデータで この文字列の「2022年10月31日」という文字だけ取得し列に追加する方法を 今回勉強しました。 【手順】... -
Excelノート
【パワークエリ】[Expression.Error] テーブルの列’Column1’が見つかりませんでした
【経緯】 Excelのパワークエリという機能を使っていて、 「[Expression.Error] テーブルの列'Column1'が見つかりませんでした」というエラーがでました。 その時の対処方法を紹介します。 【原因と対処法】 原因は以下が考えられます。 列名の変更または... -
Excelノート
【パワークエリ】フォルダをデータソースとして指定する方法
【経緯】 Excelのパワークエリという機能を使って、フォルダの中にあるファイルを設定する方法を 今回、勉強しました。 【手順】 以下が手順です。 Excel開く タグ”データ”選ぶ ”データの取得”選ぶ ”ファイルから” ”フォルダから” パワークエリで集計する... -
VBAノート
外部のExcelファイルをバックグラウンドで開く【VBA】
【経緯】 Excelで外部のExcelファイルを開くプログラムを作ったのですが、画面いっぱいにExcelファイルが開いて邪魔でした。 なので、今回それを解決します。 【ScreenUpdatingプロパティを"False"にする】 外部のExcelファイルをバックグラウンドで開くに... -
VBAノート
エクセルVBAでランダムに名前を選んでセルに配置する方法【VBA】
【経緯】 エクセルのVBA(Visual Basic for Applications)は、データの自動処理に非常に便利なツールです。今回は、指定された名前のリストからランダムに名前を選択し、それらを特定のセルに配置する方法について解説します。この技術は、例えばランダム... -
VBAノート
エクセルVBAで外部ファイルからデータをランダムに取得する方法【VBA】
【経緯】 エクセルのVBA(Visual Basic for Applications)は、日々の作業を効率化するための強力なツールです。今回は、外部のエクセルファイルからランダムにデータを取得し、現在の作業中のシートにそのデータを反映させる方法を紹介します。この技術は... -
VBAノート
指定されたセルの隣のセルにデータベースからランダムに文字を取得して埋めるマクロを作成【VBA】
【経緯】 ExcelのVBAで指定されたセルの隣のセルにデータベースからランダムに文字を取得して埋めるマクロを作成する方法を 今回、勉強しました。 【コード】 まず、Excelのデータベースがどこにあるかを確認する必要があります。例として、A1:A100の範囲... -
Excelノート
【パワークエリ】データを取得【Excel】
Excelのパワークエリでcsvファイルのデータを取得したいと思い、今回勉強しました。 【手順】 1,Excelを開き、データタブに移動します。 2,データを取り込む: 「データ」タブから「データの取得」を選び、「ファイル」→「CSVから」を選択します。 取り込み... -
VBAノート
PowerPointに貼り付けたエクセルのグラフを任意のところに貼る【VBA】
【経緯】 PowerPointに貼り付けたエクセルのグラフを任意の場所に貼りたいと思い、 今回、勉強しました。 【.Leftや.Topを使う。】 .Leftや.Topを使うとグラフの位置を決めれますよ。 では、コードです。 ' オブジェクトの位置を設定 myShape.Left = 100 '... -
VBAノート
PowerPointに貼り付けたエクセルのグラフを「図」として貼ろう【VBA】
【経緯】 PowerPointに貼り付けたエクセルのグラフを「図」として貼り付けたくて、 今回、勉強しました。 【.PasteSpecialを使う。】 PasteSpecialを使用すると、グラフをメタファイル形式(図形として)で貼り付けることができます。 では、コードです。以... -
VBAノート
PowerPointに貼り付けたエクセルのグラフのサイズを変えよう【VBA】
【環境】 Windowsの仕様 エディション:Windows 10 Pro バージョン:20H2 【経緯】 PowerPointに貼り付けたエクセルのグラフのサイズを変えたくて、 今回、勉強しました。 【コード】 PowerPointのスライド上でオブジェクトのサイズを特定の値(この場合、高... -
VBAノート
エクセルで作ったグラフをPowerPointに貼り付けよう【VBA】
【経緯】 エクセルでグラフを作りました。それをPowerPointに貼れたら、便利だなと思い、 今回、勉強しました。 【コード】 まずコードです。フォルダにテンプレのPowerPointファイルがあり、それを読んで、グラフを貼り付けるといった仕様です。 Sub Expo... -
Excelノート
グラフのx軸を縦書きにしたい。【Excel】
Excelでグラフを作りました。 そのグラフでx軸が"2023年12月14日"という感じで横書きで年月日になっています。 これを横書きから、縦書きにしたいと思っています。 【X軸ラベルの縦書き設定方法】 グラフの選択: グラフを選択します。 X軸ラベルの選択: X... -
Excelノート
標準偏差の関数って何?【Excel】
Excelには標準偏差を計算するためのいくつかの関数が用意されています。これらはデータセットのばらつきの程度を示すために使用されます。主な標準偏差関数は以下の通りです: STDEV.P(またはSTDEVP):これは母集団全体の標準偏差を計算します。つまり、... -
VBAノート
ループしよう。【VBA】
【経緯】 VBAで同じような処理でとても長くなったので、ループできないか考えてみました。 【コード】 まずコードです。最終行を検出して、いろんな列の2列目にある数値を最終行までコピーしています。 Sub CopyFormulasDown() Dim ws As Worksheet Dim l... -
VBAノート
カウントダウンタイマーを作りたい。【VBA】
【経緯】 VBAでカウントダウンタイマーとやらを作ってみたくて、今回作ってみました。 【コード】 以下はコードです。以下が手順です。図形を作ってその中の数値がカウントダウンする仕様です。 Excelワークシートに図形を挿入: ワークシートに図形(例え... -
C#ノート
ファイル仕分けアプリ【C#】
【経緯】 ルーティンワークでファイルを別々のフォルダに仕分けする作業があった。 ファイルをいちいち貼り付ける作業がめんどくさいので、 C#でファイルを仕分けするアプリをつくってみました。 【仕様】 仕様は以下の通りです。 ファイルを選んで、実行... -
VBAノート
【VBA】リストにある名前をテーブルに羅列したい【Word】
【経緯】 WindowsのWordで書類を書いてました。 書類にはテーブルがあり、日付と担当者が以下のようになっています。 日付担当者11月27日森12月1日12月11日12月22日12月29日1月7日1月13日1月20日 名前のリストを作って、担当者の列に次々羅列するコードを... -
VBAノート
【VBA】テーブルで今日以前の列は削除する【Word】
【経緯】 WindowsのWordで書類を書いてました。 書類にはテーブルがあり、日付と担当者が以下のようになっています。 日付担当者11月27日森12月1日小森12月11日中森 11月27日はもう過ぎていらないので、これを消すコードを勉強してました。 【コード】 以... -
VBAノート
【VBA】今日の日付を取得して、行に記入する【Word】
【経緯】 WindowsのWordで書類を書いてました。書類にはファイルを更新した日を記入しなければならなくて、 毎回、記入していて面倒な作業でした。 なので、今回、自動化してみました。 【Format(Date, "yyyy年m月d日")を使う】 Format(Date, "yyyy年m月d... -
VBAノート
文字列の”_”で分けて、その値を取得したい【VBA】
【経緯】 文字列の値を取得したくて、今回、 勉強しました。 【Split()を使う】 Split()を使うとうまくいきました。 以下はコードです。fileNameという変数があり、”_”で分割して、値を取得しています。 Dim fileName As String Dim parts() As String Dim... -
STEPNノート
2023年11月の結果【STEPN】
11月の結果です。 メインスニーカーはUncommon_Runner-LV19です。 スニーカーの個数は4足です。 【利益(GST)】 利益 = 報酬 - 支出(リペア + MT Box Open Fee + 靴のリペア) 683.46 = 1145.46- (112+ 280+ 70) 収入内訳 獲得GST合計1145.461145.46 支出内... -
Pythonノート
openpyxlとExcel VBAの違いの理解と使い方【Python】
【openpyxlとExcel VBAの違い】 openpyxlはExcel VBAとは異なります。機能やメソッド名が大きく異なるため、Excel VBAの知識をそのままopenpyxlに適用するのは難しいです。Excel VBAのメソッド名を使ってopenpyxlのドキュメントを検索しても、同じ名前のメ... -
Pythonノート
Webスクレイピング時のHTML構造とデザインの理解しよう【Python】
【見た目が似ている要素のHTML構成】 Webサイトの中で見た目が似ている要素は、通常、HTMLの構成が似ています。開発ツールを使用してこれらの要素を調べると、リスト内のHTMLタグが同じか似た構成になっていることが分かります。このことは、プログラミン... -
Pythonノート
PythonでのWebスクレイピング:GETリクエストとPOSTリクエスト【Python】
【GETリクエストとは】 GETリクエストは、Webサーバーに情報を要求するための最も基本的な方法です。PythonでGETリクエストを行うには、requestsモジュールのget関数を使用します。GETリクエストは主に以下の特徴を持ちます: ブラウザのURLバーに入力され... -
Pythonノート
ターミナルとPythonインタラクティブシェルの違い【Python】
【ターミナルとは】 ターミナルは、WindowsやmacOSなどのオペレーティングシステム(OS)が提供するコマンドラインインターフェイスです。この環境では、以下のような操作が行えます: フォルダの変更 アプリケーションの実行 Pythonスクリプトの実行 pip... -
Pythonノート
Pythonのパッケージとサードパーティー製パッケージの概要【Python】
Pythonでプログラミングを行う際、さまざまな機能を提供する「パッケージ」の存在が非常に重要です。この記事では、Pythonのパッケージと、特にサードパーティー製パッケージに焦点を当てて解説します。 【パッケージの基本】 Pythonパッケージとは Python... -
お金ノート
投資信託の取引タイミング解説:約定日、申込日、受渡日【投資信託】
投資信託を理解する上で重要な、約定日、申込日、受渡日の概念について簡潔に解説します。特にNISAを利用したり、分配金を受け取る際に重要となるこれらのタイミングを正確に把握することで、より効果的な投資戦略を立てることができます。 【投資信託の約...