Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Conditional format on adjacent cells

Hi All,
what am I doing wrong??
I want cells A1 to G1 to conditionally format (to red) if they are ALL
empty, but if ANY one (or more) of them contain data (text) then NONE of them
should format.
I tried the formula =ISBLANK(A1:G1) then asigned a format, but for some
reason A1 only responds to the data in A1 and seems to ignore the rest of the
range, I've also tried similar range with formula ="" and cell value is equal
to "".
I am sure this must be possible but just can't find it.
I'v been at this for three weeks now. Please put me out of my missery!!
Please - no 'code' responses, 'CF' only. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default Conditional format on adjacent cells

Hi Simon,

ISBLANK applies to a specific cell; not a range of cells. Need to count the
cells with data or count the blank cells.

Try the following. Note the absolute addressing for $A$1:$G$1 otherwise the
range will change for each cell in the range.

=COUNTA($A$1:$G$1)=0

You could also use =COUNTBLANK($A$1:$G$1)=7. However, not generic. If you
change the range then need to change the 7.


--
Regards,

OssieMac


"Simon" wrote:

Hi All,
what am I doing wrong??
I want cells A1 to G1 to conditionally format (to red) if they are ALL
empty, but if ANY one (or more) of them contain data (text) then NONE of them
should format.
I tried the formula =ISBLANK(A1:G1) then asigned a format, but for some
reason A1 only responds to the data in A1 and seems to ignore the rest of the
range, I've also tried similar range with formula ="" and cell value is equal
to "".
I am sure this must be possible but just can't find it.
I'v been at this for three weeks now. Please put me out of my missery!!
Please - no 'code' responses, 'CF' only. Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Conditional format on adjacent cells

Nice one OssieMac, your first offering is exactly what I needed.
Thanks very much.
Simon.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Conditional format on adjacent cells

Try this Simon and let me know how it works out for you. Highlight the range
of cells to which you want to apply the condional format. In this case A1:G1.
Click 'Conditional formatting" (I don't know which office version you are
using). Assuming you are using excel 2007, choose new rule in the drop-down
menu. In the new formating rule window, select the second option "Format only
cells that contain". In the Edit Format Description, under "Format onlly
cells with" Make cell value is shown in the firs box, choose "equal to" in
the second box and type ="" in the third box. click format in the preview
andf in the fill tab, select the colou want. If that helps you, please leave
feedback.
--
Ti Moy


"Simon" wrote:

Hi All,
what am I doing wrong??
I want cells A1 to G1 to conditionally format (to red) if they are ALL
empty, but if ANY one (or more) of them contain data (text) then NONE of them
should format.
I tried the formula =ISBLANK(A1:G1) then asigned a format, but for some
reason A1 only responds to the data in A1 and seems to ignore the rest of the
range, I've also tried similar range with formula ="" and cell value is equal
to "".
I am sure this must be possible but just can't find it.
I'v been at this for three weeks now. Please put me out of my missery!!
Please - no 'code' responses, 'CF' only. Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Conditional format on adjacent cells

Thanks pasket YM,
I should have said what version I was using. It's 2003 not 2007 - but thanks
for the tip, I'll be getting 07 soon and it sounds like there are some good
options to find my way around.
Cheers.
Simon.


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
Conditional Format, Color Scale adjacent cells Michael_R Excel Discussion (Misc queries) 3 February 4th 10 10:40 PM
conditional format of adjacent cell with different range and crite icsonu New Users to Excel 1 December 17th 08 06:58 PM
Copying a range adjacent to Conditional Format - CF Rule adds to P DJH71 Excel Discussion (Misc queries) 0 June 4th 08 07:49 PM
Conditional sums for adjacent cells Eric Excel Worksheet Functions 6 January 29th 07 09:00 PM
conditional formatting adjacent cells jbsand1001 Excel Worksheet Functions 2 January 20th 05 09:55 PM


All times are GMT +1. The time now is 10:19 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"