A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Cond. Formatting, Mod(Row) and cell conditions



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 10:11 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
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.

  #2  
Old May 28th, 2010, 10:53 AM posted to microsoft.public.excel.misc
wynand
external usenet poster
 
Posts: 55
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?
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.