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

[µo°Ý] ¦p¦ó¤ÀºI¨ú¦r¦ê(ªø¡B¼e¡B°ª)

[µo°Ý] ¦p¦ó¤ÀºI¨ú¦r¦ê(ªø¡B¼e¡B°ª)

¤j®a¦n¡A·Q½Ð±Ð¦U¦ì¬O§_¦³¿ìªkÁYµu§Ú¥H¤Uªº¤½¦¡?

AÄæ¦ìªº¦r¦ê¬O¡u¼Æ­È*¼Æ­È*¼Æ¡v¡A¼Æ­È¤À§O¥Nªíªø«×*¼e«×*°ª«×¡C
¦pªG§Ú­n¨DºâAÄæ¦ì¦r¦ê¤¤¡uªø+¼e+°ª¡v¼Æ­È¡C§Ú¥u·|¨Ï¥Î¸ûªøªº¨ç¼Æ¤À¸Ñ«á¦A¥[¤W
¤½¦¡ =LEFT(A2,FIND("*",A2)-1)+MID(A2,FIND("*",A2)+1,FIND("*",A2,FIND("*",A2)+1)-(FIND("*",A2)+1))+MID(A2,FIND("*",A2,FIND("*",A2)+1)+1,10)
¥i¬O³o¼Ëªº¤½¦¡«Üªø¡A¬O§_¦³¿ìªk¦AÁYµu©O?
ÁÂÁ¤j®a!
¤À¸Ñ¦r¦ê-ªø¼e°ª.zip (8.83 KB)

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ßVBA°}¦C,¾Ç²ß¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð

°õ¦æ«e:


°õ¦æµ²ªG:



Option Explicit
Sub TEST()
Dim Brr, A, i&, j%, T$, xA As Range
'¡ô«Å§iÅܼÆ
Set xA = Range([F1], [A65536].End(3))
'¡ô¥OxAÅܼƬOA~FÄæÀx¦s®æ
xA.Offset(1, 1).ClearContents: Brr = xA
'¡ô¥OxAÅܼƦV¤U¦V¥k¦U°¾²¾1ªº½d³òÀx¦s®æ²M°£¤º®e,
'¥OBrrÅܼƬO ¤Gºû°}¦C,¥HxAÅܼÆ(Àx¦s®æ)­È±a¤J°}¦C¤¤

For i = 2 To UBound(Brr)
'¡ô³]¶¶°j°é
   T = Brr(i, 1): A = Split(T, "*")
   '¡ô¥OTÅܼƬO ²Ä1Äæ°}¦C­È,
   '¥OAÅܼƬO ¥H"*"²Å¸¹¤À³Î TÅܼƪº¤@ºû°}¦C

   For j = 0 To 2: Brr(i, j + 2) = A(j): Next
   '¡ô³]¶¶°j°é!±NA°}¦C­È¼g¤JBrr°}¦C¸Ì
   Brr(i, 5) = Evaluate(Replace(T, "*", "+"))
   '¡ô¥OBrr²Ä5Äæ°}¦C­È¬O (TÅܼƸm´« "*" ¬° "+"«áªº·s¦r¦ê,
   '¦A±N¦¹¦r¦ê¥HEvaluate¤èªk­pºâ¦¨¼Æ­È)

   Brr(i, 6) = Evaluate(T)
   '¡ô¥OBrr²Ä6Äæ°}¦C­È¬O (TÅܼƥHEvaluate¤èªk­pºâ¦¨¼Æ­È)
Next
xA = Brr
'¡ô¥OBrr°}¦C­È¼g¤JxAÅܼƤ¤(Àx¦s®æ)
Set xA = Nothing: Erase Brr
'¡ô¥OÄÀ©ñÅܼÆ
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 2# hcm19522

­ì¨Ó¥i¥H¥ÎªÅ¦r¦ê¥N´Àªº¤èªk¨Ó¨ú±o¼Æ­È¡A¨ç¼Æªº¹B¥Î¯u±o¬O¤dÅܸU¤Æ¡A·PÁ hcm ¤j¤j¤S±Ð¤F§Ú¤@½Ò!:D

TOP

SUM(MID(SUBSTITUTE(A2,"*",REPT(" ",99)),{1,2,3}*99-98,99)*1)

PRODUCT(MID(SUBSTITUTE(A2,"*",REPT(" ",99)),{1,2,3}*99-98,99)*1)
google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD