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

XLOOKUP and XMATCH functions support #811

Closed
tonyqus opened this issue Apr 13, 2022 · 5 comments
Closed

XLOOKUP and XMATCH functions support #811

tonyqus opened this issue Apr 13, 2022 · 5 comments

Comments

@tonyqus
Copy link
Member

tonyqus commented Apr 13, 2022

Migrate functions from POI

@tonyqus
Copy link
Member Author

tonyqus commented Apr 19, 2022

XLookup
apache/poi#243
XMatch
apache/poi@c0681f0

@503049007-bh
Copy link

Thanks! This was roadblocker for using NPOI at one of companies as they have tons of those calls in their sheets.

@tonyqus
Copy link
Member Author

tonyqus commented Apr 20, 2022

I am almost there. But when I open the Excel file including XLookup function, I got #Name error in my Office 2016 (local installation). Is this a new function in Office 365 only?
image

Here is the file generated by NPOI. Can you show me if it works on your side?
xlook76803c35-1170-44d0-8490-1bdc4aa5c3c0.xlsx

@tonyqus
Copy link
Member Author

tonyqus commented Apr 20, 2022

#815

@503049007-bh
Copy link

No it doesn't work (checked your file in O365 and 2016) i can see #NAME error as well but SYNTAX is correct!
Without any change if I go to cell and press Ctrl + Shift + Enter starts working...
Did you try also non-matrix mode? So in your file put :

  • in cell C2: =XLOOKUP(B2,B5:B14,C5:C14)
  • in cell D2 =XLOOKUP(B2,B5:B14,D5:D14)

@tonyqus tonyqus closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants