Conditional formatting If cell value exist within a range on another sheet

Koboca

New Member
Joined
Apr 13, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am creating a class scheduler

the first sheet is a table containing the information as to where the class should be placed. the second sheet is a schedule that contains that class.

I want to make it easy for the user to tell if a class is already on the schedule by conditionally formatting the row in the table on the first sheet if the data exist within the schedule range on the second sheet. But I Cannot figure out what that formula would look it.

sheet 1
1618324105012.png

sheet 2
1618324140672.png

I currently have this in an attempt to just formating the cell containing the class name and not the whole row but even this does not work

=NOT(ISNA(VLOOKUP($A$2:$A$38,Sheet2!$B$2:$J$17,1,FALSE)))

the range on sheet 1 is called ClassList and on Sheet 2 it is ClassSchedule. The class name exists In column A of ClassList

Thanks for your help in Advance

Thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi & welcome to MrExcel.
How about
Excel Formula:
=AGGREGATE(15,6,ROW(Sheet2!$B$2:$B$17)/(Sheet2!$B$2:$J$17=A2),1)
 
Upvote 0
Welcome to the Board!

Is this what you are looking for?
Excel Formula:
=COUNTIF(Sheet2!$B$2:$J$17,A2)>0
 
Upvote 0
Welcome to the Board!

Is this what you are looking for?
Excel Formula:
=COUNTIF(Sheet2!$B$2:$J$17,A2)>0
Thank you, This is almost exactly what I am looking for!

however, this only applies the formatting to column A how can I apply it to the whole row

1618325020655.png

1618325051115.png
 
Upvote 0
When creating the Conditional Formatting rule, select the whole row (not just column A).
And then we just need to lock the column A reference in our CF formula like this:
Rich (BB code):
=COUNTIF(Sheet2!$B$2:$J$17,$A2)>0
and then it will apply to the whole row.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,573
Messages
6,120,310
Members
448,955
Latest member
Dreamz high

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