![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 50
|
I want to set up a sheet so that if I put data in Column A then I get a border round the cell AND the cells in the same row in columns B and C
Any suggestions |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Do you want a border around each of the 3 cells or a single border around all 3 of the cells?
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Activate Format|Conditional Formatting. Choose Formula Is for Condition 1. Enter as formula: =LEN($A1)>0 Activate Format. Activate the relevant tabs for setting up the desired formatting. Click OK, OK. |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 50
|
Thanks just fine
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 50
|
Is there any way to prevent the formatting if you enter a formula in the first cell?
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
How do you mean? |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Posts: 50
|
Sorry I was not very explicit. if I put in a formula such as =X1 which will give a zero value if there is nothing in X1,it still gives me the formatting even if I hide the zero
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=AND(LEN($A1)>0,$A1<>0) or, if A is expected to house data of only numeric type, =$A1<>0 |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Posts: 50
|
That is great another way I found was to use the original and make it >1 rather than >0 as I am interested in long text strings
|
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
You must be able to have a number like 4 in A. This number has a LEN of 1! Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|