Filter Alternative

JamesRo

New Member
Joined
Jun 30, 2022
Messages
26
Office Version
  1. 2021
Platform
  1. Windows
Hi.

I am looking for an alternative way of achieving the following filter for my colleagues who have older Excel version.

Excel Formula:
=UNIQUE(FILTER(B5:B51,A5:A51='Quote Form'!B1))

Help appreciated, TIA

James.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Recommend they upgrade:

MrExcelPlayground19.xlsx
ABCDEF
1Alpha
2
324
4ThingStuffHelper1Answer365
5AlphaA11A1A1
6BetaA299999A3A3
7AlphaA33A5A5
8BetaA499999A6A6
9AlphaA55A7A7
10AlphaA66A9A9
11AlphaA77A16A16
12BetaA899999A17A17
13AlphaA99A18A18
14BetaA1099999A19A19
15BetaA1199999A20A20
16BetaA1299999A21A21
17BetaA1399999A25A25
18BetaA1499999A27A27
19BetaA1599999A29A29
20AlphaA1616A31A31
21AlphaA1717A33A33
22AlphaA1818A35A35
23AlphaA1919A37A37
24AlphaA2020A39A39
25AlphaA2121A41A41
26BetaA2299999A43A43
27BetaA2399999A45A45
28BetaA2499999A47A47
29AlphaA2525
30BetaA2699999
31AlphaA2727
32BetaA2899999
33AlphaA2929
34BetaA3099999
35AlphaA3131
36BetaA3299999
37AlphaA3333
38BetaA3499999
39AlphaA3535
40BetaA3699999
41AlphaA3737
42BetaA3899999
43AlphaA3939
44BetaA4099999
45AlphaA4141
46BetaA4299999
47AlphaA4343
48BetaA4499999
49AlphaA4545
50BetaA4699999
51AlphaA4747
Sheet31
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT(--(C5:C51<99999))
D5:D28D5=INDEX(B5:B51,SMALL(C5:C51,ROW(INDIRECT("1:"&C3))))
F5:F28F5=UNIQUE(FILTER(B5:B51,A5:A51=B1))
C5:C51C5=IF(A5=$B$1,ROW()-4,99999)
Dynamic array formulas.
 
Upvote 0
Another option
Fluff.xlsm
ABCD
1Staffordshire
2
3
4
5North YorkshireRichmondshireCannock Chase
6HertfordshireDacorumStoke-on-Trent
7West YorkshireLeedsNewcastle-under-Lyme
8North YorkshireHarrogateStaffordshire Moorlands
9County DurhamCounty Durham 
10DevonWest Devon 
11West MidlandsBirmingham
12West YorkshireBradford
13SurreyTandridge
14North YorkshireCraven
15DerbyshireDerbyshire Dales
16South YorkshireSheffield
17West YorkshireKirklees
18SurreyMole Valley
19StaffordshireCannock Chase
20West YorkshireBradford
21County DurhamCounty Durham
22LancashirePendle
23County DurhamCounty Durham
24DorsetWest Dorset
25South YorkshireSheffield
26SomersetTaunton Deane
27West MidlandsBirmingham
28GloucestershireForest of Dean
29South YorkshireSheffield
30Greater ManchesterTameside
31West YorkshireBradford
32LancashireRossendale
33South YorkshireBarnsley
34CornwallCornwall
35HampshireEast Hampshire
36LancashireHyndburn
37DerbyshireHigh Peak
38NorthumberlandNorthumberland
39West MidlandsSandwell
40StaffordshireStoke-on-Trent
41West YorkshireKirklees
42Greater ManchesterTameside
43StaffordshireStoke-on-Trent
44West MidlandsDudley
45DevonWest Devon
46StaffordshireNewcastle-under-Lyme
47StaffordshireStaffordshire Moorlands
48HerefordshireHerefordshire, County of
49West YorkshireBradford
50DerbyshireHigh Peak
51West MidlandsDudley
Sheet7
Cell Formulas
RangeFormula
D5:D10D5=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$5:$B$51)/($A$5:$A$51=$B$1)/(ISNA(MATCH($B$5:$B$51,D$4:D4,0))),1)),"")
 
Upvote 0
Hi ,
You can try this array formula.

1692283202889.png
VBA Code:
IFERROR(INDEX($B$5:$B$14,MATCH(0,IF($G$3=$C$5:$C$14,COUNTIF($D$4:$D4,$B$5:$B$14). ""),0)),"")
 
Last edited:
Upvote 0
That formula will require array entry, also it would be helpful to actually post the formula, rather than just an image.
 
Upvote 0
Recommend they upgrade:

