Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column based cell shading


Right now I'm using a long formula in a conditional format to color
cells based on information in the column prior to the previous column
(coloring cells in column C based on information from column A, for
example).

This is what I'm using to do this:
=AND(D180,OR(D18=F1,D18=F2,D18=F3,D18=F4,D18=F5,. .. and so on
This will color the cell if it is greater than 0 and equal to any cell
in column F.
well, it is supposed to, at least.

However, I can only input so many characters into the string which only
allows me to compare up to around row 30, and my data set is between
50-70 rows.

My next thought would be to use a macro, but I know very little about
them and was wondering if someone could lend me a hand.


--
rbmcc
------------------------------------------------------------------------
rbmcc's Profile: http://www.excelforum.com/member.php...o&userid=30602
View this thread: http://www.excelforum.com/showthread...hreadid=530485

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Column based cell shading

=AND(D180,Countif($F:$F,D18)0)

--
Regards,
Tom Ogilvy


"rbmcc" wrote:


Right now I'm using a long formula in a conditional format to color
cells based on information in the column prior to the previous column
(coloring cells in column C based on information from column A, for
example).

This is what I'm using to do this:
=AND(D180,OR(D18=F1,D18=F2,D18=F3,D18=F4,D18=F5,. .. and so on
This will color the cell if it is greater than 0 and equal to any cell
in column F.
well, it is supposed to, at least.

However, I can only input so many characters into the string which only
allows me to compare up to around row 30, and my data set is between
50-70 rows.

My next thought would be to use a macro, but I know very little about
them and was wondering if someone could lend me a hand.


--
rbmcc
------------------------------------------------------------------------
rbmcc's Profile: http://www.excelforum.com/member.php...o&userid=30602
View this thread: http://www.excelforum.com/showthread...hreadid=530485


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column based cell shading


That worked just great! only one problem, when I selected the lower
right corner of the cell to propagate the formating across my sheet,
the range information doesn't update like everything else. i.e.
=AND(A10,COUNTIF($B:$B,A1)0)
should become
=AND(B10,COUNTIF($C:$C,B1)0)
instead it becomes
=AND(B10,COUNTIF($B:$B,B1)0)


--
rbmcc
------------------------------------------------------------------------
rbmcc's Profile: http://www.excelforum.com/member.php...o&userid=30602
View this thread: http://www.excelforum.com/showthread...hreadid=530485

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Column based cell shading

I was going on what you described. If you want a range address to
propagate, you should remove the $ signs.

=AND(A10,COUNTIF(B:B,A1)0)

--
Regards,
Tom Ogilvy


"rbmcc" wrote:


That worked just great! only one problem, when I selected the lower
right corner of the cell to propagate the formating across my sheet,
the range information doesn't update like everything else. i.e.
=AND(A10,COUNTIF($B:$B,A1)0)
should become
=AND(B10,COUNTIF($C:$C,B1)0)
instead it becomes
=AND(B10,COUNTIF($B:$B,B1)0)


--
rbmcc
------------------------------------------------------------------------
rbmcc's Profile: http://www.excelforum.com/member.php...o&userid=30602
View this thread: http://www.excelforum.com/showthread...hreadid=530485


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Column based cell shading


Ah! thanks for assisting my n00bness :)


--
rbmcc
------------------------------------------------------------------------
rbmcc's Profile: http://www.excelforum.com/member.php...o&userid=30602
View this thread: http://www.excelforum.com/showthread...hreadid=530485



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
SUMIF based on cell shading IlliniEric Excel Worksheet Functions 1 February 17th 10 10:03 PM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM
Clear cell based on shading demon42 Excel Programming 1 September 22nd 05 12:56 AM
Shading a range based on a single cell value. Drew Excel Discussion (Misc queries) 5 July 23rd 05 12:06 AM
how do you set auto shading of cell based on percent value in exc. d.rogers59 Excel Worksheet Functions 3 February 12th 05 08:25 AM


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