<?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://office-automation-lab.com/tag/%e9%9b%86%e8%a8%88%e8%a1%a8%e4%bd%9c%e6%88%90/feed/" rel="self" type="application/rss+xml" />
	<link>https://office-automation-lab.com</link>
	<description>AIとExcelで仕事を少しだけ楽にする方法を、リアルな体験と検証で発信</description>
	<lastBuildDate>Wed, 17 Jun 2026 14:10:21 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://office-automation-lab.com/wp-content/uploads/2026/06/cropped-サイト画像-32x32.jpg</url>
	<title>集計表作成</title>
	<link>https://office-automation-lab.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>VBAで担当者別集計表を自動作成するコード（Dictionary）｜案件管理システムVer.1完成版</title>
		<link>https://office-automation-lab.com/vba-person-summary-report/</link>
					<comments>https://office-automation-lab.com/vba-person-summary-report/#respond</comments>
		
		<dc:creator><![CDATA[mkhome_ai]]></dc:creator>
		<pubDate>Wed, 17 Jun 2026 14:10:21 +0000</pubDate>
				<category><![CDATA[VBAコード集]]></category>
		<category><![CDATA[Dictionary]]></category>
		<category><![CDATA[ExcelVBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[担当者別集計]]></category>
		<category><![CDATA[案件管理]]></category>
		<category><![CDATA[案件管理システム]]></category>
		<category><![CDATA[業務効率化]]></category>
		<category><![CDATA[進捗管理]]></category>
		<category><![CDATA[集計表作成]]></category>
		<guid isPermaLink="false">https://office-automation-lab.com/?p=686</guid>

					<description><![CDATA[・案件データベースから担当者ごとの進捗状況を自動集計・完了・進行中・未着手を自動で分類・案件管理システムの集計画面をボタン1つで更新可能 このコードでできること ・担当者ごとの総案件数を集計・完了、進行中、未着手件数を集 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">・案件データベースから担当者ごとの進捗状況を自動集計<br>・完了・進行中・未着手を自動で分類<br>・案件管理システムの集計画面をボタン1つで更新可能</p>



<h2 class="wp-block-heading">このコードでできること</h2>



<p class="wp-block-paragraph">・担当者ごとの総案件数を集計<br>・完了、進行中、未着手件数を集計<br>・集計結果を担当者別に一覧表示</p>



<h3 class="wp-block-heading">VBAコード</h3>



<pre class="wp-block-code"><code>Sub 担当者別集計作成()

Dim wsData As Worksheet
Dim wsOut As Worksheet

Dim lastRow As Long
Dim r As Long

Dim dic As Object
Dim person As String
Dim status As String
Dim info

Dim startCols As Variant
Dim topRow As Long
Dim col As Long
Dim cnt As Long

Dim key As Variant
Dim c As Variant

'=================================
' シート設定
'=================================
Set wsData = Worksheets("案件データベース")
Set wsOut = Worksheets("担当者別集計(VBA)")

Set dic = CreateObject("Scripting.Dictionary")

'=================================
' 最終行取得
'=================================
lastRow = wsData.Cells(wsData.Rows.Count, "E").End(xlUp).Row

'=================================
' 集計
'=================================
For r = 2 To lastRow

    person = Trim(wsData.Cells(r, "E").Value)
    status = Trim(wsData.Cells(r, "H").Value)

    If person &lt;&gt; "" Then

        If Not dic.Exists(person) Then
            dic.Add person, Array(0, 0, 0, 0)
        End If

        info = dic(person)

        info(0) = info(0) + 1

        Select Case status

            Case "完了"
                info(1) = info(1) + 1

            Case "進行中"
                info(2) = info(2) + 1

            Case "未着手"
                info(3) = info(3) + 1

        End Select

        dic(person) = info

    End If

Next r

wsOut.Range("B4:O14").ClearContents

For Each c In Array("D", "G", "J", "M")
    wsOut.Columns(c).ColumnWidth = 3.75
Next c

startCols = Array(2, 5, 8, 11, 14, 2, 5, 8, 11, 14)

cnt = 0

For Each key In dic.Keys

    If cnt &gt; 9 Then Exit For

    If cnt &lt;= 4 Then
        topRow = 4
        col = startCols(cnt)
    Else
        topRow = 10
        col = startCols(cnt)
    End If

    info = dic(key)

    wsOut.Cells(topRow, col).Value = key
    wsOut.Cells(topRow, col + 1).Value = "件数"

    wsOut.Cells(topRow + 1, col).Value = "総件数"
    wsOut.Cells(topRow + 1, col + 1).Value = info(0)

    wsOut.Cells(topRow + 2, col).Value = "完了"
    wsOut.Cells(topRow + 2, col + 1).Value = info(1)

    wsOut.Cells(topRow + 3, col).Value = "進行中"
    wsOut.Cells(topRow + 3, col + 1).Value = info(2)

    wsOut.Cells(topRow + 4, col).Value = "未着手"
    wsOut.Cells(topRow + 4, col + 1).Value = info(3)

    wsOut.Cells(topRow, col).Font.Bold = True

    With wsOut.Range( _
        wsOut.Cells(topRow, col), _
        wsOut.Cells(topRow, col + 1) _
        ).Borders(xlEdgeBottom)

        .LineStyle = xlContinuous
        .Weight = xlThin

    End With

    With wsOut.Range( _
        wsOut.Cells(topRow, col), _
        wsOut.Cells(topRow + 4, col))

        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter

    End With

    wsOut.Cells(topRow, col + 1).HorizontalAlignment = xlCenter
    wsOut.Cells(topRow, col + 1).VerticalAlignment = xlCenter

    cnt = cnt + 1

Next key

wsOut.Activate

MsgBox "担当者別集計を作成しました。" &amp; vbCrLf &amp; _
       "内容を確認してください。", vbInformation

End Sub
</code></pre>



<h2 class="wp-block-heading">カスタマイズ例</h2>



<h3 class="wp-block-heading">パターン①</h3>



<p class="wp-block-paragraph">担当者数を15名まで表示する</p>



<pre class="wp-block-code"><code>If cnt &gt; 14 Then Exit For
</code></pre>



<h3 class="wp-block-heading">パターン②</h3>



<p class="wp-block-paragraph">集計開始行を変更する</p>



<pre class="wp-block-code"><code>topRow = 15
</code></pre>



<h2 class="wp-block-heading">よくあるエラー</h2>



<h3 class="wp-block-heading">症状</h3>



<p class="wp-block-paragraph">実行時エラーが発生する</p>



<p class="wp-block-paragraph">対処法<br>・案件データベースシート名を確認する<br>・担当者別集計(VBA)シート名を確認する</p>



<h3 class="wp-block-heading">症状</h3>



<p class="wp-block-paragraph">集計結果が0件になる</p>



<p class="wp-block-paragraph">対処法<br>・担当者列がE列か確認する<br>・状態列がH列か確認する</p>



<h2 class="wp-block-heading">サンプルファイル</h2>



<p class="wp-block-paragraph">このコードを試せるサンプルファイルを配布しています。</p>



<p class="wp-block-paragraph">▶ <a target="_blank" href="https://office-automation-lab.com/wp-content/uploads/2026/06/案件管理システム_4_VBAサンプル.zip" data-type="link" data-id="https://office-automation-lab.com/wp-content/uploads/2026/06/案件管理システム_4_VBAサンプル.zip">サンプルファイルをダウンロード（.zip）</a></p>



<h2 class="wp-block-heading">関連記事</h2>



<p class="wp-block-paragraph">▶ <a target="_blank" href="https://office-automation-lab.com/vba-project-registration/" data-type="link" data-id="https://office-automation-lab.com/vba-project-registration/">VBAで案件データを登録するコード</a></p>



<p class="wp-block-paragraph">▶ <a target="_blank" href="https://office-automation-lab.com/vba-transfer-checked-data-to-another-sheet/" data-type="post" data-id="660">VBAで入力フォームを自動クリアするコード</a></p>



<p class="wp-block-paragraph">▶ <a target="_blank" href="https://office-automation-lab.com/vba-transfer-checked-data-to-another-sheet/" data-type="link" data-id="https://office-automation-lab.com/vba-transfer-checked-data-to-another-sheet/">VBAでチェックボックスにチェックしたら別シートへ転記するコード</a></p>



<h2 class="wp-block-heading">次回予告</h2>



<p class="wp-block-paragraph">次回は「VBAで担当者別集計表をPDF保存するコード」を紹介予定です。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://office-automation-lab.com/vba-person-summary-report/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
