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.
私のデータセットは次のようになります。
col1: 1,4,5,6,24,6
col2: 1,5,4,2,45,6
私が見つけたい:
(col1[0] - col2[0]) 次に、col3[0] に貼り付けます
それから
(col1[1] - col2[1]) 次に、col3[1] に貼り付けます
約 値がなくなるまで 4000 エントリ。
ExcelでマクロまたはVBを使用してそれを行うにはどうすればよいですか? 前もって感謝します。
始めたばかりです。このシッダールを行う適切な方法は何ですか?
Option Explicit Sub minus() Dim lastRow As Integer, i As Integer lastRow = 7 With ActiveSheet For i = 1 To lastRow Range("C" & i).Formula = "=A" & i & "-B" & i Next i End With End Sub