Unique Filter returning a #calc error

davids4500

New Member
Joined
Jan 14, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
I am trying to use this formula:- =UNIQUE(FILTER(Chreosdata!N2:N3224,(Chreosdata!N2:N3224<>"")*(Chreosdata!H2:H3224= b32))). I need to add to the formula so that it does not return a #calc error if there are no relevant data in the H2:H3224 data fields.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Welcome to the MrExcel board!

Something like this?
Excel Formula:
=UNIQUE(FILTER(Chreosdata!N2:N3224,(Chreosdata!N2:N3224<>"")*(Chreosdata!H2:H3224= B32),"no data"))

The FILTER function has an optional final argument for what to return if no data is returned by the filter criteria.
=FILTER(array,include,[if_empty])
I have used that final argument above
 
Upvote 0
Solution
Welcome to the MrExcel board!

Something like this?
Excel Formula:
=UNIQUE(FILTER(Chreosdata!N2:N3224,(Chreosdata!N2:N3224<>"")*(Chreosdata!H2:H3224= B32),"no data"))

The FILTER function has an optional final argument for what to return if no data is returned by the filter criteria.
=FILTER(array,include,[if_empty])
I have used that final argument above
Dear Peter
Thank you so much Perfect...
 
Upvote 0
You're welcome. Glad to help. Thanks for the follow-up. :)
 
Upvote 0
Note:
When marking a post as the solution, please mark the actual post that contains the solution originally, and not your own reply acknowledging that some other post is the solution.
I have updated this thread for you.
 
Upvote 0

Forum statistics

Threads
1,215,582
Messages
6,125,659
Members
449,247
Latest member
wingedshoes

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