Skip to content

first argument of VLOOKUP is not coerced from null #526

Closed

Description

@izulin

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

Activity

  1. added
    Bug
    on Sep 22, 2020
  2. added
    Function
    Verified
    on Sep 24, 2020
  3. voodoo11 commented on Sep 29, 2020

    @voodoo11
    Contributor

    Fixed in #520

  4. wojciechczerniak commented on Sep 29, 2020

    @wojciechczerniak
    Contributor

    Awesome 🏆 Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugFunctionVerified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions