过滤日期 [英] Filter Date

查看:41
本文介绍了过滤日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关VBA Macro的帮助。我想将A列更改为蓝色IF F列包含"DE"列。 AD列(日期)是今天的日期及之后。 

谢谢,




推荐答案

您可以使用条件格式:

You can use Conditional Formatting for that:


  • 选择列A.我将假设A1是选择中的活动单元格。
  • 在功能区的"主页"选项卡上,单击"条件格式">新规则...
  • 选择"使用公式确定要格式化的单元格"。
  • 输入公式  = AND(
  • Select column A. I'll assume that A1 is the active cell in the selection.
  • On the Home tab of the ribbon, click Conditional Formatting > New Rule...
  • Select 'Use a formula to determine which cells to format'.
  • Enter the formula  =AND(


F1 =" DE",
F1="DE",


AD1> = TODAY())
  • 点击格式.. 。
  • 在"填充"选项卡中指定所需的格式。
  • 单击"确定",然后再次单击"确定"。
  • AD1>=TODAY())
  • Click Format...
  • Specify the formatting that you want in the Fill tab.
  • Click OK, then OK again.

  • 这篇关于过滤日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