Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default Cond. Formatting, Mod(Row) and cell conditions

Is there any way to use the mod row function to shade alternative rows, based
on whether cells have any value in them.
I want to select a big range (eg A:G) and only shade alternative rows (A:G)
once data is place in cells.

the mod row function shades regardless if there is data in or not.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Cond. Formatting, Mod(Row) and cell conditions

Select ColA:G and try the below CF formula..Make sure the active cell of your
selection is in Row1

=AND(MOD(ROW(),2),COUNTA($A1:$G1))

--
Jacob (MVP - Excel)


"wynand" wrote:

Is there any way to use the mod row function to shade alternative rows, based
on whether cells have any value in them.
I want to select a big range (eg A:G) and only shade alternative rows (A:G)
once data is place in cells.

the mod row function shades regardless if there is data in or not.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default Cond. Formatting, Mod(Row) and cell conditions

Thanks that works great!
I unfortunately have another problem now:
I have data on sheet 1 that is transferred to a preset LIST in sheet 2 with
VBA.
I also added a sum formula outside of the list which needs to dynamically
move with the list expansion (Total does not work with the code).

If the rows with data on sheet1 are more than that contained in the preset
list on sheet 2, either the sum formula dissapears or cond. formatting with
your formula does not work, as the list is not expanding dynamically or the
shading stops at the old list settings.

Any ideas?
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
Cond. formatting, based on other cell values? GD Excel Discussion (Misc queries) 3 February 7th 09 07:26 PM
Cond. Formatting; If Cell B6 or B7 is blank I want Cell D12 to be Dr. Darrell Excel Discussion (Misc queries) 5 December 28th 08 08:54 PM
Two Separate Conditions for Cond. formatting [email protected] Excel Worksheet Functions 8 July 10th 07 06:30 PM
Cond Format - 7 conditions Sarah Excel Discussion (Misc queries) 6 April 28th 07 08:20 AM


All times are GMT +1. The time now is 12:58 AM.

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"