Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
小計ラベルのラベルを変更して、グループ合計ではなく合計と言う方法を探しています。
したがって、これの代わりに:
Group Value A 100 A 200 A Total 300
私はこれを得る:
Group Value A 100 A 200 Total 300
簡単なマクロを作成して変更できます。小計の数式が列B(私の例ではb2:b8、変更が簡単)にあり、「グループ合計」のタイトルが列Aにあるとすると、これは機能するはずです。
Dim mycell As Range For Each mycell In Range("B2:B8"): If Mid(mycell.Formula, 1, 9) = "=SUBTOTAL" Then mycell.Offset(0, -1).Value = "Total" End If Next mycell