- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2011-6-28 22:09 ½s¿è
¦^´_ 3# freeffly
¨º´NÅܦ¨±q³Ì¥½¤@¦C¨ì²Ä¤G¦C³£n°õ¦æ.
µM«á¥ý§PÂ_ 12 ¤ë¨ºÄæ¬O§_¦³¸ê®Æ,
Y¦³«h°õ¦æì¥ýµ{¦¡¤¤ªº¨ºÓ¤ù¬q,
YµL«h©¹¥ª´M§ä³Ì¥½¨âµ§¸ê®Æ,
Y¦¹¨âµ§¸ê®Æ¨ä¤¤¤@µ§¦b A Äæ«h¤£°µ¥ô¦ópºâ, (¦] A Äd¤£¬O§ÚÌnpºâªº¸ê®Æ)
§_«h´N±N¦¹¨âÄæ¸ê®Æ°µ¬ÛÀ³ªºpºâ, µ{¦¡¦p¤U:- Sub nn()
- Dim iCol1%, iCol2%
- Dim lRows As Long, lRow As Long
-
- lRows = Cells(Rows.Count, 1).End(xlUp).Row
- For lRow = lRows To 2 Step -1
- If Cells(lRow, 13) <> 0 And Cells(lRow, 13) <> "" Then
- If Cells(lRow, 12) <> 0 And Cells(lRow, 12) <> "" Then
- Cells(lRow, 14) = (Cells(lRow, 13) - Cells(lRow, 12)) / Cells(lRow, 12)
- Else
- Cells(lRow, 14) = (Cells(lRow, 13) - Cells(lRow, Cells(lRow, 13).End(xlToLeft).Column)) / Cells(lRow, Cells(lRow, 12).End(xlToLeft).Column)
- End If
- Else
- iCol1 = Cells(lRow, 13).End(xlToLeft).Column
- iCol2 = Cells(lRow, iCol1).End(xlToLeft).Column
- If iCol1 <> 1 And iCol2 <> 1 Then
- Cells(lRow, 14) = (Cells(lRow, iCol1) - Cells(lRow, iCol2)) / Cells(lRow, iCol2)
- End If
- End If
- Next lRow
- End Sub
½Æ»s¥N½X |
|