Incrementing cell address inside Filter function

KarthickDijo

New Member
Joined
Sep 14, 2022
Messages
28
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

Could anyone help me out in achieving the same output as showed in the output. Or help me out in incrementing the cell address as below.

=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K3)))*(Sheet1!J:J=Sheet2!K3))) ---> This will give a result of two
=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K4)))*(Sheet1!J:J=Sheet2!K4))) ---> This will give a result of four
=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K5)))*(Sheet1!J:J=Sheet2!K5))) ---> This will give a result of three

Likewise is there any option to auto increment the cell address.

Thanks in advance !!

Book14.xlsx
JKLMNOPQRSTUV
1ssdddSKUOption 1 NameOption 1 ValueValue 1 NormUSD Unit Wholesale PriceOption Image
2ConcatrrModifierItemIDModifierListNameDeleteModifierItemNameBasePricePhotoNameModifierListKey
301, 023.44POP049-01
4Blue, Gray, Khaki, Red23.79POP049-02
5Blue, Green, Red13.17ASJP018-B3-S
6Blue, Dark Gray, Gray, Pink, White7.75ASJP018-G3-S
7Apricot4.69ASJP018-K1-S
8013.73ASJP018-R1-S
901, 02, 03, 04, 05, 06, 075.19STC185-B3-S
10White3.74STC185-G1-S
11Blue, Green14.29STC185-R1-S
12Black, Red3.25
13Pink3.74
14Black3.13
15Black, Green, Khaki, Red11.88
16Red3.13
17Black, Gray8.45
18Apricot, Black, White12.74
19Black, Gray, White5.85
20Green3.74
21Blue, Dark Blue, Leopard, Multicolor, Purple9.99
22Light Blue12.35
23Blue, Dark Gray13.17
24Leopard3.89
25Apricot, Beige, Black, Coffee, Green, Khaki, Light Blue, Multicolor, Orange, Wine Red16.25
26Army Green, Dark Gray, Khaki, Light Gray, Wine Red24.69
27Apricot, Blue, Gray, Green, Purple26.39
28Apricot, Army Green, Black, Brown, Gray, Green, Navy, Pink, White, Wine Red14.04
29Silver3.25
30Apricot, Green, Pink21.19
31Coffee13.39
32Black, Blue, Dark Gray13.17
33Coffee, Dark Gray, Gray10.66
34Blue, Dark Gray, Orange, Rose Red12.81
35Black, Green, Khaki, Light Blue, Navy, Pink, White, Wine Red16.64
36Black, Gold, Pink, Purple, Red8.45
37Blue, Khaki, Yellow19.3
38Camel15.34
39Brown3.73
40Black, Green, Yellow15.34
41Orange4.69
42Blue3.73
43Green, Orange, White17.54
44B3-EST011, B3-EST018B, G1-EST011, G1-EST018B16.01
45Apricot, Black, Brown, Burgundy, Lavender28.67
46Gray, Hallmark, Santa16.94
47Blue, Pink, White7.79
48Black, Blue, Orange24.69
49Black, Blue, Pink, Yellow17.94
50Black, Blue, Red, Rose Red, White13.74
51Black, Blue13.11
52Apricot, Black, Blue, Khaki, Orange, White28.59
53Dark Gray, Gray, White11.11
5401, 02, 03, 04, 05, 063.74
55Army Green, Black, Camouflage7.79
56Multicolor3.73
57Brown, Dark Gray, Gray, Green, Wine Red19.24
5801, 02, 03, 04, 05, 06, 07, 08, 09, 103.25
59Apricot, Black, Gray, Orange, Purple18.72
60Blue, Green, Wine Red18.89
61Black, Gray, Khaki, Pink, White11.24
62Black, Blue, Dark Blue, Dark Gray, Light Blue16.25
63Black, Brown, Green, Multicolor14.13
6401, 02, 03, 043.74
6501, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 143.89
66Blue, Gray, Khaki15.06
67Blue, Brown, Dark Brown, Dark Green, Green, Navy, Orange, Red, Sky Blue, Yellow39.58
68Blue, Light purple21.24
69Black, Brown4.56
70Gold, Multicolor4.99
71Blue, Dark Gray, Green, Red14.99
72Gray9.09
73Light Blue, Orange, Pink, Yellow25.09
74Navy3.89
75Green, Orange, Pink17.16
7601, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 123.25
77Khaki9.75
78Blue, Wine Red18.88
79Black, Green, Orange, Rose Red28.34
80Apricot, Beige, Black, Brown, Khaki19.49
81Apricot, Beige, Black, Brown, Gray, Khaki, Pink16.89
82Gray, Pink4.99
83Black, Red, Yellow3.89
84Black, Green, Light green, Red16.94
85Purple10.39
86White, Yellow3.89
87Black, Blue, Green, White11.69
88Apricot, Black, Brown, Dark Blue, Gray25.03
89Black, Wine Red, Yellow18.59
Sheet2
Cell Formulas
RangeFormula
K2:K1617K2=UNIQUE(Sheet1!J:J)
P3:P4P3=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K3)))*(Sheet1!J:J=Sheet2!K3)))
P5:P8P5=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K4)))*(Sheet1!J:J=Sheet2!K4)))
P9:P11P9=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K5)))*(Sheet1!J:J=Sheet2!K5)))
L3:L89L3=MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K3)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P1Cell ValueduplicatestextNO
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You can increment it using INDEX

