基于单元格版本2的Excel动态条件格式 [英] Excel dynamic conditional formatting based on cell version 2

查看:68
本文介绍了基于单元格版本2的Excel动态条件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我发布了以下问题条件格式基于单元格动态的行

A few months back I posted the following question Conditional formatting rows based on cell dynamic.

当时提供的公式非常棒,但仍然是我在重新开发电子表格,需要类似的东西,但我只是

At the time the formula provided was fantastic and still is however I'm redeveloping the spreadsheet and need something similar but I just can't figure out a solution.

我目前在A列中有一个时间列表,从上午9点到晚上9点以1小时为增量。在B列中,我将在上午9点旁边键入2,以某种方式突出显示上午9点和上午10点,现在在您说的11点旁边键入7,它将突出显示上午11点,12pm 1pm 2pm 3pm 4pm 5pm。

I currently have a list of times in column A in increments of 1 hour from 9am to 9pm. In column B I would type 2 next to 9am it would somehow highlight 9am and 10am, now under that say you type 7 next to 11am it would highlight 11am, 12pm 1pm 2pm 3pm 4pm 5pm.

有意义的希望

非常感谢

推荐答案

在创建新的CF规则时,这似乎要求使用要使用单元格格式的公式选项。

This would seem to require the Use a formula to which cells to format option when creating a new CF rule.

选择A2:B14,其中A2作为活动单元格,然后选择主页►样式►条件格式►新规则。选择使用要设置单元格格式的公式选项,并为该公式为真的 Format值提供以下内容:

Select A2:B14 with A2 as the Active Cell and choose Home ► Styles ► Conditional Formatting ► New Rule. Select the Use a formula to which cells to format option and supplt the following for Format values where this formula is true:

= AND($ A2> = INDEX($ A $ 2:$ A $ 14,MATCH(1E + 99,$ B $ 2:$ B2)),$ A2<(TIME(VLOOKUP(1E + 99,$ B $ 2:$ B2,1),0,0)+ INDEX($ A $ 2:$ A $ 14,MATCH(1E + 99,$ B $ 2:$ B2))))

点击 Format 并选择一些格式。我选择了橙色填充。单击确定保存格式选择,然后再次单击确定创建新规则。您应该会得到与上面的示例图像相似的东西。

Click Format and select some formatting. I chose an orange Fill. Click OK to save the formatting choice(s) and then OK again to create the new rule. You should be left with something similar to the above sample image.

这篇关于基于单元格版本2的Excel动态条件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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