A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear @Sallin, Joshua,
Thank you for posting your question in the Microsoft Q&A forum.
Based on my understanding, you are using a filter formula combined with a text join and getting the #N/A error (Not Available). Formula: ...FILTER(Column B, Column J = Cell D4).
Column B and Column J are both results of other formulas (not hand-typed data).
When you paste the data as values (ie only get the final result, remove all formulas), the TEXTJOIN/FILTER formula works fine. This proves that the formula is not faulty because of incorrect filtering logic, so I am wondering if the error is due to a data type mismatch?
Excel stores data as Text or Number. For example, the number "12345" can be stored as Number (used for calculation) or Text (just a string of characters, not calculated). For example, although Cell D4 and Column J both appear to the naked eye as "ABC-101".
The formula that creates Cell D4 may return the Text "ABC-101".
The formula that creates Column J returns the Number 101 (due to a rounding or conversion formula).
So the FILTER function will compare: Is the Text "ABC-101" equal to the Number 101? The answer is no, so it finds no result and returns the #N/A error.
In the meantime, if my guess is correct (since I can only imagine, I don't have a file to test it on), you need to check Column J and Cell D4. Column B is the data column you want to return, not the column participating in the comparison logic, so it is not the cause of the #N/A error.
=FILTER requires the data type of the elements it compares ('Samples_10Nov2025'!J:J and D4) to be exactly the same.
In an empty cell, try checking the data type of the main components:
For the lookup value in D4: =ISTEXT(D4).
For a cell in the lookup column (for example, J2): =ISTEXT('Samples_10Nov2025'!J2)
If one returns true and the other returns false, then you have a mismatch error.
If there’s anything I may have misunderstood, I would truly appreciate it if you could provide a bit more detail to help me better understand your needs.
Looking forward to your response!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.