我在if条件设置了这个公式,我原本目的是想让我的数字大于300,但是我 最后运行出来的结果中并不满足我的想要的情况。图片
是我的设计区域,以及我运行结果。各位可以帮帮我吗?
Hi, @qianyi_wan
In the IF, check column D of the current row, not index 0.
Use something like CDbl(CurrentRow.ByIndex(3)) > 300 or CDbl(CurrentRow("金额")) > 300
In the THEN, format only the current row’s D cell, not the whole D2:D21 range.
Indicate the D cell of the current row in the format activity (use “Current row → Column D” instead of a fixed range).
So: loop each row → IF value in column D > 300 → format that row’s D cell only.
Hi @qianyi_wan
HAppy Automation
我好像没有明白你的意思,可以说清楚点吗?
你的Source應該設定對單一Cell做Format
Use “设置单元格的格式 (Format Cells)”, don’t use a fixed range "D2:D21".
Click the plus button → choose Use CurrentRow → select column D (金额), so the activity formats only that row’s D cell.
Click on Set Format → Fill and then select color you want.