Automatically Change Row Color Based on Cell Input

exceluser2019

New Member
Joined
Jan 15, 2019
Messages
6
I am looking for a way to automatically change the color of a row based on the content in a specific cell. For example:

- the default color of any row is white
- if content is added to cell A2, the color changes to red
- if content is added to cell B2, the color changes to green
- if content is added to cell C2, the color changes to white

The cells and the colors are less important than, presumably, the formula needed to create such a functionality.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I think you will need to use conditional formatting.

We would need a example of what value requires what cell to be colored what color.
 
Last edited:
Upvote 0
I am working with sensitive data, so I cannot give exact information. However, the most common color change will happen when a date is entered into a cell. Using my previous example as a reference, the date would be formatted, for example, 15-Jan. When the date is entered within cell A2, the entire row turns red, etc. Please let me know if this does not make sense.
 
Upvote 0
Create a mockup example, it's not difficult.
Then someone will provide a solution and you can modify it to your actual spreadsheet.

You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

https://www.mrexcel.com/forum/about-board/508133-attachments.html

Or upload the file to an online storage site and post a link to it, though some people may not download the file for fear of viruses.
 
Upvote 0
Your original post said:
if content is added to cell A2, the color changes to red
- if content is added to cell B2, the color changes to green
- if content is added to cell C2, the color changes to white

But in your last post you said Entire row color changes.

So you only gave three examples.

What happens if G23 has a value entered what color does that entire row turn

Or H45 or M23
 
Last edited:
Upvote 0
Thank you all for your feedback. The entire row should change colors, not just the individual cell. Going from left to right, content in a specific cell further to the right within a row would take precedence. So, for example, content in C23 would take precedence over content in A23. Content in another does not affect the color of another row. Therefore, using your example, content in H45 would not affect the color in the preceding or subsequent rows.

I am working right now, but I will do my best to create a little mock up in a few moments.
 
Upvote 0
I have a sample file to upload, but I do not have admin rights to install add-ons or programs. Could I simply take screen shots of what I am looking for and then test any formulas that are suggested?
 
Upvote 0
Cross posted https://www.excelforum.com/excel-fo...lly-change-row-color-based-on-cell-input.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
I cannot post a link in the other site.

While I understand the restrictions, I was asked to provide a sample file, but I cannot do that because of the lack of admin privileges I have. Can I simply show screen shots via imgur?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top