LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default conditional formatting based on relative cell value

I'm trying to clear the strikethrough of a specific non-continuguous subset
of merged cells based on the value in the prior column. Specifically
$Q$9:$U$9 based on $P$9, $Q$11:$U$11 based on $P$11, etc.

I've tried selecting all of the merged cells using Ctrl key to select
non-contiguous ranges and then using the conditional formatting rule when the
last merged cell $Q$49:$U$49 was active:

=AND(ISNUMBER($P$49),$P$490)

but that formula sets or clears the strikethrough for all of the merged
cells based on the single row rather than all of them.


I can do it one row at a time, but setting up a separate rule for each row,
but that's an incredibly tedious and silly way to do it (using formula above
for each relevant row).


What I want to do is have a general formula that I can use, such as the
following rather convoluted one, that doesn't seem to work:

=AND(ISNUMBER(INDIRECT(ADDRESS(ROW(),COLUMN()-1))),INDIRECT(ADDRESS(ROW(),COLUMN()-1))0)

I'm sure there's a way to do this, but I've not discovered it yet.
Suggestions welcome, and thank you in advance.

 
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 do I set conditional formatting relative to another cell -XL20 kboekhoff Excel Discussion (Misc queries) 2 January 5th 09 06:58 AM
Conditional formatting changing relative when copied to other cell robbin Excel Worksheet Functions 1 September 5th 07 11:36 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
XL2K - Conditional Formatting relative to cell selection Lezh Excel Discussion (Misc queries) 3 December 31st 05 09:56 AM


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