EXCEL表中,如果A列包含B列的值,如何在C列中体现出来
答案:3 mip版
解决时间 2021-03-04 00:49
- 提问者网友:轉頭涐還是涐
- 2021-03-03 13:42
我有两列姓名,其中A列的姓名中在B列也有,如何把两列相同的姓名给挑出来
最佳答案
- 二级知识专家网友:輓畱嶼赱
- 2021-03-03 14:00
使用excel宏可以实现如上功能!
sub check()
dim numa as integer //A列行数
dim numb as integer//B列行数
dim num as integer
numa=50
numb=50
num=1
for i=1 to numa
for j=1 to numb
if sheet1.cells(1,i).value==sheet1.cells(2,j) then
shee1.cells(3,num)=sheet1.cells(1,i)
num=num+1
end if
next j
next i
end sub
sub check()
dim numa as integer //A列行数
dim numb as integer//B列行数
dim num as integer
numa=50
numb=50
num=1
for i=1 to numa
for j=1 to numb
if sheet1.cells(1,i).value==sheet1.cells(2,j) then
shee1.cells(3,num)=sheet1.cells(1,i)
num=num+1
end if
next j
next i
end sub
全部回答
- 1楼网友:管好你的嘴
- 2021-03-03 15:32
D列写这样的函数:
=COUNTIF(A:A,B1)这样,计算出来不是1的就是B列在A列中重复出现过的,筛选一下大于1的就成。
- 2楼网友:回眸只為那壹抹淺笑
- 2021-03-03 14:17
如图所示 现在c列用vlookup公式在b列中与a列相同的数据 c2=vlookup(a2,$b$2:$b$10,1,0) 然后复制c列 选择性粘贴 选数值 这样就不再带公式 可以排序删除
我要举报
如以上问答内容为低俗/色情/暴力/不良/侵权的信息,可以点下面链接进行举报,我们会做出相应处理,感谢你的支持!
点此我要举报以上问答信息
推荐资讯