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

first argument of VLOOKUP is not coerced from null #526

Closed
izulin opened this issue Sep 22, 2020 · 2 comments
Closed

first argument of VLOOKUP is not coerced from null #526

izulin opened this issue Sep 22, 2020 · 2 comments
Assignees
Labels
Bug Something isn't working Function Feature or bug in formula function Verified Verified by Handsoncode

Comments

@izulin
Copy link
Collaborator

izulin commented Sep 22, 2020

Description

If first argument of VLOOKUP is null, it should be coerced to 0.

it('should coerce empty arg to 0', () => {
  const engine = builder([
    ['0', 'a'],
    ['2', 'b'],
    ['3', 'c'],
    ['4', 'd'],
    ['5', 'e'],
    ['=VLOOKUP(C3, A1:B5, 2)'],
  ])
  expect(engine.getCellValue(adr('A6'))).toEqual('a')
})

Steps to reproduce

Demo

Your environment

  • HyperFormula version:
  • Browser Name and version:
  • Operating System:

Links

@izulin izulin added the Bug Something isn't working label Sep 22, 2020
@wojciechczerniak wojciechczerniak added this to the September 2020 milestone Sep 24, 2020
@wojciechczerniak wojciechczerniak added Function Feature or bug in formula function Verified Verified by Handsoncode labels Sep 24, 2020
@voodoo11
Copy link
Collaborator

Fixed in #520

@wojciechczerniak
Copy link
Contributor

Awesome 🏆 Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Function Feature or bug in formula function Verified Verified by Handsoncode
Projects
None yet
Development

No branches or pull requests

3 participants