MrExcelPlayground19.xlsx
ABCDEF
1Alpha
2
324
4ThingStuffHelper1Answer365
5AlphaA11A1A1
6BetaA299999A3A3
7AlphaA33A5A5
8BetaA499999A6A6
9AlphaA55A7A7
10AlphaA66A9A9
11AlphaA77A16A16
12BetaA899999A17A17
13AlphaA99A18A18
14BetaA1099999A19A19
15BetaA1199999A20A20
16BetaA1299999A21A21
17BetaA1399999A25A25
18BetaA1499999A27A27
19BetaA1599999A29A29
20AlphaA1616A31A31
21AlphaA1717A33A33
22AlphaA1818A35A35
23AlphaA1919A37A37
24AlphaA2020A39A39
25AlphaA2121A41A41
26BetaA2299999A43A43
27BetaA2399999A45A45
28BetaA2499999A47A47
29AlphaA2525
30BetaA2699999
31AlphaA2727
32BetaA2899999
33AlphaA2929
34BetaA3099999
35AlphaA3131
36BetaA3299999
37AlphaA3333
38BetaA3499999
39AlphaA3535
40BetaA3699999
41AlphaA3737
42BetaA3899999
43AlphaA3939
44BetaA4099999
45AlphaA4141
46BetaA4299999
47AlphaA4343
48BetaA4499999
49AlphaA4545
50BetaA4699999
51AlphaA4747
Sheet31
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT(--(C5:C51<99999))
D5:D28D5=INDEX(B5:B51,SMALL(C5:C51,ROW(INDIRECT("1:"&C3))))
F5:F28F5=UNIQUE(FILTER(B5:B51,A5:A51=B1))
C5:C51C5=IF(A5=$B$1,ROW()-4,99999)
Dynamic array formulas.
Thanks for the various replies. This solution is working best for me, I could not adapt the others to my sheet so easily.
 
Upvote 0
This solution is working best for me
Except it does not return distinct values only (as seen below) & it will not work in earlier versions as they do not have spill ranges.
Fluff.xlsm
ABCDEF
1Alpha
2
324
4ThingStuffHelper1Answer365
5AlphaA11A1A1
6BetaA299999A3A3
7AlphaA33A5A5
8BetaA499999A5A9
9AlphaA55A5A16
10AlphaA56A9A17
11AlphaA57A16A18
12BetaA899999A17A19
13AlphaA99A18A20
14BetaA1099999A19A21
15BetaA1199999A20A25
16BetaA1299999A21A27
17BetaA1399999A25A29
18BetaA1499999A27A31
19BetaA1599999A29A33
20AlphaA1616A31A35
21AlphaA1717A33A37
22AlphaA1818A35A39
23AlphaA1919A37A41
24AlphaA2020A39A43
25AlphaA2121A41A45
26BetaA2299999A43A47
27BetaA2399999A45
28BetaA2499999A47
29AlphaA2525
30BetaA2699999
31AlphaA2727
32BetaA2899999
33AlphaA2929
34BetaA3099999
35AlphaA3131
36BetaA3299999
37AlphaA3333
38BetaA3499999
39AlphaA3535
40BetaA3699999
41AlphaA3737
42BetaA3899999
43AlphaA3939
44BetaA4099999
45AlphaA4141
46BetaA4299999
47AlphaA4343
48BetaA4499999
49AlphaA4545
50BetaA4699999
51AlphaA4747
Sheet5
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT(--(C5:C51<99999))
D5:D28D5=INDEX(B5:B51,SMALL(C5:C51,ROW(INDIRECT("1:"&C3))))
F5:F26F5=UNIQUE(FILTER(B5:B51,A5:A51=B1))
C5:C51C5=IF(A5=$B$1,ROW()-4,99999)
Dynamic array formulas.
 
