how to format all the similar values in cells with thick border in teh table having large values..

Chaturvedi, Santosh 430 Reputation points
2026-09-18T10:50:31.43+00:00

Data below are not real data..this is example only.

Hello - I have one req.

I want to make thick borders in a table which are stacked as shown below.

This means all teh similar values in cloumnc C from C29 onwrads shall have thick borders so that it will easy for recoginise

The table have large value underneath.

Please advice how to do this

User's image

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. riny 21,520 Reputation points Volunteer Moderator
    2026-09-18T11:10:26.51+00:00

    @Chaturvedi, Santosh Not sure about the thick outside border, but if you can accept different colour bands when the value in C changes, use this CF formula:

    =MOD(SUM(IF(FREQUENCY($C$29:$C29,$C$29:$C29),1)),2)

    It will create a view like in the picture below.

    User's image

    Was this answer helpful?

    0 comments No comments

  3. Marcin Policht 109.5K Reputation points MVP Volunteer Moderator
    2026-09-18T11:06:21.0933333+00:00

    yep - likely the cleanest way is to use Conditional Formatting so Excel automatically places a thick top border at the beginning of each new value group in column C and a thick bottom border at the end of each group. This will continue to work even when the table contains thousands of rows.

    Assuming your data starts at row 29 and the table spans columns B:H, select the entire table range, for example B29:H5000. Go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format.

    For the thick top border, use this formula:

    =AND($C29<>"",$C29<>$C28)

    Set the format to have a thick top border. This detects whenever the value in column C changes from the row above. In your example, it would put a thick top border on row 29, row 38, row 47, and so on.

    Create a second Conditional Formatting rule for the thick bottom border using:

    =AND($C29<>"",$C29<>$C30)

    Set the format to have a thick bottom border. This detects whenever the value in column C changes on the following row. In your example, it would put a thick bottom border on row 37, row 46, row 55, and so on.

    The result will visually separate the stacked groups like this: rows 29–37 will be one boxed group because C29:C37 all contain 64.65; rows 38–46 will be another group because C38:C46 contain 61.05; rows 47 onward will form the next group when the value changes. You do not need to manually add borders, and if you insert additional rows or change the values in column C, the group borders will update automatically.

    Note that if you want the thick border to surround only column C rather than the entire table, select C29:C5000 instead of B29:H5000 when creating the rules. If you want each group visually separated across the entire table, use B29:H5000.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.