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

Exact match in VLOOKUP now returns first match #809

Closed
wants to merge 4 commits into from

Conversation

frantzmiccoli
Copy link
Contributor

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

I stumbled upon a case where the value of a VLOOKUP was incorrectly returned compared with Excel.

I have also observed that PHP associative sorting does not preserve key order (for keys which have the same value), which explain the extra test on line 729. See https://gist.github.com/frantzmiccoli/bd03395b8fc831c67828718192c214b8 if you wish to test for yourself with asort. uasort behaves the same way but the gist was quicker to write with asort.

@PowerKiKi PowerKiKi closed this in 294ba58 Dec 15, 2018
@PowerKiKi
Copy link
Member

Thanks ! I merged with a few modifications

guillaume-ro-fr pushed a commit to guillaume-ro-fr/PhpSpreadsheet that referenced this pull request Jun 12, 2019
It was inconsistent with spreadsheet software before.

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

Successfully merging this pull request may close these issues.

2 participants