1

I'd like to Bottom Border to a whole row where a certain cell is non-empty. I have managed to do that by using conditional formatting formula =$A2<>"" and applied that to the whole column.

My problem with that solution however is that it only creates the border only for the single cell and I want the whole row to have the border. It doesn't look like there is anything can be done from the "Format Cells" dialog.

EDIT:

Below is what I have at the moment:

enter image description here

And this is what I want to achieve (assume that the bottom border goes until the end of the row): enter image description here

This is the conditional formatting rule that I applied: enter image description here Any other way to achieve that?

1
  • can you please insert some screenshots and explain there what exactly happens, and what is your goal? it isn't clear now. Commented Oct 17, 2016 at 9:09

1 Answer 1

1

Do you want the formatting for every row to be based on the value in cell A2? If so, just select the rows you want to format, and use this conditional-formatting formula: =$A$2<>"".

If instead you want each row's formatting to be based on the value in that row's A column, just use the conditional-formatting formula you already mentioned: =$A2<>"".

8
  • Thanks for the reply. No, I need to base the formatting on values of multiple rows, all of them in the first column though. The formula I have mentioned works however I have to admit I do not fully understand how as it formats all the rows where the first cell is not empty(which is what I need). My problem is that currently, only the first cell in a row gets the bottom border and I would like the border to affect the whole row.
    – Eugene S
    Commented Oct 17, 2016 at 8:51
  • Your question says "where a certain cell is non-empty", and does not mention multiple values. Could you please edit the question so as to be a bit more clear, and also provide some sample data along with the results you are hoping to achieve?
    – MJH
    Commented Oct 17, 2016 at 8:56
  • That's correct but what I also say is that I want to apply the formatting to the whole row based on that cell value.
    – Eugene S
    Commented Oct 17, 2016 at 8:58
  • Right, and my answer does indicate how to conditionally-format a whole row, so I'm a bit confused. If I'm missing something, please edit your question so I can understand what it is. Thanks.
    – MJH
    Commented Oct 17, 2016 at 9:02
  • Your answer discusses the condition that will trigger the formatting. I ask about how the formatting is applied to a certain area. So at the moment I only have a single cell underlined. I want the whole row underlined. I am sorry but I fail to find an answer to that in your reply. Thanks.
    – Eugene S
    Commented Oct 17, 2016 at 9:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .