How do I specify a relative cell address in a conditional format in Excel?

ε祈祈猫儿з 提交于 2019-12-13 04:46:11

问题


I am conditionally formatting a row to a turn yellow if a date exists in a cell on that row. When I copy the format to other rows below, it keys on that specific cell, turning all rows yellow.

What I want is to turn row 1 yellow if cell G1 is not null. Turn row 2 yellow if G2 is not null, etc. I can manually edit the conditional format for each row, but as this condition will apply to over 1000 rows, there has to be a better way.

I would appreciate any help anyone can provide.


回答1:


I was looking through the same topic and indeed there is no native formula to get the address of the cell containing the formula.

I think I found the solution which should probably function as well in the formulas in conditional formatting. So to get the address of q cell containing the formula you should type:

=ADDRESS(ROW(),COLUMN())


来源:https://stackoverflow.com/questions/19039548/how-do-i-specify-a-relative-cell-address-in-a-conditional-format-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!