ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] §Q¥ÎÀx¦s®æ¤¤ªº³¡¤ÀÃöÁä¦r¡A¨ú¥X¦P¤@¦Cªº¬ÛÃö¸ê®Æ

¦^´_ 10# GBKEE


    ªþ¤W­×§ï«áªºÀɮסA½ÐG¤j¾Þ§@¤@¤U´Nª¾¹D¤F
test.rar (75.72 KB)
Jess

TOP

¦^´_ 11# jesscc
¥Î R1C1 ªí¥Üªk
  1. Sub Test1()
  2.     Dim KY As Range
  3.     With Sheets("Sheet2")
  4.         If .Range("E7").End(xlDown).Row = Rows.Count Then Exit Sub
  5.             For Each KY In .Range(.[E7], .[E7].End(xlDown)).Offset(, 8)  'MÄæ
  6.                 If KY = "" And KY.Offset(, 1) <> "" And KY.Offset(, -1) <> "" Then
  7.                     KY.Offset(, 2) = "=Rounddown(RC[-1]*1000/RC[-3],0)"
  8.                 Else
  9.                     KY.Offset(, 2) = "=RC[-2]*1000/RC[-3]"
  10.                 End If
  11.                     KY.Offset(, 2) = KY.Offset(, 2).Value
  12.             Next
  13.     End With
  14. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ jesscc ©ó 2011-9-17 22:09 ½s¿è

¦^´_ 12# GBKEE


    §Úªº°ÝÃD´N¦b³o¸Ì
·d¤£À´¬°¤°»ò¥Î¤@­Óª«¥óÅܼƨӨú¥NRange¡A¾ã­Ó§PÂ_¦¡´N¥i¥H¥Î¦h­ÓAnd ³s±µ?

ÁÙ¦³«e­±¨º­Ó²Ä18¦æªº°ÝÃD
¬°¤°»ò³o¼Ë¥i¥H
Ky.Offset(0, 10) = Int(Ky.Offset(0, 9) * 1000 / Ky.Offset(0, 7))

³o¼Ë´N¤£¦æ
Ky.Offset(0, 10) = Rounddown((Ky.Offset(0, 9) * 1000 / Ky.Offset(0, 7)),0)

¦pªG¬O­n¥|±Ë¤­¤J¡A³o¬q¤£ª¾¸Ó¥Î¤°»ò¨ç¼Æ?
Jess

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-9-17 23:07 ½s¿è

¦^´_ 13# jesscc

Rounddown¬O¤u§@ªí¨ç¼Æ
Ky.Offset(0, 10) = Application.Rounddown((Ky.Offset(0, 9) * 1000 / Ky.Offset(0, 7)),0)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 14# Hsieh

1.²Ä¤@­Ó°ÝÃDÁÙ¬O·d¤£À´><
2.©Ò¦³ªº¤u§@ªí¨ç¼Æ¡A¹B¥Î¨ìVBAùس£¬O³oºØÂà´«¤è¦¡¶Ü?
Jess

TOP

¥i¥H©ì°Ê³o­Ó¤U©Ô²M³æ¡A¬d¬ÝVBA¤ä´©ªº¤u§@ªí¨ç¼Æ

TOP

¤F¸Ñ¤F¡C
ÁÂÁ H¤j©M O¤jªºÀ°¦£¡C§ó­nÁÂÁÂG¤j¡A´X¥G³­¤F§Ú¤@¤U¤Èªº®É¶¡À°§Ú¸Ñ¨M°ÝÃD¡A¯uªº«D±`·PÁÂ!
¥t¥~¡A²Ä¤@­Ó°ÝÃD§Ú·|¦AÄ~Äò§V¤O§äµª®×ªº¡C
Jess

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD