summaryrefslogtreecommitdiff
path: root/calc.go
diff options
context:
space:
mode:
authorjaby <peter.de.velder@ilias-solutions.com>2021-06-07 12:49:20 +0200
committerGitHub <noreply@github.com>2021-06-07 18:49:20 +0800
commit2c90b3f53559076af661e3aebabfad9643a77c40 (patch)
treecf1cf66442ac1bd66df4fd6f5bb55ca9060c3d63 /calc.go
parentd932e62a127da177769ec3f35aae985ca0a516db (diff)
fixes #856 (#857)
Diffstat (limited to 'calc.go')
-rw-r--r--calc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/calc.go b/calc.go
index 573abf2..146573c 100644
--- a/calc.go
+++ b/calc.go
@@ -590,6 +590,10 @@ func (f *File) evalInfixExp(sheet, cell string, tokens []efp.Token) (efp.Token,
}
if nextToken.TType == efp.TokenTypeArgument || nextToken.TType == efp.TokenTypeFunction {
// parse reference: reference or range at here
+ refTo := f.getDefinedNameRefTo(token.TValue, sheet)
+ if refTo != "" {
+ token.TValue = refTo
+ }
result, err := f.parseReference(sheet, token.TValue)
if err != nil {
return efp.Token{TValue: formulaErrorNAME}, err