excel中返回指定的数

excel

1个回答

写回答

18852636873

2025-11-15 13:40

+ 关注

Sub aa()x = Sheet1.Range("a565656").End(3)For i = 1 To xIf Cells(i, 1) = 1 Then Sheet2.Cells(i, 1) = Cells(i, 1)If Cells(i, 1) = 2 Then Sheet2.Cells(i, 1) = Cells(i, 1)If Cells(i, 1) = 3 Then Sheet2.Cells(i, 1) = Cells(i, 1)If Sheet2.Cells(i, 1) "" Then Sheet2.Cells(i, 2) = Sheet1.Cells(i, 1) + 2Next iEnd Sub

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号