DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

SUM of nested XLOOKUP returns #VALUE! error

Open cottontail-12 opened this issue 1 year ago • 2 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System

macOS 10.12 or higher

Version information

8.1.1

Expected Behavior

Sum a dynamic range of values using XLOOKUP:

=SUM(XLOOKUP(lookup,lookup_array,return_array):XLOOKUP(lookup,lookup_array,return_array))

Where each "return_array" is also an XLOOKUP function. So the full formula looks like:

=SUM(XLOOKUP(RowA,Row_Headings,XLOOKUP(ColumnA,Column_Headings,Data)):XLOOKUP(RowB,Row_Headings,XLOOKUP(ColumnB,Column_Headings,Data)))

Named Ranges used for "RowA", "RowB", "ColumnA", "ColumnB" allows the formula to sum a dynamic range of values (see attached).

However, when XLOOKUP is nested like this within SUM, there is #VALUE! error.

Actual Behavior

SUM of nested XLOOKUP returns #VALUE!, even though each nested XLOOKUP function on its own seems to operate correctly.

XLOOKUP Screenshot

Reproduction Steps

=SUM(XLOOKUP(RowA,Row_Headings,XLOOKUP(ColumnA,Column_Headings,Data)):XLOOKUP(RowB,Row_Headings,XLOOKUP(ColumnB,Column_Headings,Data)))

Additional information

Test Doc - xlookup.xlsx

cottontail-12 avatar Sep 25 '24 00:09 cottontail-12

Hello @cottontail-12, I created ticket #70550 with your issue. When some fixes will be done we'll text you here in this issue. Thank you for the report!

Dmitry-Kov avatar Oct 07 '24 13:10 Dmitry-Kov

The issue is actual in DocumentServer.

Rita-Bubnova avatar Oct 08 '24 05:10 Rita-Bubnova

Hello,

@cottontail-12 I'm happy to report that the issue has been fixed and no longer occurs in the release version 8.3.0. This issue has been addressed in the commit. Don't miss updates. Have a good day!

Dmitry-Kov avatar Feb 27 '25 09:02 Dmitry-Kov

DocumentServer v8.3.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.

Rita-Bubnova avatar Feb 27 '25 11:02 Rita-Bubnova