Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
楼主: uranus1997

[习题] 【V入2期】数组入门练习八

[复制链接]
发表于 2008-7-21 18:05 | 显示全部楼层

<p>
游客,如果您要查看本帖隐藏内容请回复
</p><p>&nbsp;</p>
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
回复

使用道具 举报

发表于 2008-7-22 14:12 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复

[此贴子已经被作者于2008-7-22 15:21:27编辑过]
回复

使用道具 举报

发表于 2008-7-23 20:56 | 显示全部楼层
回复

使用道具 举报

发表于 2008-11-21 16:08 | 显示全部楼层

Sub 作业8()<br/>Dim arr1<br/>Dim i As Integer, j As Integer<br/>Dim mrow As Integer<br/>j = 1<br/>arr1 = Split(Range("a81"), ",")<br/>For i = 0 To UBound(arr1)<br/>&nbsp;&nbsp;&nbsp; mrow = Range("b109").End(xlUp).Row + 1<br/>&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp; If Right(arr1(i), 3) = "(女)" Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cells(mrow, 2) = arr1(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cells(mrow, 1) = j<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; j = j + 1<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cells(mrow, 2).Replace What:="(女)", Replacement:=""<br/>&nbsp;&nbsp;&nbsp; End If<br/>&nbsp;&nbsp;&nbsp; <br/>Next<br/>End Sub
回复

使用道具 举报

发表于 2008-11-21 20:33 | 显示全部楼层

穷人路过
回复

使用道具 举报

发表于 2008-11-21 23:58 | 显示全部楼层

<p>看看答案,再学习!!!</p>
回复

使用道具 举报

发表于 2008-11-23 16:15 | 显示全部楼层

[em01]
回复

使用道具 举报

发表于 2008-11-23 20:50 | 显示全部楼层

<p>先顶一个来看看先</p>
回复

使用道具 举报

发表于 2008-11-24 15:57 | 显示全部楼层

<p>Dim arr() As String, arr1() As String, arr2() As String<br/>Dim i As Integer<br/>arr = Split(Range("a1").Value, ",")<br/>arr1 = Filter(arr, "女", 1)<br/>For i = 0 To UBound(arr1)<br/>&nbsp;&nbsp;&nbsp; ReDim Preserve arr2(0 To 1, 0 To UBound(arr1))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arr2(1, i) = Left(arr1(i), Len(arr1(i)) - 3)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arr2(0, i) = i + 1<br/>Next i<br/>[i6].Resize(UBound(arr1), 2) = Application.Transpose(arr2)<br/>End Sub</p>
回复

使用道具 举报

发表于 2008-11-24 19:45 | 显示全部楼层

<p>看看</p>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-4-29 11:15 , Processed in 0.283945 second(s), 7 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表