Using SPILL in FILTER formula

RonnieS

New Member
Joined
Jun 26, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

Is there a way to use SPILL in a FILTER formula?

I've got a SPILL list of Unique locations.
=SORT(UNIQUE(TablePrint[Location]))

Secondly I want to show a dynamic list of Unique CaseID's for that locations.
=ROWS(UNIQUE(FILTER(TablePrint[Case ID];TablePrint[Location]=AO6)))

This works fine, but I have to fill the series manually to the same size as the first SPILL list.
I need to get that dynamically.

The Cell reference 'AO6' references to the first cell of the UNIQUE SPILL list of the first formula.
If I change this reference to 'AO6#' it give's a "#N/A".

I'm out of thoughts, so any help will be appreciated.

Ron
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi & welcome to MrExcel.
Are you trying to get a list of values (as per your description) or a count of those values (as per your formula)?
 
Upvote 0
Hi & welcome to MrExcel.
Are you trying to get a list of values (as per your description) or a count of those values (as per your formula)?
I need a count of unique CaseID's for that specific location (SPILL list of locations).
Thats why the ROWS in front of the second formula. I tried SUMPRODUCT as well, but that also didn't work

I will try to make test XLS, because the current data is customer info I can't share
 
Upvote 0
Ok, how about
Excel Formula:
=BYROW(AO6#,LAMBDA(br,ROWS(UNIQUE(FILTER(TablePrint[Case ID],TablePrint[Location]=br)))))
 
Upvote 0
Solution
Ok, how about
Excel Formula:
=BYROW(AO6#,LAMBDA(br,ROWS(UNIQUE(FILTER(TablePrint[Case ID],TablePrint[Location]=br)))))

That did the trick!!
Works absolutely perfect. Many Thanks🙏🙏🙏
Now trying to break down the formula and understand what's happening, but I'll be fine.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,008
Messages
6,128,256
Members
449,435
Latest member
Jahmia0616

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top