Forum Discussion
Adding bottom borders to list of names, Conditional Formatting?
We use huge spreadsheets in my job and at this point I have about 250 names each day that I need to put into a spreadsheet and add a bottom border line to the last row in each name group, to separate the names for ease of reading/data input. Some names have 2-6 lines of data and I need the name to be on every line. Is there a way to highlight a group of cells and add the bottom border to an entire ROW of data based on the last name in a specific cell? For example, if Smith has 4 rows of data, followed by Jones with 7 rows, and Patel with 5 rows, how do I select all 16 rows and give a command/formula that will return a bottom border line to ONLY the last row of Smith, last row of Jones, and last row of Patel? The spreadsheet already contains a ton of formulas/data/conditions so I'm afraid to convolute things further, but adding individual lines is taking too long! I understand I can CTRL select all those rows I want to underline, but that is my current process, and it simply takes too long! I'm hoping there is a formula/conditional format option to help!
- So do I have to "create a rule" first? Because I don't understand how to do that in regards to conditional formatting; also I can't read your screen shot (it's not in English) so I can't quite understand how to do what you are showing. I need the border line to fill the entire row, not just the cell the information is in. I feel like this puts me on the right path though, still not quite there. Thank you!
7 Replies
- OliverScheurichGold Contributor
=D1<>D2
This is the rule for conditional formatting in my example.
=$D$1:$D$1000
This is the range the format applies to.
Then if i enter Patel in cell D26 this cell is underlined. If i add Patel in D26 and D27 only cell D27 is underlined.
- jakstewsCopper ContributorSo do I have to "create a rule" first? Because I don't understand how to do that in regards to conditional formatting; also I can't read your screen shot (it's not in English) so I can't quite understand how to do what you are showing. I need the border line to fill the entire row, not just the cell the information is in. I feel like this puts me on the right path though, still not quite there. Thank you!
- OliverScheurichGold Contributor
Attached is my sample file which should be shown in your language when it's opened.
This link explains in detail how to
"Use a formula to determine which cells to format"