KillerOfGiants
New Member
- Joined
- Dec 23, 2022
- Messages
- 42
- Office Version
- 365
Ok, I cannot share data as it is confidential and changing it to "clean" samples does not recreate the problem. Here's the scenario.
I have a tab (2a) where column C is a Location (row 1 is the title "Location", rows 2 and beyond are pasted from a csv file). We currently have 9 locations with 15 rows of data for each location. So our 2a tab has information from rows 1 through 136. As we strive for flexibility, I am using a formula to extract the locations, but when I add UNIQUE to the filtered formula, it excludes one of the locations. And again, I changed all the locations to sample data, and then it suddenly worked.
The location data is in the format of NNNN NAME L# where NNNN is a 4 digit unique number identifying the location, NAME is the brand name (two brands), and L# is the brand name location number (i.e: 1, 2, etc).
The data that is not being portrayed is from rows 62-76 which is the first of 2 for it's brand. Brand 2 is "2001 NAME 1:" and "2002 NAME 2:" so the difference is in the 4th digit and the last digit. Brand 1 has 7 locations and has similar differences between the each other, and works fine.
Here is the original FILTER formula: (Note, this displays the 15 locations for each brand correctly)
=(FILTER('2a'!$C$1:$C$1000,('2a'!$C$1:$C$1000<>"Location")*('2a'!$C$1:$C$1000<>"")))
And here is the UNIQUE formula: (and if I don't add an extra set of parentheses, I get a typo error?)
=UNIQUE((FILTER('2a'!$C$1:$C$1000,('2a'!$C$1:$C$1000<>"Location")*('2a'!$C$1:$C$1000<>""))))
I have a tab (2a) where column C is a Location (row 1 is the title "Location", rows 2 and beyond are pasted from a csv file). We currently have 9 locations with 15 rows of data for each location. So our 2a tab has information from rows 1 through 136. As we strive for flexibility, I am using a formula to extract the locations, but when I add UNIQUE to the filtered formula, it excludes one of the locations. And again, I changed all the locations to sample data, and then it suddenly worked.
The location data is in the format of NNNN NAME L# where NNNN is a 4 digit unique number identifying the location, NAME is the brand name (two brands), and L# is the brand name location number (i.e: 1, 2, etc).
The data that is not being portrayed is from rows 62-76 which is the first of 2 for it's brand. Brand 2 is "2001 NAME 1:" and "2002 NAME 2:" so the difference is in the 4th digit and the last digit. Brand 1 has 7 locations and has similar differences between the each other, and works fine.
Here is the original FILTER formula: (Note, this displays the 15 locations for each brand correctly)
=(FILTER('2a'!$C$1:$C$1000,('2a'!$C$1:$C$1000<>"Location")*('2a'!$C$1:$C$1000<>"")))
And here is the UNIQUE formula: (and if I don't add an extra set of parentheses, I get a typo error?)
=UNIQUE((FILTER('2a'!$C$1:$C$1000,('2a'!$C$1:$C$1000<>"Location")*('2a'!$C$1:$C$1000<>""))))