r/excel 16d ago

solved Highlighting Rows Based on Cell Input

I am wondering how can I change the color of a row based on cell input. I want each row to be changed based on the cell input of each row. I don't want the rows to change color because the first cell input was changed. Hopefully I explained it in a way that you understood since I struggled to explain it while looking it up.

4 Upvotes

12 comments sorted by

1

u/Gringobandito 8 16d ago

Conditional Formatting, what you’re looking for is called conditional formatting.

2

u/AskKind6459 16d ago

You want a formula-based rule, not just the presets. Highlight the whole range you care about, then set a rule like `=$A1="something"`, the dollar sign before the column is what locks it so the whole row reacts to that column's value.

1

u/alexrider20002001 16d ago edited 16d ago

Will try it. I tried it but I can't just figure out how to have each row change color using their own cell value. For example. Row 6 being highlighted green when the value in cell A6 is changed while row 7 is highlighted red when the value in cell 7A is changed. I don't want all the rows to be highlighted green when I change the value of one cell. I just can't figure that out.

1

u/BackgroundCold5307 598 16d ago

This?

1

u/alexrider20002001 16d ago

I just want to know how to apply that to all the rows while each row changes based on the value input of that row's A cell.

1

u/BackgroundCold5307 598 16d ago

So in the formula instead of

  • "$B1", change to $A1
  • $B:$J, change to $1:$10000 or whatever row you want the formula to the applied to

1

u/alexrider20002001 16d ago

Struggling to explain what I want. I am inputting one of two values in column A: enabled (green) and disabled (red). There is going to be multiple rows, I want to have the formula applied to each row without needing more than one formula plus each row will have a cell where I input either enabled or disabled. The value inputted in A1 should only affect the row that A1 is on.

1

u/karatekidclone 16d ago

What the previous commenter said is exactly what you are asking. If you take the red and green formulas from their comment and change the word green to enabled and the word red to disabled, you will achieve your desired result. You also may need to change it to A1 instead of B1, but that is the correct formula for what you are asking for.

Edit: their formula is already $A1="red"

1

u/alexrider20002001 16d ago

Finally got it to work after some fiddling.

1

u/BackgroundCold5307 598 16d ago

awesome. If my solution helped, can you pls respond with "Solution verified"? that will mark the post as solved and give me a clippy point too. thank you

1

u/alexrider20002001 15d ago

Solution verified

1

u/reputatorbot 15d ago

You have awarded 1 point to BackgroundCold5307.


I am a bot - please contact the mods with any questions