Forum

Notifications
Clear all

FILTER spill values giving #VALUE! error due to character length

6 Posts
3 Users
0 Reactions
567 Views
(@seanexcel)
Posts: 4
Active Member
Topic starter
 

I am trying to get some values based on a selection criteria using the FILTER function. While the FILTER function works perfectly with the criteria I have provided I seem to be facing an issue when it comes to some of the cell values in the spill. What I observed is that the character length in these particular cells are greater than 255 and therefore excel seems to be giving the #VALUE! error message. Is this a known limitation and is there a work around for this?

 
Posted : 01/06/2022 1:42 pm
(@catalinb)
Posts: 1937
Member Admin
 

Hi Sean,

There can be workarounds, but we need to understand first how are you using the results to be able to provide an alternative.

Can you describe what you need with more details?

Thank you

 
Posted : 04/06/2022 6:30 am
(@seanexcel)
Posts: 4
Active Member
Topic starter
 

Hi Catalin,

Thanks for responding. I've attached a file with some random data. Due to confidentiality I cant upload my working file but the attachment replicates the issue I'm facing.

Cheers,

Sean

 
Posted : 04/06/2022 8:27 am
(@fluff)
Posts: 36
Eminent Member
 

I think the problem is the Choose function.

Just use

=FILTER(Data!$A$2:$B$16,Data!$C$2:$C$16=$C$1)

 
Posted : 04/06/2022 9:11 am
(@seanexcel)
Posts: 4
Active Member
Topic starter
 

The thing is I have multiple columns of which the data doesn't need to appear as well as multiple selection criteria that is required hence the reason to use the CHOOSE function. I was at the initial step of setting this up when this issue came up.

 
Posted : 05/06/2022 11:52 am
(@fluff)
Posts: 36
Eminent Member
 

Sorry for the delay in replying, I only got a notification today.

The formula you are trying to use if only filtering columns A & B based on col C, so there is no need to use choose.

If you want to display non-contiguous columns you can do that like

=LET(f,FILTER(Data!$A$2:$E$16,Data!$C$2:$C$16=$C$1),INDEX(f,SEQUENCE(ROWS(f)),{1,2,5}))

 
Posted : 18/06/2022 7:26 am
Share: