A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear @Dušica Garović,
I hope you’re having a good day.
Thank you for the screenshots and the additional information.
Based on what I can see, your approach of creating a combined key such as: **Article & "|" & Quantity**is a reasonable way to compare the ERP BOM against the Master BOM.
However, from your screenshots, I notice that some values appear visually identical (for example, 2007.0689|1) but still return different results. In situations like this, the issue is often caused by one of the following:
- Hidden spaces before or after the value.
- Non-printable characters imported from the ERP system.
- One side being stored as text while the other is stored as number.
- Quantity values that look the same due to formatting but differ internally.
Could you please try the following checks?
- Compare the lengths of the two keys
- For two values that appear identical, use: **
=LEN(A2)**and=LEN(B2) - If the lengths are different, there is likely an invisible character or extra space.
- Clean the values before comparing
- Try rebuilding the concatenated key using:
=TRIM(CLEAN(ArticleCell)) & "|" & TRIM(CLEAN(QtyCell))and then perform the lookup again.
- Check whether Excel sees the values as equal
- For a pair that appears identical, test:
=A2=B2 - If Excel returns FALSE, then there is some hidden difference in the underlying values.
- Verify the lookup formula
- I also notice a #REF! error in one of the screenshots. This can indicate that the lookup formula is referencing an invalid range or a deleted column. Could you please share the exact formula you are using for the comparison?
If possible, could you upload a small sample workbook containing a few ERP rows and Master rows that reproduce the issue? That would make it much easier to determine whether the problem is coming from the data itself or from the formula.
I hope this information helps point you in the right direction. If you run into any issues while trying the steps, or if something still doesn’t feel quite right, please don’t hesitate to reach out again. I’ll do my best to support you however I can.
Looking forward to hearing back from you with any updates or additional details.
Warm regards,
If the answer is helpful, please select "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum documentation to enable email notifications if you want to receive the related email notification for this thread.