Upvote 0
Except it does not return distinct values only (as seen below) & it will not work in earlier versions as they do not have spill ranges.
Fluff.xlsm
ABCDEF
1Alpha
2
324
4ThingStuffHelper1Answer365
5AlphaA11A1A1
6BetaA299999A3A3
7AlphaA33A5A5
8BetaA499999A5A9
9AlphaA55A5A16
10AlphaA56A9A17
11AlphaA57A16A18
12BetaA899999A17A19
13AlphaA99A18A20
14BetaA1099999A19A21
15BetaA1199999A20A25
16BetaA1299999A21A27
17BetaA1399999A25A29
18BetaA1499999A27A31
19BetaA1599999A29A33
20AlphaA1616A31A35
21AlphaA1717A33A37
22AlphaA1818A35A39
23AlphaA1919A37A41
24AlphaA2020A39A43
25AlphaA2121A41A45
26BetaA2299999A43A47
27BetaA2399999A45
28BetaA2499999A47
29AlphaA2525
30BetaA2699999
31AlphaA2727
32BetaA2899999
33AlphaA2929
34BetaA3099999
35AlphaA3131
36BetaA3299999
37AlphaA3333
38BetaA3499999
39AlphaA3535
40BetaA3699999
41AlphaA3737
42BetaA3899999
43AlphaA3939
44BetaA4099999
45AlphaA4141
46BetaA4299999
47AlphaA4343
48BetaA4499999
49AlphaA4545
50BetaA4699999
51AlphaA4747
Sheet5
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT(--(C5:C51<99999))
D5:D28D5=INDEX(B5:B51,SMALL(C5:C51,ROW(INDIRECT("1:"&C3))))
F5:F26F5=UNIQUE(FILTER(B5:B51,A5:A51=B1))
C5:C51C5=IF(A5=$B$1,ROW()-4,99999)
Dynamic array formulas.
Well that could be a problem!
I found your solution would only show the first item.
Have not figured out why as yet:
Topline Quoting.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZ
5Annealed4mm Clear£26.760.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.004.004mm Silver
6Annealed6mm Clear£34.410.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.006.00
7Annealed8mm Clear£41.400.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.008.00
8Annealed10mm Clear£43.360.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.0010.00
9Annealed12mm Clear£81.500.00POAPOA1.251.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA12.00
10Annealed15mm Clear£107.110.00POAPOA1.251.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA15.00
11Annealed4mm Optiwhite£48.310.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.004.00
12Annealed6mm Optiwhite£59.210.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.006.00
13Annealed8mm Optiwhite£69.030.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.008.00
14Annealed10mm Optiwhite£103.520.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.0010.00
15Annealed12mm Optiwhite£131.460.00POAPOA1.251.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA12.00
16Annealed15mm Optiwhite£197.190.00POAPOA1.251.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA15.00
17Annealed4mm Satin£47.010.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.004.00
18Annealed6mm Satin£101.840.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.006.00
19Annealed8mm Satin£102.340.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.008.00
20Annealed10mm Satin£102.830.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.0010.00
21Annealed12mm Satin£131.460.00POAPOA1.251.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA12.00
22Annealed6mm Bronze/Grey£70.180.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.006.00
23Annealed8mm Bronze/Grey£92.750.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.008.00
24Annealed10mm Bronze/Grey£115.310.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.0010.00
25Annealed8mm Reeded£111.090.008.2512.001.001.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.008.00
26Laminated7.2mm Pyroguard£165.00N/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A25.00100.00N/AN/AN/AN/A7.20
27Mirror4mm Silver£34.730.008.2512.001.001.252.002.000.258.258.2565.0030.0020.0025.00100.007.5020.007.5010.004.00
28Mirror6mm Silver£37.900.008.2512.001.001.252.002.000.258.258.2565.0030.0020.0025.00100.007.5020.007.5010.006.00
29Mirror6mm Bronze/Grey Silver£62.620.008.2512.001.001.252.002.000.258.258.2565.0030.0020.0025.00100.007.5020.007.5010.006.00
30Mirror6mm Antique Sil/Brz/Gry£120.000.008.2512.001.001.252.002.000.258.258.2565.0030.0020.0025.00100.007.5020.007.5010.006.00
31Toughened4mm Clear£28.890.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.004.00
32Toughened6mm Clear£35.010.008.2512.001.001.252.002.000.25N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.006.00
33Toughened8mm Clear£46.910.008.2512.00N/A1.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.008.00
34Toughened10mm Clear£49.130.008.2512.00N/A1.252.003.250.50N/AN/A65.0030.0020.0025.00100.007.5020.007.5010.0010.00
35Toughened12mm Clear£94.510.00POAPOAN/A1.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA12.00
36Toughened15mm Clear£158.900.00POAPOAN/A1.252.003.250.50N/AN/A65.0030.0020.0025.00100.00POAPOAPOAPOA15.00
Data
Cell Formulas
RangeFormula
Y5Y5=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$5:$B$51)/($A$5:$A$51='Quote Form'!B1)/(ISNA(MATCH($B$5:$B$51,Y$4:Y4,0))),1)),"")


Option dropdown on 'Quote Form' is set to "Mirror".
 
Upvote 0
You need to anchor the B1 & then drag the formula down
Excel Formula:
=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$5:$B$51)/($A$5:$A$51='Quote Form'!B$1)/(ISNA(MATCH($B$5:$B$51,Y$4:Y4,0))),1)),"")
 
Upvote 0
Solution
You need to anchor the B1 & then drag the formula down
Excel Formula:
=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$5:$B$51)/($A$5:$A$51='Quote Form'!B$1)/(ISNA(MATCH($B$5:$B$51,Y$4:Y4,0))),1)),"")
Oops, thought I did and was getting blank cells.

Can confirm this is working, thanks!
James.
 
Upvote 0

Forum statistics

Threads
1,221,544
Messages
6,160,428
Members
451,645
Latest member
androidmj

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