0

I have some text AND a date (seperated by a hyphen) in one excel cell e.g. "Anniversary - 12/12/2012"

I want to be able to read the date only and if it is greater than the current date - the cell should become highlighted.

Can this be done via excel functions or do I need to write some VBA?

MC

4

1 に答える 1

1

すべての値で領域をマークし、「条件付き書式」を選択します。[セルのルールを強調表示]から[その他のルール]を選択し、[数式を使用してフォーマットするセルを決定する]を選択します。次の式をルールの説明フィールドに入力します。

=DATEVALUE(MID($A1,FIND(" - ",$A1)+3,10))>TODAY()

「フォーマット...」でフォーマットオプションを選択することを忘れないでください。

于 2012-11-21T22:53:07.673 に答える