# Can't refer to a filtered range of cells

#### shroeder

##### New Member
I have a workbook with two sheets. One sheet is a labeled List with filters applied to two of the columns. In the other worksheet, I'm trying to create an IF function that matches any of the data in a particular cell with anything in one of the filtered columns in the other sheet.

I can get it to work when referring to just one cell in the other sheet, but I get error messages when I refer to the whole column of cells.

In other words, this works:

=IF(E3='Loop Library"!F44,"Fujimoto")

But this does not

=IF(E3='Loop Library'!F34:F49,"Fujimoto")

Keep in mind that F34:F49 is a filtered column

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
On 2002-09-26 22:13, shroeder wrote:
I have a workbook with two sheets. One sheet is a labeled List with filters applied to two of the columns. In the other worksheet, I'm trying to create an IF function that matches any of the data in a particular cell with anything in one of the filtered columns in the other sheet.

I can get it to work when referring to just one cell in the other sheet, but I get error messages when I refer to the whole column of cells.

In other words, this works:

=IF(E3='Loop Library"!F44,"Fujimoto")

But this does not

=IF(E3='Loop Library'!F34:F49,"Fujimoto")

Keep in mind that F34:F49 is a filtered column

The second formula is conceptually incorrect... A single cell (E3) cannot be equated to a range in a formula that computes with scalar values.

It looks like you want:

=IF(ISNUMBER(MATCH(E3,'Loop Library'!F:F)),"Fujimoto","")

This uses the unfiltered column as reference: Does it work as you intend? If not, what is the condition that you use when you filter the data?

see if this gives you the results you need:

=IF(ISNUMBER(MATCH(E3,'Loop Library'!F34:F49,0)),"Fujitmoto")
This message was edited by PaddyD on 2002-09-26 22:23

I combined both your ideas and the winner is:

=IF(ISNUMBER(MATCH(E3,'Loop Library'!F\$34:F\$49,0)),"Fujimoto","")

You guys just ended three days of agony. If you ever need free music loops come see me at :

http://www.bbm.net

and I'll hook you up.

Thanks a lot!

Replies
2
Views
617
Replies
0
Views
364
Replies
3
Views
315
Replies
4
Views
501
Replies
1
Views
172

1,221,185
Messages
6,158,412
Members
451,491
Latest member
smook

### 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.

### Which adblocker are you using?

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

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