Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Refer to column width in conditional formatting

Hi All,

I would like to refer to the cell's column width in a conditional formatting
"Formula Is" statement, something like

=columnwidth<5

Can this be done?

Thanks,

Sammy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Refer to column width in conditional formatting

Try this:

=CELL("width",A1)<5

Note that changing a columns width does not trigger a calculation. You might
have a column width of 8 and change it to 4 but the formatting won't be
applied until a calculation takes place.

--
Biff
Microsoft Excel MVP


"sammy" wrote in message
...
Hi All,

I would like to refer to the cell's column width in a conditional
formatting
"Formula Is" statement, something like

=columnwidth<5

Can this be done?

Thanks,

Sammy



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Refer to column width in conditional formatting

With column A the column you care about:

=CELL("width",a1)<5

But this didn't recalculate when I changed the columnwidth manually. Excel had
to do one more calculation.

sammy wrote:

Hi All,

I would like to refer to the cell's column width in a conditional formatting
"Formula Is" statement, something like

=columnwidth<5

Can this be done?

Thanks,

Sammy


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Refer to column width in conditional formatting

Thanks Biff,

This is what i wanted.

"T. Valko" wrote:

Try this:

=CELL("width",A1)<5

Note that changing a columns width does not trigger a calculation. You might
have a column width of 8 and change it to 4 but the formatting won't be
applied until a calculation takes place.

--
Biff
Microsoft Excel MVP


"sammy" wrote in message
...
Hi All,

I would like to refer to the cell's column width in a conditional
formatting
"Formula Is" statement, something like

=columnwidth<5

Can this be done?

Thanks,

Sammy




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Refer to column width in conditional formatting

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"sammy" wrote in message
...
Thanks Biff,

This is what i wanted.

"T. Valko" wrote:

Try this:

=CELL("width",A1)<5

Note that changing a columns width does not trigger a calculation. You
might
have a column width of 8 and change it to 4 but the formatting won't be
applied until a calculation takes place.

--
Biff
Microsoft Excel MVP


"sammy" wrote in message
...
Hi All,

I would like to refer to the cell's column width in a conditional
formatting
"Formula Is" statement, something like

=columnwidth<5

Can this be done?

Thanks,

Sammy






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
How can I refer to a blank cell when using conditional formating? Kman Excel Discussion (Misc queries) 2 June 23rd 06 05:22 AM
Column conditional formatting Rhys'''' Pieces Excel Discussion (Misc queries) 2 April 10th 06 04:25 PM
column to column conditional formatting won't work, need formula rrupp Excel Worksheet Functions 1 August 23rd 05 10:06 PM
conditional formatting based on column snax500 Excel Discussion (Misc queries) 4 April 27th 05 06:13 PM


All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"