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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,886
Office Version
  1. 365
Platform
  1. Windows
MATCH doesn't work with multiple columns. Try something like:

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

Forum statistics

Threads
1,195,905
Messages
6,012,222
Members
441,683
Latest member
XLGeezer

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
Top