craigexcel
Active Member
- Joined
- Jun 28, 2006
- Messages
- 298
- Office Version
- 2016
- Platform
- Windows
Using Office 365.
It appears I must have a syntax error in my formula, but I haven't been able to resolve yet.
While this version works, where I specifically reference the range of data to use (i.e. Row 1185) ....
=SORT(UNIQUE(FILTER(combined!B6:C1185,NOT(ISNUMBER(SEARCH("Total",combined!B6:B1185))))),{1,2},1,FALSE)
this dynamic version (since the source is a pivot table in an adjacent sheet) does NOT work, and returns #VALUE! .....
=SORT(UNIQUE(FILTER(INDIRECT("combined!B6:C"&COUNT(combined!D6:D5000)),NOT(ISNUMBER(SEARCH("Total",combined!B6:B5000))))),{1,2},1,FALSE)
I also tried changing INDIRECT("combined!B6:C"&COUNT(combined!D6:D5000 ..... to ..... INDIRECT("combined!B6:C"&COUNTA(combined!B6:B5000 thinking maybe the Column needed to be in sync, but that didn't work either.
{Column B in the "combined" sheet pivot table has text; Column D has values.}
I chose Row 5000 as that should always be a sufficiently large range. I assume the issue is with the use of the INDIRECT function, as the SORT and UNIQUE seem reasonably straightforward.
Can someone provide an extra set of eyes to pinpoint the issue?? This has to be something simple.
It appears I must have a syntax error in my formula, but I haven't been able to resolve yet.
While this version works, where I specifically reference the range of data to use (i.e. Row 1185) ....
=SORT(UNIQUE(FILTER(combined!B6:C1185,NOT(ISNUMBER(SEARCH("Total",combined!B6:B1185))))),{1,2},1,FALSE)
this dynamic version (since the source is a pivot table in an adjacent sheet) does NOT work, and returns #VALUE! .....
=SORT(UNIQUE(FILTER(INDIRECT("combined!B6:C"&COUNT(combined!D6:D5000)),NOT(ISNUMBER(SEARCH("Total",combined!B6:B5000))))),{1,2},1,FALSE)
I also tried changing INDIRECT("combined!B6:C"&COUNT(combined!D6:D5000 ..... to ..... INDIRECT("combined!B6:C"&COUNTA(combined!B6:B5000 thinking maybe the Column needed to be in sync, but that didn't work either.
{Column B in the "combined" sheet pivot table has text; Column D has values.}
I chose Row 5000 as that should always be a sufficiently large range. I assume the issue is with the use of the INDIRECT function, as the SORT and UNIQUE seem reasonably straightforward.
Can someone provide an extra set of eyes to pinpoint the issue?? This has to be something simple.