-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix NA error #1490
Fix NA error #1490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request. The second parameter of the newErrorFormulaArg
function represents the error message, which is used to explain the error string. I purpose making the result of the CalcCellValue
function an error string, and the error message of that as the error value. What do you think about that?
I had this problem when trying to use this formula |
- Using formula error string in the result of the `CalcCellValue` function - Using the error message in the `CalcCellValue` function returns error - Update unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I means that using formula error string in the result of the CalcCellValue
function when error occurs, and using the error message in the CalcCellValue
function returns error. I have a changes for all formula functions and updates the unit tests based on your branch. For example:
result, err := f.CalcCellValue("Sheet1", "A1")
// Now, the variable 'result' was not empty when the error occurs
// result: "#N/A"
// err: "HLOOKUP no result found"
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #1490 +/- ##
=======================================
Coverage 98.69% 98.69%
=======================================
Files 31 31
Lines 24317 24320 +3
=======================================
+ Hits 23999 24002 +3
Misses 210 210
Partials 108 108
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Oh that's perfect, btw I just added a fix to the IFNA function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution.
…#1490) - Using formula error string in the result of the `CalcCellValue` function - Using the error message in the `CalcCellValue` function returns error - Update unit tests
…#1490) - Using formula error string in the result of the `CalcCellValue` function - Using the error message in the `CalcCellValue` function returns error - Update unit tests
…#1490) - Using formula error string in the result of the `CalcCellValue` function - Using the error message in the `CalcCellValue` function returns error - Update unit tests
PR Details
Fix NA error
Description
Fix NA error
Related Issue
Motivation and Context
How Has This Been Tested
Types of changes
Checklist