搜索
首页 电脑/网络 软件

excel 数字0--9 没出现显示

如图 ,A1格 有 0---9任意数字组 ,要在B1自动出现 没有出现的数字 ,谢谢 !

全部回答

2012-07-19

0 0
具体的公式请参见附件。

2012-07-19

70 0
    Sub Macro1() '新建一个宏将本代码复制即可 ' Macro1 Macro Dim mynum(0 To 9) As Integer Dim tempstring As String For i = 1 To 10 '计算10行 tempstring = CStr(Cells(i, 1)) For j = 0 To 9 mynum(j) = 0 Next j = Len(tempstring) While j <> 0 If Left(tempstring, 1) >= Chr(48) And Left(tempstring, 1) <= Chr(57) Then mynum(Left(tempstring, 1)) = 1 End If tempstring = Right(tempstring, Len(tempstring) - 1) j = j - 1 Wend tempstring = Chr(39) For j = 0 To 9 If mynum(j) = 0 Then tempstring = tempstring & j End If Next Cells(i, 2) = tempstring Next End Sub 。
    。

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

电脑/网络
软件
程序设计
电脑装机
操作系统/系统故障
硬件
笔记本电脑
百度
互联网
反病毒
软件
软件
多媒体软件
系统软件
办公软件
网络软件
图像处理软件
举报
举报原因(必选):
取消确定举报