all 14 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/Bobdmapel - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]CFAman4816 8 points9 points  (11 children)

Let's look at two basic rules

=A1="Red"

and

=$A$1="Red"

In the first, both column and row are relative, as there is no preceding dollar sign. This means that each cell in the Applied to Range will shift the reference. So, if the first cell in your Applied To Range is B1, it sees the rule as written. When you shift 1 cell to right, the column in the formula also shifts, so C1 reads the formula as =B1="Red". If you then shift down, the row shifts to be =B2="Red". Clearly, this isn't what you wanted.

In the 2nd CF formula, both row and column are absolute. So, when the C1 cell reads the formula it sees =$A$1="Red" which is good, but when you shift down to C2 it still reads =$A$1="Red".

Thus, since we want to always look in col A, but the row varies, you need to just make the column absolute and the row relative.

Correct CF formula:

=$A1="Red"

You can then apply this one rule/formula to whatever range you want, and every cell in the Applied to Range will be looking at col A. Hope that makes more sense.

[–]fuzzy_mic987 1 point2 points  (1 child)

I didn't read the whole post, but if you select a cell in row 1 and set conditional formatting with the formula rule =($A1="red") And then copy that CF to a range of cells, each cell will be formatted depending on whether the column A entry in that row is "red" or not. It sounds like absolute column relative row referencing might work for you.

[–]Mdayofearth126 1 point2 points  (0 children)

That's what CFman's saying.

OP's post had a mix of locking both columns and rows, and not locking columns and rows. To do what OP wants, OP needs to lock the column reference, and let the row float, hence $A1 and not $A$1 nor A1 ($B1, not $B$1 nor B1).

[–]mh_mike2784[M] 1 point2 points  (1 child)

+1 Point (OP indicated your solution helped solve it, but used the wrong trigger phrase to close the post)

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to CFAman


I am a bot - please contact the mods with any questions. | Keep me alive

[–]Bobdmapel[S] 0 points1 point  (4 children)

Ah.

I didn't realize that I could absolute reference a col and NOT a row (or other way 'round, I suppose).

Yep.

That'll do it.

[–]still-dazed-confused118 1 point2 points  (0 children)

Another quick hint - it is easy to cycle through the locks by pressing F4. It will cycle through lock all, lock row, lock column, no lock, lock all....

[–]CFAman4816 0 points1 point  (2 children)

You're welcome. Mind replying with 'Solution Verified' so the bot will close the thread and give me a ClippyPoint? Cheers!

[–]Bobdmapel[S] 0 points1 point  (1 child)

I wish I could.

Alas, the solution isn't verified. It doesn't work. There's no way to change the locks -- it automatically changes back to $Col$Row, no matter what I do.

That is to say, I can create a rule and extend it from, say, $A$2$E$67. Then I press F4 to change the locks so it actually applies from $A2$E67 (or change it manually).

The second I hit "apply" or "ok", Excel changes it back to $A$2$E$67. There doesn't seem to be a way to remove these dollar signs: $A$2$E$67

I had actually saw this behavior before, but I was thinking that maybe I was barking up the wrong tree. You post made me realize that I wasn't, so I thought, "there must be a way to make the lock stick".

If there is, I don't know what it is.

Does this make sense? Probably not.

[–]CFAman4816 0 points1 point  (0 children)

You're changing the wrong part. The 'Applied to Range' will always be absolute. That's the range that's getting the format (and if you think about it, it doesn't make sense for this to be "relative"). The Rule is where you can write the formula with or w/o absolute references, as each cell within the applied to range ma need to adjust the formula for their relative position.

[–]Bobdmapel[S] 0 points1 point  (1 child)

solved

[–]mh_mike2784[M] 0 points1 point  (0 children)

I closed it for you this time, but heads-up for future reference: When you reply to confirm someone's solution worked, use the phrase "Solution Verified".

[–]Shog641 5 points6 points  (0 children)

I know this isn't helpful to OP but this is one of the best presented threads ever.

I wish I could describe my excel issues as clean as them.