unique list

orsm6

Well-known Member
Joined
Oct 3, 2012
Messages
511
Office Version
  1. 365
Platform
  1. Windows
Hi all - is it possible to get a unique list across multiple sheets (5 sheets) with criteria?

Sheet 1 - A1 contains week number e.g. 32
Sheet 1 - A2 contains the formula where the unique list from the 5 sheets is returned:

each sheet holding the list of names has the same ranges....
- all sheets column B holds the list of names
- all sheets column A holds the week numbers

all sheets holding the data and ranges are arranged together if that helps with any formulas. first:last sheet name: PICCOLO:HART


TIA
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try:

Excel Formula:
=LET(a,VSTACK(PICCOLO:HART!A1:B100),UNIQUE(FILTER(CHOOSECOLS(a,2),CHOOSECOLS(a,1)=A1)))
 
Upvote 0
Try:

Excel Formula:
=LET(a,VSTACK(PICCOLO:HART!A1:B100),UNIQUE(FILTER(CHOOSECOLS(a,2),CHOOSECOLS(a,1)=A1)))
hmmm.... it returns: #CALC!

I am not sure what was going through my head at the time i posted the thread... the column containing the week number is column W of all the sheets, not column A.... so sorry!!!
 
Upvote 0
the column containing the week number is column W of all the sheets
If the column with names is X, then:

Excel Formula:
=LET(a,VSTACK(PICCOLO:HART!W1:X100),UNIQUE(FILTER(CHOOSECOLS(a,2),CHOOSECOLS(a,1)=A1)))

Ex:
varios 25sep2024.xlsm
AWX
130a
230b
330c
432a
532b
632c
732a
833b
932c
10
PICCOLO

varios 25sep2024.xlsm
AWX
130a
230b
330c
432x
532y
632z
733a
833b
933c
1033d
OTHER

varios 25sep2024.xlsm
AWX
130a
230b
330c
432a
532b
632x
733a
833b
933c
1032d
1132e
HART


1727337375596.png




🤗
 
Upvote 0
Solution
If the column with names is X, then:

Excel Formula:
=LET(a,VSTACK(PICCOLO:HART!W1:X100),UNIQUE(FILTER(CHOOSECOLS(a,2),CHOOSECOLS(a,1)=A1)))

Ex:
varios 25sep2024.xlsm
AWX
130a
230b
330c
432a
532b
632c
732a
833b
932c
10
PICCOLO

varios 25sep2024.xlsm
AWX
130a
230b
330c
432x
532y
632z
733a
833b
933c
1033d
OTHER

varios 25sep2024.xlsm
AWX
130a
230b
330c
432a
532b
632x
733a
833b
933c
1032d
1132e
HART


View attachment 117330



🤗
Hi thank you for your help - I may have confused you.

on all sheets in range (e.g. PICCOLO) unique name list is Column B, week is column W

i tried the following formula and extended my range to 1000 rows, it works great.
=LET(a,VSTACK(PICCOLO:HART!B1:W1000),UNIQUE(FILTER(CHOOSECOLS(a,2),CHOOSECOLS(a,22)=A1)))


thank you for your help :)
 
Upvote 1

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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