简体   繁体   中英

Excel Apply border formatting to adjacent cell based on a cells value

Let's say I have data like this:

Bill No.    Total
    001     100.00
    002     200.00
    003     300.00
    004     400.00
    005     500.00
  Total    1500.00

How can I use conditional formatting or any other method in excel, to add borders to the cell that's to the right of Total in Column A ?

So it looks like:

Bill No.    Total
    001     100.00
    002     200.00
    003     300.00
    004     400.00
    005     500.00
           -------- 
  Total    1500.00
           ========

I've tried Home> Conditional Formatting> Format Only Cell that Contain >

That's where I get stuck. There's no way to reference the adjacent cell.

How can something like this be done (without using VBA/Macros)?

You can apply it like this:

在此处输入图片说明

Make sure that the current cell selected is where you want the formatting to apply. Once you have done that, you can apply the same rule to the whole column through 'Manage Rules' by changing the range of 'Applies to' to the whole column:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM