Issues using FILTER formula

crismat09

New Member
Joined
Mar 18, 2009
Messages
12
I am trying to use the FILTER formula to return only the results that meet a criteria listed on column B. On column A, I am using the UNIQUE function to bring unique values from a different table. Column B has 1/0 values related to the data on column A. In column C, I would like to have only the values in column A that have Yes in column B. For this I am using the formula:

=FILTER(A2:A184,B2:B184 =1)

However, the result of the formula is #n/a

Any idea on how to fix the issue?

Additional details:
Columns ABC are not in a table but in range format
When selecting the array for the filter formula by using crtl+shift+down, the range returned is "A2#". I needed to manually update the array to reflect A2:A184
The values on column B (1/0) are not typed numbers, the result of an IF formula.
 

Attachments

  • FILTER formula.jpg
    FILTER formula.jpg
    17.2 KB · Views: 16
  • IF formula.jpg
    IF formula.jpg
    19.7 KB · Views: 17
  • UNIQUE formula.jpg
    UNIQUE formula.jpg
    21.9 KB · Views: 16

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You are mixing and matching the column references eg images use different columns than your narration.
I am going to run with your image references.

The only way that I can replicate that behaviour is if your column N is also a formula and is returning #N/A which causes your IF statement in Column N to return #N/A.
This in turn is causing the filter to return #N/A.
(Note: N/A in columns I to K do not seem to cause the issue)
I suggest you wrap whatever formula you have in Column N in an if error function.

Book1
IJKLMNOPQR
1Col ICol JUniqueCriteriaScoreResult
21000Do not include0#N/A
32020101
4304020Do not include0
54060301
6508040Do not include0
760100501
860Do not include0
980#N/A#N/A
10100Do not include0
Sheet1
Cell Formulas
RangeFormula
K2:K10K2=SORT(UNIQUE(TOCOL(I2:J7)))
R2R2=FILTER(K2:K184,O2:O184=1)
I3:I7I3=I2+10
J3:J7J3=J2+20
N9N9=NA()
O2:O10O2=IF(N2="Do not include",0,1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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