Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed types for VLookup/HLookup #1765

Open
OssianEPPlus opened this issue Dec 13, 2024 · 0 comments
Open

Mixed types for VLookup/HLookup #1765

OssianEPPlus opened this issue Dec 13, 2024 · 0 comments
Labels

Comments

@OssianEPPlus
Copy link
Contributor

OssianEPPlus commented Dec 13, 2024

Excel appears to have limited support for mixed string and number types in a single column:
bild

As mentioned in #1755 Excel's support for this seems limited. It doesn't work at all in reverse order for example.
A test and comment was left in code in #1764

Epplus in its current solution does not compare strings and numbers other than that it considers them not-equal in the comparer returning -1. This breaks the binary search in difficult to predict ways.

This could be handled better via splitting ranges/entries somehow and only checking one depending on if the lookup_value is a string literal or a number.

The question is, how should EPPLUS behave compared to Excel in this? Do we implement buggy behaviour? Do we do our own fully functional solution? Do we limit scope to non-mixed types?

Investigation and internal discussion is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant