Santa's List: Conditional Formatting Entire Row based columns in another sheet.

jeffcoleky

Active Member
Joined
May 24, 2011
Messages
274
Title says it all. I want to do Format an Entire Row IF the data in Column A of that row contains an exact match to a list of names in another sheet. (we'll use Santa's Christmas list as an example)

I want the people in the "List" sheet, as they are categorized, to determine the row's background color of the names on Sheet 1 (Names). Green Background if they're Nice, Red Background if Naughty.

Names should be able to be added and removed from Sheet 2 at any time.

Sheet 1: "Names"
Bob <- (Entire Row has Green background)
Easter Bunny <- (Entire Row has Red background)
Pat <- (Entire Row has Red background)
Sam <- (Entire Row has Green background)
George <- (Entire Row has Green background)
You <- (Entire Row has Red background)


Sheet 2: "List"

Column A1: Nice
Bob
Sam
George

Column A2: Naughty
You
Pat
Easter Bunny
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this,
  • Define two lists - Nice and Naughty as names using Insert > Name > Define where Nice will point to range that has relevant information and same with Naughty.
  • Click on cell B1 in Sheet1 and open Conditional Format
Asad
 
Upvote 0
Really? nobody knows this? i thought it would be an easy question to answer :(...
Well, your explanation isn't very clear. :eeek:

The "entire" row ? Depending on what version of Excel you're using that can be either 256 columns or 16,384 columns. Are you sure you want to format the "entire" row? Or, do you just want to format the cells in the row that actually contain data? That's what people usually want when they say "entire".

How is the data setup on your List sheet? There is no column A1 and A2.

What version of Excel are you using?
 
Last edited:
Upvote 0
Well, your explanation isn't very clear. :eeek:

The "entire" row ? Depending on what version of Excel you're using that can be either 255 columns or 16,384 columns. Are you sure you want to format the "entire" row? Or, do you just want to format the cells in the row that actually contain data? That's what people usually want when they say "entire".

How is the data setup on your List sheet? There is no column A1 and A2.

What version of Excel are you using?

I do apologize, I did neglect to give you a lot of information...

Entire row meaning cells that contain data.
Excel 2010
Column A and Column B
 
Upvote 0
One more thing. I suppose it would be OK to have it ONLY change the cells to red if the person was under the "Naughty" column in sheet 2. The green is actually just extra since not all names will be on the naughty or nice list initially.
 
Upvote 0
I do apologize, I did neglect to give you a lot of information...

Entire row meaning cells that contain data.
Excel 2010
Column A and Column B
OK can you be more specific about this:

Entire row meaning cells that contain data.

How many columns in the row will contain data?

Column A to D? A to J? A to AA?
 
Upvote 0
Did you try my suggestion?

I tried it and it comes like this
Excel Workbook
ABCDEFG
1Bob
2Easter Bunny
3Pat
4Sam
5George
6You
7
Sheet1
 
Upvote 0
Did you try my suggestion?

I tried it and it comes like this
Excel Workbook
ABCDEFG
1Bob
2Easter Bunny
3Pat
4Sam
5George
6You
7
Sheet1

I had the same result EXCEPT mine shows George as being naughty. How Strange?! I did exactly what you said too... and he's in the right column.
 
Upvote 0
Oops, I had headers in the "list" sheet...duh me...

so this is basically the idea. However, i want it to automatically highlight the row, not just the one cell.

Currently, the columns range from Column "A" thru Column "AG" but that may get wider over time. In addition, those columns have other conditional formatting in them.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

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