Along with a helper column:
Book1.xlsb
ABK
1100100
2101101
3102102
4103103
5104104
6105105
7
81
92
103
114
125
136
Sheet5
Cell Formulas
RangeFormula
A1:A6A1=INDEX(Sheet5!K:K,B8)
B9:B13B9=B8+1


Or if you set it up "correctly", using ROW():
Book1.xlsb
AK
1
2
3
4
5100100
6101101
7102102
8103103
9104104
10105105
Sheet5 (2)
Cell Formulas
RangeFormula
A5:A10A5=INDEX('Sheet5 (2)'!K:K,ROW())
 
Upvote 0
You can increment it using INDEX

Along with a helper column:
Book1.xlsb
ABK
1100100
2101101
3102102
4103103
5104104
6105105
7
81
92
103
114
125
136
Sheet5
Cell Formulas
RangeFormula
A1:A6A1=INDEX(Sheet5!K:K,B8)
B9:B13B9=B8+1


Or if you set it up "correctly", using ROW():
Book1.xlsb
AK
1
2
3
4
5100100
6101101
7102102
8103103
9104104
10105105
Sheet5 (2)
Cell Formulas
RangeFormula
A5:A10A5=INDEX('Sheet5 (2)'!K:K,ROW())
Actually i need to increment the K3 part (Sheet1!J:J=Sheet2!K3). Since am using array function and the result might have two/three or four results, I couldn't auto increment the K3 part.
In the sample I gave, I need the below result to happen automatically. I couldn't use the fill down option. These three were done manually.

P3:P4P3=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K3)))*(Sheet1!J:J=Sheet2!K3)))
P5:P8P5=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K4)))*(Sheet1!J:J=Sheet2!K4)))
P9:P11P9=FILTER(Sheet1!C:C,((Sheet1!G:G=(MINIFS(Sheet1!G:G,Sheet1!J:J,Sheet2!K5)))*(Sheet1!J:J=Sheet2!K5)))
 
Upvote 0
What version of Excel are you actually using, as 2019 does not have the Filter function?
 
Upvote 0
Ok, do you have the VSTACK function in your 365 version of xl?
 
Upvote 0
Ok, how about
Excel Formula:
=DROP(REDUCE("",K3:K5,LAMBDA(a,b,VSTACK(a,FILTER(Sheet1!C2:C1000,((Sheet1!G2:G1000=(MINIFS(Sheet1!G2:G1000,Sheet1!J2:J1000,b)))*(Sheet1!J2:J1000=b)))))),1)
 
Upvote 0
Ok, how about
Excel Formula:
=DROP(REDUCE("",K3:K5,LAMBDA(a,b,VSTACK(a,FILTER(Sheet1!C2:C1000,((Sheet1!G2:G1000=(MINIFS(Sheet1!G2:G1000,Sheet1!J2:J1000,b)))*(Sheet1!J2:J1000=b)))))),1)
Nope :( Am getting #CALC error.
 
Upvote 0
In that case can you also post the data from sheet1.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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