Matching text in a cell range

StPeach

New Member
Joined
Jun 8, 2015
Messages
4
Hi,

I'm having timetabling issues. I have a spreadsheet that lists the staff scheduled to teach lessons in one column and a list of support staff in the neighbouring column. At the bottom of one of these columns I want to make a list of staff who are not currently allocated in either of the columns so management can easily see who else is available.

I can get Excel to return a blank if it sees staff initials listed in the column with the following formula and then use conditional formatting to highlight non-blanks. This formula works well to return a blank if staff have been allocated in a single column...

=IF(ISNUMBER(MATCH("DC",D4:D33,0)),"","DC")

The problem is, as soon as I specify a range of cells (2 columns) like this...

=IF(ISNUMBER(MATCH("DC",D4:E33,0)),"","DC")

it returns the staff code instead of a blank.

I tried posting some screen shots yesterday but it uploaded the code rather than the image, so I hope someone gets this without it!

Thanks in advance - this is starting to bug me!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
MATCH doesn't work with multiple columns. Try something like:

=IF(COUNTIF(A23:B31,"*DC*"),"DC","")
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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