View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
still learning still learning is offline
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.