Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 1590|回复: 2

查找单元格中最小或最大的数据,并标记数字或填充单元格

[复制链接]
发表于 2016-3-30 16:13 | 显示全部楼层 |阅读模式
查找单元格中最小或最大的数据,并标记数字或填充单元格

新建 Microsoft Office Excel 工作表.rar

7.52 KB, 下载次数: 5

附件

excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2016-3-30 16:28 | 显示全部楼层
saasdfaf.gif

2.rar (7.71 KB, 下载次数: 7)

评分

参与人数 3 +10 收起 理由
zhongyongyue + 1
E三E四 + 1 来学习
sry660 + 8 赞一个

查看全部评分

回复

使用道具 举报

发表于 2016-3-30 16:49 | 显示全部楼层
本帖最后由 sry660 于 2016-3-30 16:51 编辑
  1. Sub 最小值标注()
  2.     Dim jmax%, imax%, i%, x#, j%
  3.     [a1].CurrentRegion.Interior.ColorIndex = 0
  4.     imax = Cells(Rows.Count, 1).End(3).Row
  5.     jmax = Cells(1, Columns.Count).End(2).Column
  6.     Application.ScreenUpdating = False
  7.     For i = 1 To imax
  8.         x = Application.Min(Range(Cells(i, 1), Cells(i, jmax)))
  9.         For j = 1 To jmax
  10.             If Cells(i, j) = x Then Cells(i, j).Interior.ColorIndex = 6
  11.         Next
  12.     Next
  13.     Application.ScreenUpdating = True
  14. End Sub
  15. Sub 取消标注()
  16.     [a1].CurrentRegion.Interior.ColorIndex = 0
  17. End Sub
复制代码

新建 Microsoft Office Excel 工作表.rar

17.31 KB, 下载次数: 4

评分

参与人数 1 +1 收起 理由
zhongyongyue + 1

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 01:40 , Processed in 0.414356 second(s), 15 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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